Computer · Programming Fundamentals & OOP · page 14 of 18
Programming Languages MCQs with Answers
Timed quizzes, instant results, track your progress — free
Practice these MCQs in the appProgramming Languages MCQs (131–140)
10 MCQs with answers and a short one-liner. Hide answers to test yourself.
Past paper MCQs in this chapter · See all past papers
Answers and one-liners are hidden. Tap an option to check that question, or show all.
- 131.
What will be the output of the following Python code snippet? a = [1, 2, 3, 4] b = [num * 2 for num in a if num % 2 == 0] print(b)
- 132.
In C programming, which symbol is used to denote the end of a statement?
- 133.
When taking input for a variable named 'age' in C++, what is the correct syntax?
- 134.
Which function is commonly used in C programming to display output on the screen?
- 135.
Which of the following are considered logical operators in programming?
- 136.
What does the scope of a variable in programming determine?
- 137.
What is the function called where all C++ programs begin their execution?
- 138.
Past Paper MCQ
When developing a computer program, who is responsible for designing the program's structure?
- 139.
What is the term for the set of rules that defines how a program must be written in a programming language?
- 140.
What is BASIC in the context of computers?