Skip to content

Computer · Programming Fundamentals & OOP · page 14 of 18

Programming Languages MCQs with Answers

Includes 12 past paper MCQs (marked).

Timed quizzes, instant results, track your progress — free

Practice these MCQs in the app

Programming 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.

  1. 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)

  2. 132.

    In C programming, which symbol is used to denote the end of a statement?

  3. 133.

    When taking input for a variable named 'age' in C++, what is the correct syntax?

  4. 134.

    Which function is commonly used in C programming to display output on the screen?

  5. 135.

    Which of the following are considered logical operators in programming?

  6. 136.

    What does the scope of a variable in programming determine?

  7. 137.

    What is the function called where all C++ programs begin their execution?

  8. 138.

    Past Paper MCQ

    When developing a computer program, who is responsible for designing the program's structure?

  9. 139.

    What is the term for the set of rules that defines how a program must be written in a programming language?

  10. 140.

    What is BASIC in the context of computers?

Start studying free