- 1. What does PHP stand for?
A) Personal Home Page B) Private Hosting Protocol C) Programming Hypertext Pages D) Hypertext Preprocessor
- 2. When was PHP developed?
A) 1991 B) 2000 C) 1994 D) 1999
- 3. Is one of the most popular server side scripting languages used for web development
A) JavaScript B) HTML C) PHP D) Python
- 4. A PHP script starts with <?php and ends with ________.
A) --> B) </script> C) ?> D) >
- 5. Which of the following are PHP development tools? Except.
A) NetBeans B) PhpStorm C) Notepad D) XAMPP
- 6. It is the command used to display statements in PHP
A) show statement B) print statement C) write statement D) display statement
- 7. The default file extension for PHP files is ________.
A) .js B) .php C) .txt D) .html
- 8. What symbol is used to terminate PHP statements?
A) colon(:) B) semicolon (;) C) dot(.) D) comma(,)
- 9. Which folder is commonly used to store PHP files in XAMPP?
A) public_html B) htdocs C) www D) php_root
- 10. This is the software used to run the program and see the output of every PHP file ______.
A) MySql B) notepad C) xampp D) Ide
- 11. How do PHP variables begin?
A) # B) . C) $ D) ;
- 12. What symbol is used to concatenate strings in PHP?
A) & B) + C) . D) ,
- 13. Which function counts elements in an array?
A) sum() B) count() C) total() D) size()
- 14. A ___________ is a means of storing value, such as text string or the integer value.
A) constant B) container C) variable D) character
- 15. What was the original name of PHP?
A) Pre-HTML Processor B) Private Hosting Project C) Personal Home Page D) Personal Hypertext Pages
A) Tim Berners-Lee B) Rasmus Lerdorf C) Brendan Eich D) Dennis Ritchie
- 17. Can PHP run on different platforms?
A) No B) Yes
- 18. Is PHP case-sensitive in variable names?
A) Yes B) No
- 19. Can PHP run on multiple operating systems?
A) Yes B) No
- 20. Which are NOT valid rules for naming PHP variables?
A) Must start with $ B) Can contain spaces C) Must start with a letter or underscore D) variables are case sensitive
- 21. Which tools can NOT be used to build PHP applications?
A) XAMPP B) PhpStorm C) MS Paint D) Visual Studio Code
- 22. Which are NOT a valid variable types in PHP?
A) Char B) String C) Boolean D) Object
- 23. Which of the following is used to add single line of comments in PHP?
A) ## comment B) /* comment */ C) <!-- comment --> D) // comment
- 24. Which of the following is used to add multiple lines of comments in PHP?
A) // comment B) /* comment */ C) ## comment D) <!-- comment -->
- 25. Indicates a list of data with a consistent structure that can be searched and sorted.
A) Flowchart B) Database C) Graph D) Algorithm
- 26. Indicates when the program, process, or interrupt program begins and ends.
A) Terminal B) Off Page Connector C) Document D) Process
- 27. Used to indicate that the flow is continuing on a separate page in the flowchart. As labels, capital letters are usually utilized in the symbol
A) Off Page Connector B) Process C) Terminal D) On Page Connector
- 28. The term "readable data" refers to information that can be read by humans, such as printed output.
A) Off Page Connector B) Document C) Terminal D) Process
- 29. Any form of internal operation within the processor or memory is indicated by this symbol.
A) Process B) Terminal C) input/output D) Document
- 30. A diagram that depicts the actions and decisions required to complete a process. A diagram shape is used to represent each step in the sequence. Connecting lines and directional arrows connect the steps.
A) Graph B) Database C) Algorithm D) Flowchart
- 31. An operation can be performed with this symbol. This indicates that the computer will get data
A) Process B) Terminal C) On Page Connector D) input/output
- 32. On a flowchart page, it's used to substitute long lines.
A) On Page Connector B) input/output C) Process D) Terminal
- 33. AS INDICATED BY THE NAME, THIS FUNCTION WILL RETURN THE VALUE OF THE CONSTANT
A) Constant B) Object C) variable D) count()
- 34. Variables passed to a page or file on the query string
A) $_COOKIE B) $_GET C) $_POST D) $_FILES
- 35. Variables passed to a page or file through a form using the POST method Cookie variables
A) $_GET B) $_COOKIE C) $_FILES D) $_POST
A) $_POST B) $_FILES C) $_GET D) $_COOKIE
- 37. Variables containing information about the uploaded files
A) $_FILES B) $_POST C) $_COOKIE D) $_GET
- 38. PHP environment variable that returns the name of the host server.
A) $_GET B) $_REQUEST C) $_ENV D) $_SESSION
- 39. Variable passed into page or file through forms using string and cookie
A) $_ENV B) $_GET C) $_SESSION D) $_REQUEST
- 40. Server environment variables that returns the URL of the referring page Session variables
A) $_SESSION B) $_REQUEST C) $_ENV D) $_GET
- 41. This function returns true if the variable exists and is not NULL, otherwise it returns false.
A) isset() B) count() C) return() D) constant()
- 42. compare two values and returns a Boolean value depending on whether the test condition is true or false
A) Relational Operators B) Logical Operators
|