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

Loading MCQs...

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.

Boolean Logic Operators Programming

Question 2: Which of the following are examples of comparison operators?

==, !=, and > are comparison operators, while + is primarily an arithmetic operator.

Operators Comparison Programming Logic

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.

Array Data Structure Programming Basics

Question 4: Which of the following are benefits of modular programming?

Modular programming improves readability, maintenance, and reusability by dividing logic into smaller units.

Modularity Maintainability Reuse Readability

Question 5: In programming, what is a variable?

A variable stores data values that can be used and modified in a program.

Variable Programming Basics Coding

Question 6: Which of the following are fundamental programming control structures?

Sequence, selection, and iteration are the three core control structures in programming.

Sequence Selection Iteration 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.

Loop For Loop Programming Logic

Question 8: What is the main purpose of a function in programming?

Functions help organize logic into reusable and manageable blocks.

Function Programming Reuse Modularity

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.

Logic Boolean Operators Programming

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.

Array Programming Data Structure Basics

Showing 1 to 10 of 16 results