Category: Programming

  • PHP Quizs Question & Answers Basics of Object-Oriented PHP- 2

    Q 1. Which one of the following functions is used to determine whether a class exists?A. exist()B. exist_class()C. class_exist()D. __exist() Show Answer Answer:-C. class_exist() Explanation The class_exist() function returns true or false according to whether the class exists within the currently executing script content. Q 2. Which one of the following functions is used to…

  • PHP Quizs Question & Answers Advanced Object-Oriented

    Q 1. Which magic method is used to implement overloading in PHP?A. __callB. __invokeC. __wakeupD. __unset Show Answer Answer:-A. __call Explanation When a class implements __call(), then an object of that class is called with a method that doesn’t exist, __call() is called instead. Q 2. The class from which the child class inherits is…

  • PHP Quizs Question & Answers Basics of Oriented-1

    Q 1. Which one of the following property scopes is not supported by PHP?A. friendlyB. finalC. publicD. static Show Answer Answer:-A. friendly Explanation PHP supports five class property scopes: public, private, protected, final and static. Q 2. Which one of the following can be used to instantiate an object in PHP assuming class name to…

  • PHP Quizs Question & Answers Arrays – 5

    Q 1. What will be the output of the following PHP code? A. Array ( [0] => picture1.JPG [1] => Picture10.jpg [2] => picture2.jpg [3] => picture20.jpg )B. Array ( [0] => picture1.JPG [1] => picture2.jpg [2] => Picture10.jpg [3] => picture20.jpg )C. Array ( [0] => Picture10.jpg [1] => picture1.JPG [2] => picture2.jpg [3]…

  • PHP Quizs Question & Answers Basics – 3

    Q 1. Who is the father of PHP?A. Rasmus LerdorfB. Willam MakepieceC. Drek KolkeviD. List Barely Show Answer Answer:-A. Rasmus Lerdorf Explanation PHP was originally created by Rasmus Lerdorf in 1994 Q 2. Which of the conditional statements is/are supported by PHP? i) if statements ii) if-else statements iii) if-elseif statements iv) switch statements A.…

  • PHP Coding Quizs Question & Answers Arrays – 4

    Q 1. What will be the output of the following PHP code? A. Array ( [0] => Array ( [1] => Volvo [2] => BMW ) [1] => Array ( [1] => Toyota [2] => Honda ) [2] => Array ( [1] => Mercedes [2] => Opel ) ) B. Array ( [1] => Array…

  • PHP Coding Quizs Question & Answers Arrays – 3

    Q 1. What will be the output of the following PHP code? A. Key = Harry, Value = 21 Key = Ron, Value = 21 Key = Malfoy, Value = 23 B. Key = Harry, Value = 21 Key = Ron, Value = 19 Key = Malfoy, Value = 23 C. Key = Harry, Value…

  • Python

    Q 1. Who developed Python Programming Language?A. Guido van RossumB. Rasmus LerdorfC. Wick van RossumD. Niene Stom Show Answer Answer:-A. Guido van Rossum Explanation Python language is designed by a Dutch programmer Guido van Rossum in the Netherlands. Q 2. Which type of Programming does Python support?A. functional programmingB. object-oriented programmingC. structured programmingD. all of…

  • C Programming

    Q 1. Who is the father of C language?A. Steve JobsB. Dennis RitchieC. James GoslingD. Rasmus Lerdorf Show Answer Answer:-B. Dennis Ritchie Explanation Dennis Ritchie is the father of C Programming Language. C programming language was developed in 1972 at American Telephone & Telegraph Bell Laboratories of USA. Q 2. Which of the following is…