Programming Fundamentals MCQs with Answers and Explanations
Practice Programming Fundamentals MCQs. from Software Engineering & Programming subject. with solved answers and explanations. updated syllabus-based questions.
Search MCQs, Papers, Topics
Question 1: What is the output of the expression: 10 > 5 AND 3 < 1 ?
10 > 5 is True and 3 < 1 is False, so True AND False results in False.
Question 2: Which of the following are examples of comparison operators?
==, !=, and > are comparison operators, while + is primarily an arithmetic operator.
Question 3: Which data structure is commonly used to store a list of values under one variable name?
An array stores multiple values in a single named structure.
Question 4: Which of the following are benefits of modular programming?
Modular programming improves readability, maintenance, and reusability by dividing logic into smaller units.
Question 5: In programming, what is a variable?
A variable stores data values that can be used and modified in a program.
Question 6: Which of the following are fundamental programming control structures?
Sequence, selection, and iteration are the three core control structures in programming.
Question 7: Which loop is generally used when the number of repetitions is already known?
A for loop is commonly used when the number of iterations is predetermined.
Question 8: What is the main purpose of a function in programming?
Functions help organize logic into reusable and manageable blocks.
Question 9: What will be the output of the expression 5 > 3 AND 2 < 1?
5 > 3 is True, but 2 < 1 is False; True AND False evaluates to False.
Question 10: Which data structure stores multiple values under a single variable name in many programming languages?
An array stores multiple values under a single variable name, usually of the same type.
Showing 1 to 10 of 16 results