Tag: Programming
-

C++ Programming Questions and Answers – Class Templates
C++ Programming Multiple Choice Questions & Answers (MCQs) focuses on “Class Templates”. Q 1. What is the syntax of class template?A. temp <paramaters> class declarationB. Template <paramaters> class declarationC. template <paramaters> class declarationD. Temp <paramaters> class declaration Show Answer Answer:-C. template class declaration Explanation Syntax involves template keyword followed by list of parameters in angular…
-

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