Tag: Programming

  • C++ Programming Questions and Answers – Function Templates – 2

    C++ Programming Questions and Answers – Function Templates – 2

    C++ Programming Multiple Choice Questions & Answers (MCQs) focuses on “Function Templates – 2”. Q 1. What are Templates in C++?A. A feature that allows the programmer to write generic programsB. A feature that allows the programmer to write specific codes for a problemC. A feature that allows the programmer to make program modularD. A…

  • C++ Programming Questions and Answers – Function Templates – 1

    C++ Programming Questions and Answers – Function Templates – 1

    C++ programming interview questions and answers focuses on “Function Templates”. One shall practice these interview questions to improve their C++ programming skills needed for various interviews (campus interviews, walkin 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 – Dictionary – 4

    Python Questions and Answers – Dictionary – 4

    Python Multiple Choice Questions & Answers (MCQs) focuses on “Dictionary – 4”. Q 1. The following Python code is invalid. class demo(dict):def __test__(self,key):return []a = demo()a[‘test’] = 7print(a)A. TrueB. False Show Answer Answer:-B. False Explanation The output of the code is: {‘test’:7}. Q 2. What will be the output of the following Python code? count={}count[(1,2,4)]…

  • PHP Coding Questions and Answers – Arrays – 2

    PHP Coding Questions and Answers – Arrays – 2

     PHP Multiple Choice Questions & Answers (MCQs) focuses on “Arrays – 2”. Q 1. What will be the output of the following PHP code? <?php $cars = array(“Volvo”, “BMW”, “Toyota”); echo “I like ” . $cars[2] . “, ” . $cars[1] . ” and ” . $cars[0] . “.”; ?> A. I like Volvo, Toyota…

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

    C++ Programming Questions and Answers – Abstract Classes – 2

    C++ Programming Multiple Choice Questions & Answers (MCQs) focuses on “Abstract Classes – 2”. Q 1. What is an abstract class in C++?A. Class specifically used as a base class with at least one virtual functionsB. Class specifically used as a base class with at least one pure virtual functionsC. Class from which any class…

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

  • CSS Questions & Answers – CSS and (X)HTML Elements Fundamentals

    CSS Questions & Answers – CSS and (X)HTML Elements Fundamentals

    CSS Multiple Choice Questions & Answers (MCQs) focuses on “CSS and (X)HTML Elements Fundamentals”. What is the fundamental purpose of CSS in relation to (X)HTML ? Answer: The fundamental purpose of CSS (Cascading Style Sheets) is to separate the presentation (style) of a web page from its structure and content (HTML/XHTML). Before CSS, styling was…

  • CSS Questions & Answers – CSS Transition, Perl cgi Programming

    CSS Questions & Answers – CSS Transition, Perl cgi Programming

    CSS Multiple Choice Questions & Answers (MCQs) focuses on “CSS Transition, Perl cgi Programming”. Q 1. What defines the date when information becomes invalid?A. last-modified: stringB. last-modified: stringC. expires: date stringD. content-type: string Show Answer Answer:-C. expires: date string Explanation expires: sate string defines the date when information becomes invalid. This should be used by…

You cannot copy content of this page