Tag: Question

  • PHP Questions & Answers – Exception Handling

    PHP Questions & Answers – Exception Handling

    PHP Multiple Choice Questions & Answers (MCQs) focuses on “Exception Handling”. Q 1. Which version of PHP was added with Exception handling?A. PHP 4B. PHP 5C. PHP 5.3D. PHP 6 Show Answer Answer:-B. PHP 5 Explanation Exception handling was added to PHP with the version 5 release, and further enhanced with version 5.3. Q 2. How…

  • C++ Programming Questions and Answers – Abstract Classes – 1

    C++ interview questions and answers focuses on “Abstract Classes”. One shall practice these interview questions to improve their C++ programming skills needed for various interviews (campus interviews, walk in interviews, company interviews), placements, entrance exams and other competitive exams. These questions can be attempted by anyone focusing on learning C++ programming language. They can be…

  • Python Questions and Answers – Tuples – 2

    Python Questions and Answers – Tuples – 2

    Python Multiple Choice Questions & Answers (MCQs) focuses on “Tuples – 2”. Q 1. What is the data type of (1)?A. TupleB.  IntegerC. ListD. Both tuple and integer Show Answer Answer:-B.  Integer Explanation A tuple of one element must be created as (1,). Q 2. If a=(1,2,3,4), a[1:-1] is _________A. [2,3]B.  (2,3)C. (2,3,4)D.  Error, tuple…

  • PHP Questions & Answers – Arrays – 5

    PHP Questions & Answers – Arrays – 5

    PHP Multiple Choice Questions & Answers (MCQs) focuses on “Arrays – 5”. Q 1. What will be the output of the following PHP code? <?php $fruits = array (“mango”, “apple”, “pear”, “peach”); $fruits = array_flip($fruits); echo ($fruits[0]); ?> A. mangoB. 0C. peachD. error Show Answer Answer:-D. error Explanation As we are flipping the values, $fruits[“mango”]…

  • PHP Coding Questions and Answers – Arrays – 3

    PHP Coding Questions and Answers – Arrays – 3

    PHP Multiple Choice Questions & Answers (MCQs) focuses on “Arrays – 3”. Q 1. What will be the output of the following PHP code? <?php $age = array(“Harry” => “21”, “Ron” => “23”,”Malfoy” => “21”); array_pop($age); print_r(array_change_key_case($age, CASE_UPPER)); ?> A. Array ( [HARRY] => 21 [RON] => 23 )B. Array ( [HARRY] => 21 [RON]…

  • Python Questions and Answers – List Comprehension – 1

    Python Questions and Answers – List Comprehension – 1

    Python Multiple Choice Questions & Answers (MCQs) focuses on “List Comprehension – 1”. Q 1. What will be the output of the following Python code? l=[1,2,3,4,5] [x&1 for x in l] A. [1, 1, 1, 1, 1]B. [1, 0, 1, 0, 1]C. [1, 0, 0, 0, 0]D. [0, 1, 0, 1, 0] Show Answer Answer:-B.…

  • CSS Questions & Answers – Print Styles and Development

    CSS Questions & Answers – Print Styles and Development

    CSS Multiple Choice Questions & Answers (MCQs) focuses on “Print Styles and their Development”. Q 1. @page is not supported in ________A. FirefoxB. OperaC. ChromeD. Internet Explorer Show Answer Answer:-A. Firefox Explanation @page is not supported in Firefox, but is supported in Chrome 2.0+, IE 8.0+, Opera 6.0+ and safari 5.0+. @page:first is supported only…

  • CSS Questions & Answers – Suppressing Element Display & Visibility, Image Rep…

    CSS Questions & Answers – Suppressing Element Display & Visibility, Image Rep…

    CSS Multiple Choice Questions & Answers (MCQs) focuses on “Suppressing Element Display & Visibility, Image Replacement”. Q 1. Which of the following will represent browsers in their normal states?A. CSS OFF/Images ONB. CSS ON/Images OFFC. CSS ON/Images OND. CSS OFF/Images OFF Show Answer Answer:-C. CSS ON/Images ON Explanation There are five major categories for image…

  • CSS Questions & Answers – Specifying Bullet Point Styles, CSS Image Alignment…

    CSS Questions & Answers – Specifying Bullet Point Styles, CSS Image Alignment…

    CSS Multiple Choice Questions & Answers (MCQs) focuses on “Specifying Bullet Point Styles, CSS Image Alignment, ID and Class”. Q 1. Which of the following is not the value for an unordered list?A. discB. numericC. circleD. square Show Answer Answer:-B. numeric Explanation For unordered list, we can use none, disc, square, circle. For ordered list,…

  • CSS Questions & Answers – Appearance of Form Elements

    CSS Questions & Answers – Appearance of Form Elements

    CSS Multiple Choice Questions & Answers (MCQs) focuses on “Appearance of Form Elements”. Q 1. Which property is used to add space inside the text field?A. numberB. marginC. paddingD. password Show Answer Answer:-C. padding Explanation Padding property is used to add space inside the text field, when we have many inputs after each other we…

You cannot copy content of this page