0% found this document useful (0 votes)
32 views6 pages

STRUCTURED PROGRAMMING MCQ by MINS

The document consists of a series of questions related to structured programming and the software development cycle, covering topics such as programming errors, variable initialization, algorithm properties, and control structures. It includes multiple-choice questions that test knowledge on software validation, programming languages, and error types. The content is designed for educational purposes, likely aimed at students learning about programming concepts.

Uploaded by

isaacabban442
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views6 pages

STRUCTURED PROGRAMMING MCQ by MINS

The document consists of a series of questions related to structured programming and the software development cycle, covering topics such as programming errors, variable initialization, algorithm properties, and control structures. It includes multiple-choice questions that test knowledge on software validation, programming languages, and error types. The content is designed for educational purposes, likely aimed at students learning about programming concepts.

Uploaded by

isaacabban442
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

STRUCTURED PROGRAMMING:

What are the four major steps involved in the Software Development Cycle?
a) Program Design, Program Testing, Debugging, Maintenance
b) Software Specification, Software Development, Software Validation,
Software Evolution
c) Input Statements, Algorithms, Output Statements, Properties of Algorithms
d) Sorting, Searching, Flowcharts, Subprograms

What is the main aim of Software Validation in the Software Development


Cycle?
a) Program Design
b) Program Testing
c) Debugging
d) To validate the software to see if it does exactly what the customer wants

What is the act of writing a set of instructions in solving problems for a


computer to execute known as?
a) Program Design
b) Program Testing
c) Software Development
d) Computer Programming

What is the language in which the instructions for the computer to execute are
written?
a) Machine language
b) Assembler language
c) High level language
d) All of the above

6. Which of the following is not a type of programming error?


a) Syntax error
b) Logical error
c) Runtime error
d) Input error

7. What is the purpose of variable initialization in programming?


a) To declare a variable
b) To assign a value to a variable
c) To perform a mathematical operation
d) To print the variable's value

8. What is the term used for a graphical/pictorial representation of the logical


set of instructions?
a) Pseudocode
b) Flowchart

Mensah Isaac Nana Sam(MINS)


c) Algorithm
d) Variable

9. Which step of the Software Development Cycle involves using the software
specification to develop the required software for the client?
a) Software Specification
b) Software Development
c) Software Validation
d) Software Evolution

10. What is the term for the process of converting a program into an executable
file?
a) Compilation
b) Interpretation
c) Execution
d) Debugging

11. What is the term used for a set of instructions for solving problems written
for a computer to execute?
a) Algorithm
b) Flowchart
c) Variable
d) Program

12. Which of the following is not a type of sorting technique?


a) Bubble Sort
b) Merge Sort
c) Radix Sort
d) Linear Sort

13. What is the main aim of the step "Maintenance" in the Software
Development Cycle?
a) To validate the software
b) To provide description of the program
c) To ensure that the software meets the changing need of the customers
d) To develop the required software for the client

14. What is the term used for the act of writing a set of instructions in solving
problems for a computer to execute?
a) Software Development
b) Program Design
c) Computer Programming
d) Program Testing

15. Which of the following is not a type of program translator?


a) Interpreters
b) Assemblers

Mensah Isaac Nana Sam(MINS)


c) Compilers
d) Debuggers

16. What is the property of algorithms that ensures they can produce the
required output after a finite number of steps for any input?
a) Generality
b) Definiteness
c) Finiteness
d) Effectiveness

17. Which type of error occurs as a violation of a programming rule or not


writing an instruction in conformity with the rules of the language being used?
a) Logical error
b) Runtime error
c) Syntax error
d) Compilation error

18. What is the main aim of the step "Maintenance" in the Software
Development Cycle?
a) To validate the software
b) To provide description of the program
c) To ensure that the software meets the changing need of the customers
d) To develop the required software for the client

19. Which of the following is a common runtime error message?


a) Syntax out of range
b) Device time in
c) Illegal function call
d) Overflow out of bounds

20. What goes into writing algorithms?


a) Only variables
b) Only input statements
c) Only output statements
d) Variables, input statements, output statements, operators, expressions,
looping, and decision-making statements

21. Which of the following is NOT a property of algorithms?


a) Generality
b) Flexibility
c) Finiteness
d) Definiteness

22. How are variables declared in most programming languages like C++?
a) DECLARE variable AS datatype
b) DECLARE variable, datatype

Mensah Isaac Nana Sam(MINS)


c) DECLARE datatype AS variable
d) DECLARE variable

23. Which type of error is usually detected when there is a disparity between
the program output and the expected output?
a) Syntax error
b) Logical error
c) Runtime error
d) Compilation error

24. What is the purpose of variable initialization in programming?


a) To declare a variable
b) To assign a value to a variable
c) To perform a mathematical operation
d) To print the variable's value

25. Which of the following is NOT a data type commonly used in programming?
a) INTEGER
b) DOUBLE
c) BOOL
d) DECIMAL

26. Which property of algorithms ensures that all instructions should be basic
and capable of being performed mechanically within a finite amount of time?
a) Generality
b) Definiteness
c) Effectiveness
d) Finiteness

27. How should variable names be formatted in programming languages?


a) Only in lowercase
b) Only in uppercase
c) A combination of lowercase and uppercase
d) Using special characters

28. What is the term used for a graphical/pictorial representation of the logical
set of instructions?
a) Pseudocode
b) Flowchart
c) Algorithm
d) Variable

29. Which type of error occurs when a program is executing?


a) Syntax error
b) Logical error
c) Runtime error
d) Compilation error

Mensah Isaac Nana Sam(MINS)


30. Which of the following is NOT a valid variable name?
a) d.o.b
b) Interest-rate
c) IV
d) 5Times_Table

30. What is the assignment operator in programming known as?


a) Equal sign
b) Replacement sign
c) Minus sign
d) Plus sign

31. Which of the following is an example of a constant assignment?


a) sum = total
b) sum = 100
c) FirstName = "John"
d) sum = sqrt(64)

32. How are mathematical expressions generally evaluated?


a) From right to left
b) From innermost set of parentheses to outermost
c) Based on alphabetical order
d) Randomly

33. What is the purpose of the assignment operator in mathematical


expressions?
a) To perform addition only
b) To assign values to variables
c) To multiply two variables
d) To divide two constants

34. Which control structure defines the order in which program statements are
executed?
a) Decision making
b) Looping
c) Sequence
d) Function

35. When is the Simple IF statement best used?


a) When there are multiple courses of action
b) When there is only ONE course of action
c) When there are no alternatives
d) When there are no conditions

Mensah Isaac Nana Sam(MINS)


36. What is the purpose of the ELSE part in the IF-THEN-ELSE statement?
a) To repeat the action
b) To provide an alternative course of action
c) To end the program
d) To skip the action

37. Which control structure is used for decision making in choosing between 2
or more alternatives?
a) Sequence
b) Looping
c) Decision making
d) Function

38. How many alternatives can be chosen from in the IF-THEN-ELSE IF


statement?
a) Only one
b) Two
c) More than two
d) None

39. In the IF-THEN-ELSE IF statement, what happens if none of the conditions


are true?
a) The program ends
b) The default action is taken
c) An error occurs
d) The program restarts

40. What is the purpose of the END IF statement in decision-making control


structures?
a) To indicate the end of the program
b) To separate conditions
c) To close the conditional block
d) To restart the program

Mensah Isaac Nana Sam(MINS)

You might also like