100% found this document useful (1 vote)
223 views

CS310 FinalTerm MCQs With Reference Solved by Arslan

The document provides a list of 41 multiple choice questions related to PHP, MySQL, WordPress and other programming topics. The questions cover concepts like loops, functions, sessions, filters, exceptions, WordPress advantages and more. Each question includes the multiple choice options and a reference for the answer.

Uploaded by

wetemig603
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
223 views

CS310 FinalTerm MCQs With Reference Solved by Arslan

The document provides a list of 41 multiple choice questions related to PHP, MySQL, WordPress and other programming topics. The questions cover concepts like loops, functions, sessions, filters, exceptions, WordPress advantages and more. Each question includes the multiple choice options and a reference for the answer.

Uploaded by

wetemig603
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Jan

Solved MCQ(S) 14, 2018


From FinalTerm Papers
BY Arslan
V-U For Updated Files Visit Our Site: Www.VirtualUstaad.blogspot.com Updated.

Final-Term Papers Solved MCQS with Reference


1. Which of the following are used to make decisions based on different conditions?

o Loops
o if statements Reference PPT Slides
o Functions
o Arrays

2. What is the correct syntax of writing include statement in PHP from the followings?

o include 'filename'; Reference PPT Slides


o 'filename' include;
o #Includes< >
o #Include{ }

3. The character that is used in format parameter string of date() function of PHP for representing the day of the
month is:

o d Reference PPT Slides


o m
o Y
o l
4. The character that is used in format parameter string of date() function of PHP for representing a month is:

o d

o m Reference PPT Slides

o Y

o 1

5. A cookie is a small file that the server embeds on the ________.

o User's computer Reference PPT Slides


o File Server’s Hard drive
o Database Server’s Hard drive
o ISP

6. Consider the following code given below:


for($i = 0; $i<4; $i++)
echo “i = $i” ;
How many times the above loop will be executed?

o 2
o 3
o 4
o 5

7. Which of the following loop should be executed at least one time during the execution of loop?

o for loop
o foreach loop
o while loop
o do while loop Reference PPT Slides
8. In which of the following loop, first the body of loop is executed and then condition is checked?.

o for loop
o while loop
o do while loop Reference PPT Slides
o foreach loop

9. In PHP a session is started with the _________function.

o session_start() Reference PPT Slides


o start_session#()
o start_PHP_session()
o #session_start_this()

10. In PHP Session variables are set with the PHP global variable _______.

o ##_SESSION
o %_SESSION
o $_SESSION Reference PPT Slides
o @_SESSION

11. To destroy the session in PHP we use ________

o destroy();
o session_destroy(); Reference PPT Slides
o session_delete_this();
o session_destroy_current#();

12. PHP Stands for __________________ .

o PHP Hypertext Preprocessor Reference PPT Slides


o Personal Hypertext Page
o Power Home Page
o Personal Hyper Preprocessor
13. In PHP multiline comments can be given using _____________.

o /* */ Click here for Reference


o /# #/
o /^ ^/
o /@ @/

14. A PHP variable can have ____________ scope.

o local
o global
o static
o All of the given options Reference PPT Slides

PHP has three different variable scopes: local, global, static


15. _________ is exponent operator in PHP

o ** Click here for Reference


o #
o $
o ^

16. MySQL is a database system that runs on a

o Client
o Node
o Server
o HUB

17. MySQL is developed, distributed, and supported by

o Google
o Microsoft
o Nokia
o Oracle Corporation Click here for Reference
18. phpMyAdmin is a free software tool written in

o MySQL
o PHP Reference PPT Slides
o Java
o .NET

19. Which term is used to automatically increase the value of the field by 1 each time a new record is added?

o Auto Increment Click here for Reference


o Primary key
o Foreign key
o Candidate key

20. _____ is used to uniquely identify the rows in a table.

o Auto Increment
o Primary key Reference PPT Slides
o Foreign key
o Candidate key

21. Prepared statements are very useful against SQL _________.

o select
o update
o delete
o injections Reference PPT Slides

22. In PHP the ______ function both validate and sanitize data.

o filter_var() Reference PPT Slides


o Date()
o session_start()
o session_unset()
23. In PHP __________ is used to validate an integer.

o FILTER_INT_TRUE
o FILTER_VALIDATE_INT Reference PPT Slides
o FILTER_VALIDATE
o VALIDATE_INTEGER_ME

24. In PHP the _________function is useful if all you want to do is open up a file and read its contents.

o MKDir()
o readfile() Reference PPT Slides
o Echo()
o MKFile()

25. In PHP the ______ function checks if the "end-of-file" has been reached.

o feof() Reference PPT Slides


o readfile()
o fopen()
o fclose()

26. In PHP the _____ function is used to read a single character from a file.

o readfile()
o fopen()
o fclose()
o fgetc() Reference PPT Slides

27. The _____ function returns the size of the specified file in PHP.

o DiskSize()
o getMyFileSize()
o filesize() Reference PPT Slides
o returnMyFileSize()
28. In PHP the _____ function is used to create a file.

o makeFile()
o fopen() Reference PPT Slides
o fclose()
o mkFile()

29. In PHP the _____function is used to write to a file.

o Write()
o fwrite() Reference PPT Slides
o writeToFile()
o writeff()

30. ________ are events that occur during the execution of programs that disturb the normal flow of instructions.

o Keywords
o Exceptions Reference PPT Slides
o Variables
o Arrays

31. We can use the _________ character to select ALL columns from a table.

o &
o #
o * Reference PPT Slides
o $

32. The SELECT statement is used to select data from _________________.

o exactly one table


o one or more tables Reference PPT Slides
o exactly two tables
o none of given
33. In ______statement the WHERE clause specifies which record(s) should be deleted.

o Delete Reference PPT Slides


o Insert
o Select
o Update

34. In delete SQL statement if you _________the WHERE clause, all records will be deleted.

o Omit Click here for Reference


o add
o register
o apply

35. We can make __________ using WordPress

o Content management systems


o Websites
o Blogs
o All of the given options. Reference PPT Slides

36. WordPress has been developed using _______ and ________.

o ASP.NET, MySQL
o PHP, MySQL Reference PPT Slides
o PHP, Microsoft SQL Server
o Python, MySQL

37. The PHP filter extension is designed to make data ______easier and quicker.

o Removal
o Validation Reference PPT Slides
o Corruption
o Loss
38. To _________the ID of the last inserted record, we echo the last inserted ID.

o Insert Reference PPT Slides


o delete
o retrieve
o update

39. In PHP if an exception is not caught, ______will be issued.

o A user defined message


o A fatal error Reference PPT Slides
o An exception handler
o A Greeting message

40. WordPress is available for _______

o Free Reference PPT Slides


o 100 dollars
o 200 dollar
o 500 dollars

41. An Advantage of WordPress is that it is _______

o Easy to use Reference PPT Slides


o Difficult to use
o Very Costly
o Difficult to understand

Note: Give me a feedback and your Suggestion also If you find any mistake in mcqz plz
inform me Via Contact us Page on our Site. And tell me your answer with references.
For More Solved Papers By Arslan Visit Our Website:
Www.VirtualUstaad.blogspot.com

You might also like