Tag: MCQ

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

  • PHP Multiple Choice Questions – Array

    PHP Multiple Choice Questions – Array

     PHP Multiple Choice Questions & Answers (MCQs) focuses on “Array”. Q 1. PHP’s numerically indexed array begin with position ___________A. 0B. 1C. 2D. -1 Show Answer Answer:-A. 0 Explanation Like all the other programming languages, the first element of an array always starts with ‘0’. Q 2. Which of the following are correct ways of…

  • Python Multiple Choice Questions – List Comprehension

    Python Multiple Choice Questions – List Comprehension

     Python Multiple Choice Questions & Answers (MCQs) focuses on “List Comprehension”. Q 1. What will be the output of the following Python code snippet? k = [print(i) for i in my_string if i not in “aeiou”] A. prints all characters of my_string that aren’t vowelsB. prints all the consonants in my_stringC. prints all the vowels…

  • CSS Questions & Answers – CSS3 3D Transforms, Transitions, and Animations

    CSS Questions & Answers – CSS3 3D Transforms, Transitions, and Animations

    CSS Multiple Choice Questions & Answers (MCQs) focuses on “CSS3 3D Transforms, Transitions, and Animations”. Q 1. Which of the following css property allows elements to be offset, rotated, scaled, and skewed in a variety of different ways?A. transform-3DB. transform-originC. transformD. transition Show Answer Answer:-C. transform Explanation Syntax: transform: list of transform-functions | none Q…

  • CSS Questions & Answers – CSS3 Animation with Responsive Web Design

    CSS Questions & Answers – CSS3 Animation with Responsive Web Design

    CSS Multiple Choice Questions & Answers (MCQs) focuses on “CSS3 Animation with Responsive Web Design”. Q 1. What should be written in the blank of the code for JQuery Code Used to Apply CSS3 Animations?advertisement Code:leftmove {100% { transform: translateX(-70px); opacity: 1; }} rightmove {100% { transform: translateX(70px); opacity: 1; }} A. @mediaB. @keyframesC. animation-nameD.…

  • CSS Questions & Answers – Inheritance and Cascade

    CSS Questions & Answers – Inheritance and Cascade

    CSS Multiple Choice Questions & Answers (MCQs) focuses on “Inheritance and Cascade”. Q 1. Which of the following Cascading order has the highest precedence?A . user normal declarationsB. user agent declarationsC. author normal declarationsD. author important declarations Show Answer Answer:-B. user agent declarations Q 2. Which of the following property is a shorthand that resets…

  • CSS Questions & Answers – CSS Keyframes

    CSS Questions & Answers – CSS Keyframes

    CSS Multiple Choice Questions & Answers (MCQs) focuses on “CSS Keyframes”. Q 1. Which of the following CSS Property determines whether an animation should run in reverse on some cycles?A. animationB. animation-runC. animation-repeatD. none of the mentioned Show Answer Answer:-D. none of the mentioned Explanation animation-direction : Determines whether an animation should run in reverse…

  • CSS Questions & Answers – Transforms and Transitions

    CSS Questions & Answers – Transforms and Transitions

    CSS Multiple Choice Questions & Answers (MCQs) focuses on “Transforms and Transitions”. Q 1. Which of the following property defines the length of time that a transition takes? A. transition-durationB. transitionC. transform-durationD. transition-property Show Answer Answer:-A. transition-duration Q 2. Which of the following property defines when the transition will start and it allows a transition…

  • CSS Questions & Answers – Measurements in CSS

    CSS Questions & Answers – Measurements in CSS

    CSS Multiple Choice Questions & Answers (MCQs) focuses on “Measurements in CSS”. Q 1. Which of the following measurement defines a measurement in centimeters?A. cB. cmC. centiD. centimeter Show Answer Answer:-B. cm Explanation Example: div {margin-bottom: 1cm;} Q 2. Which of the following measurement defines a measurement relative to the height of a font in…

  • C++ Programming MCQ – Constructors and Destructors

    C++ Programming MCQ – Constructors and Destructors

    C++ Programming Multiple Choice Questions & Answers (MCQs) focuses on “Constructors and Destructors”. Q 1. What is the role of a constructor in classes?A. To modify the data whenever requiredB. To destroy an objectC. To initialize the data members of an object when it is createdD. To call private functions from the outer world Show…

You cannot copy content of this page