PHP MCQs - 9
What is the output of the following code snippet? $x = 5; echo ++$x * 2; A) 12 B) 14 C) 11 D) 10 An...
What is the output of the following code snippet? $x = 5; echo ++$x * 2; A) 12 B) 14 C) 11 D) 10 An...
What is the purpose of the array_search() function in PHP? A) Searches for a value in an array and returns its key B) Searches for a ...
What is the purpose of the session_destroy() function in PHP? A) Starts a new session B) Destroys all session variables C) Removes...
What is the purpose of the glob() function in PHP? A) Converts a string to lowercase B) Searches for files matching a specified patte...
Which of the following PHP functions is used to determine whether a variable is empty? A) empty() B) isset() C) is_empty() D) n...
Which of the following PHP superglobals contains information about files uploaded to the server? A) $_FILES B) $_POST C) $_GET D) $_S...
What is the output of the following code snippet? $a = 5; $b = 10; echo ($a > $b) ? "Greater" : "Smaller"; ...
What is the result of the expression 10 % 3 in PHP? A) 3 B) 1 C) 0 D) 2 Answer: B) 1 Which of the following is u...
What does PHP stand for? A) Personal Home Page B) Preprocessed Hypertext Processor C) PHP: Hypertext Preprocessor D) Hypertext ...
Superposition of Waves: The superposition of waves refers to the phenomenon where two or more waves traveling through the same medium overla...
Waves: Waves are disturbances that propagate through a medium or space, transferring energy without transferring matter. Classificat...
Simple Harmonic Motion (SHM): Simple Harmonic Motion (SHM) is a type of periodic motion characterized by an object oscillating back and fort...
Thermodynamics: Thermodynamics is the branch of physics that deals with the relationships between heat, work, and energy, as well as the pro...
Gravitation: Gravitation is the natural force by which objects with mass attract one another. Newton's Law of Universal G...
Work: Definition: Work is the product of the force applied to an object and the displacement of the object in the direction of the force...
Circular Motion: Circular motion involves the movement of an object along a circular path, where the object's distance from a fixed poin...
Newton's First Law of Motion (Law of Inertia): Definition: An object at rest will remain at rest, and an object in motion will conti...
Kinematics is the branch of classical mechanics that deals with the motion of objects without considering the forces causing the motion. Basi...
Introduction: Units and dimensions are fundamental concepts in physics used to measure physical quantities and describe the relationship...
The syllabus for Physics-I in Semester 1 for computer engineering students generally covers fundamental topics in classical mechanics, thermodynamics,...