1) What is the primary purpose of the analysis phase in the iterative development process? a) A. To write the code b) B. To identify inputs, processes, and outputs of the problem c) C. To test the program d) D. To create documentation 2) Which of the following design tools is used to visually represent the flow of a program? a) A. Database diagram b) B. Pseudocode c) C. Flowchart d) D. Data dictionary 3) In user interface design, what is a wireframe used for? a) A. To show the program's logic b) B. To represent the layout of inputs and outputs c) C. To display the program's code d) D. To demonstrate data structures 4) Which data type would be most appropriate for storing a single letter? a) A. Boolean b) B. String c) C. Character d) D. Array 5) What is the purpose of a Boolean data type? a) A. To store text b) B. To store true/false values c) C. To store numbers d) D. To store multiple values 6) Which operator would you use to check if two values are NOT equal? a) A. == b) B. <= c) C. <> d) D. >= 7) What is a running total within a loop used for? a) A. Counting iterations b) B. Accumulating values during iteration c) C. Checking loop conditions d) D. Storing array indices 8) Which of these is an example of a complex conditional statement? a) A. x > 5 b) B. name == "John" c) C. age >= 18 AND score > 70 d) D. count < 10 9) What does the length predefined function return for an array? a) A. The largest value in the array b) B. The number of elements in the array c) C. The first element of the array d) D. The last element of the array 10) What type of error occurs when the program fails to execute due to incorrect syntax? a) A. Logic error b) B. Runtime / Execution error c) C. Syntax error d) D. Semantic error 11) What is input validation used for? a) A. To make the program run faster b) B. To ensure user inputs meet required criteria c) C. To create user interfaces d) D. To sort data 12) Which of these is an example of extreme test data? a) A. Normal expected values b) B. Values at the edge of acceptable range. c) C. Typical user input d) D. Standard numbers 13) What makes code more readable? a) A. Using single-letter variable names b) B. Removing all white space c) C. Meaningful identifier names d) D. Minimal commenting 14) What is the purpose of internal commentary in code? a) A. To make the code run faster b) B. To explain how the code works c) C. To create variables d) D. To declare functions 15) Which loop would you use when you know exactly how many iterations are needed? a) A. While loop b) B. Do-while loop c) C. For loop d) D. If statement 16) What does array traversal mean? a) A. Sorting the array b) B. Creating a new array c) C. Accessing each element of the array d) D. Deleting array elements 17) How is string concatenation performed? a) A. By adding strings together b) B. By dividing strings c) C. By comparing strings d) D. By sorting strings 18) What is the purpose of the random predefined function? a) A. To round numbers b) B. To generate random values c) C. To sort data d) D. To validate input 19) Which of these is an example of efficient use of coding constructs? a) A. Using loops in place of multiple lines of coding b) B. Using appropriate data types for variables c) C. Repeating code multiple times d) D. Using global variables extensively 20) What is pseudocode used for? a) A. To compile the program b) B. To write the final code c) C. To plan program logic in plain language d) D. To test the program

National 5 Computing Science - Software Development Revision

Leaderboard

Visual style

Options

Switch template

Continue editing: ?