CS310 FinalTerm MCQs With Reference Solved by Arslan
CS310 FinalTerm MCQs With Reference Solved by Arslan
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?
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
o Y
o 1
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
10. In PHP Session variables are set with the PHP global variable _______.
o ##_SESSION
o %_SESSION
o $_SESSION Reference PPT Slides
o @_SESSION
o destroy();
o session_destroy(); Reference PPT Slides
o session_delete_this();
o session_destroy_current#();
o local
o global
o static
o All of the given options Reference PPT Slides
o Client
o Node
o Server
o HUB
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
o Primary key Reference PPT Slides
o Foreign key
o Candidate key
o select
o update
o delete
o injections Reference PPT Slides
22. In PHP the ______ function both validate and sanitize data.
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.
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()
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 $
34. In delete SQL statement if you _________the WHERE clause, all records will be deleted.
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.
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