Modern Programming Languages MCQs with Answers
Practice important Modern Programming Languages MCQs with answers and explanations.
Multiple Choice Questions
Q701: PHP scripts are executed on which side?
- A: Client-side
- B: Browser-side
- C: Server-side
- D: User-side
View Answer
C
Q702: Which of the following is NOT a data type in PHP?
- A: Boolean
- B: Array
- C: Resource
- D: Enumeration
View Answer
D
Q703: What file extensions are commonly used for PHP files?
- A: .php, .php3, .phtml
- B: .html, .htm, .css
- C: .js, .java, .php
- D: .exe, .dll, .bat
View Answer
A
Q704: Which of the following data types does PHP support?
- A: Boolean, integer, float, string, object
- B: Integer, object, char, void
- C: Float, boolean, struct, int
- D: Double, list, hash, long
View Answer
A
Q705: PHP scripts can be embedded into which of the following?
- A: HTML documents
- B: Java programs
- C: C++ files
- D: Python scripts
View Answer
A
Q706: PHP variables start with which symbol?
- A: #
- B: &
- C: $
- D: *
View Answer
C
Q707: What is the output of the following code? <p>Hello World</p>
- A: PHP script parsed
- B: HTML document
- C: CSS document
- D: JavaScript document
View Answer
B
Q708: Which PHP tag style is not supported in some browsers?
- A: Short tags
- B: ASP-style tags
- C: Heredoc
- D: Full PHP tags
View Answer
B
Q709: How are strings created in PHP?
- A: Single quote, double quote, heredoc
- B: Backtick, angle bracket
- C: Parentheses, curly braces
- D: None of these
View Answer
A
Q710: Which operation will convert a string to a float in PHP?
- A: Adding the string to a number
- B: Subtracting from a string
- C: Comparing to a float
- D: Multiplying by a float
View Answer
A