Tag: language
-
Python Multiple Choice Questions – Function
Python Multiple Choice Questions & Answers (MCQs) focuses on “Function”. Q 1. Which of the following is the use of function in python?A. you can’t also create your own functions B. Functions don’t provide better modularity for your applicationC. Functions are reusable pieces of programsD. All of the mentioned Show Answer Answer:-C. Functions are reusable…
-
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.…
-
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 – Objects
C++ Multiple Choice Questions focuses on “Objects”. One shall practice these questions to improve their C++ programming skills needed for various interviews , placements, entrance exams and other competitive exams. These questions can be attempted by anyone focusing on learning C++ programming language. They can be a beginner, fresher, engineering graduate or an experienced IT…