Tag: Basics

  • PHP Questions & Answers – Basics of Object-Oriented PHP- 2

    PHP Questions & Answers – Basics of Object-Oriented PHP- 2

    PHP Multiple Choice Questions & Answers (MCQs) focuses on “Basics of Object-Oriented PHP- 2”. Q 1. Which method scope prevents a method from being overridden by a subclass?A. AbstractB. ProtectedC. FinalD. Static Show Answer Answer:-C. Final Explanation When we declare a method is as final then it is not possible to override that method. Methods…

  • C++ Programming Quizs Question and Answers – Basics

    Q 1.What are the formal parameters in C++?A. Parameters with which functions are calledB. Variables that are never used in the functionC. Variables other than passed parameters in a functionD. Parameters which are used in the definition of the function Show Answer Answer:-D. Parameters which are used in the definition of the function Explanation Formal…

  • Css Basics Quizs Question and Answer

    Q 1. What is CSS?A. CSS is a style sheet languageB. CSS is designed to separate the presentation and content, including layout, colors, and fontsC. CSS is the language used to style the HTML documentsD. All of the mentioned Show Answer Answer:-D. All of the mentioned Explanation CSS is a style sheet language that stands…

  • Python Quizs Question and Answers – Basic Operators

    Q 1. Which is the correct operator for power(xy)?A. X^yB. X**yC. X^^yD. None of the mentioned Show Answer Answer:-B. X**y Explanation Explanation:- In python, power operator is x**y i.e. 2**3=8. Q 2. Which one of these is floor division?A. /B. //C. %D. None of the mentioned Show Answer Answer:-B. // Explanation Explanation:- When both of…

  • 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 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 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.…

You cannot copy content of this page