Introduction to Computing MCQs with Answers
Practice important Introduction to Computing MCQs with answers and explanations.
Multiple Choice Questions
Q1331: Which of the following is a key feature of pseudocode?
- A: Strict syntax rules
- B: Consistent, concise notation for recurring structures
- C: Complex syntax and semantics
- D: Incompatibility with formal languages
View Answer
B
Q1332: Which programming languages are mentioned as influences on pseudocode?
- A: Assembly and COBOL
- B: Algol and Pascal
- C: Fortran and BASIC
- D: Java and C++
View Answer
B
Q1333: What is the purpose of the pseudocode structure name = expression?
- A: To store a computed value
- B: To declare a variable
- C: To perform a loop operation
- D: To create a conditional statement
View Answer
A
Q1334: In pseudocode, how is a computed value saved for future reference?
- A: store name as expression
- B: name <- expression
- C: name = expression
- D: assign expression to name
View Answer
C
Q1335: What pseudocode structure is used for conditional activities?
- A: loop (condition): activity
- B: while (condition) { activity }
- C: if (condition): activity else: activity
- D: condition ? activity : activity
View Answer
C
Q1336: What should follow the if keyword in pseudocode?
- A: A variable assignment
- B: An indented block of code
- C: A loop statement
- D: A print statement
View Answer
B
Q1337: How does pseudocode represent alternative actions based on conditions?
- A: Using loops
- B: Using nested if statements
- C: Using the if and else keywords
- D: Using inline conditional operators
View Answer
C
Q1338: Which pseudocode structure correctly handles a leap year condition?
- A: if (year is leap year) daily total = total / 366 else daily total = total / 365
- B: if year is leap year daily total = total / 366 otherwise daily total = total / 365
- C: if (year % 4 == 0) daily total = total / 366 else daily total = total / 365
- D: if (isLeapYear(year)) daily total = total / 366 else daily total = total / 365
View Answer
C
Q1339: What does the pseudocode RemainingFunds = CheckingBalance + SavingsBalance accomplish?
- A: It assigns the value of CheckingBalance to RemainingFunds
- B: It computes and stores the sum of CheckingBalance and SavingsBalance into RemainingFunds
- C: It subtracts SavingsBalance from CheckingBalance
- D: It multiplies CheckingBalance by SavingsBalance
View Answer
B
Q1340: Why might pseudocode be preferred over formal programming languages during algorithm development?
- A: It is more formal and precise
- B: It is more intuitive and less formal
- C: It provides more complex syntax options
- D: It integrates better with machine code
View Answer
B