Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PROG SUM EXAM1&2

Total questions: 69

Worksheet time: 35mins

Name
Class
Date
1.

The use of computer programming languages to give computers instructions on what actions to perform.

a)

Testing and Debugging

b)

coding

c)

Requirement Analysis

d)

System Design

2.

The following are language translator except _______.

a)

Compiler

b)

Editor

c)

Assembler

d)

Interpreter

3.

A programming model which is derived from structured programming, based upon the concept of calling procedure.

a)

Database Approach

b)

Procedural

c)

Logical

d)

Object-oriented

4.

An error that occurs during program execution

a)

semantic error

b)

logical error

c)

syntax error

d)

run-time error

5.

Instructions in machine languages are written in __________.

a)

0 to 9

b)

0s only

c)

1s only

d)

0s and 1s.

6.

The process of manually reviewing the source code of a program.

a)

debugging

b)

compiling

c)

decoding

d)

desk-checking

7.

Even when the software is completed, it needs to be maintained and evaluated regularly.

a)

TRUE

b)

FALSE

8.

Requirement Analysis involves the collection of information and the definition of the characteristics or features of the desired system.

a)

TRUE

b)

FALSE

9.

What is the first step in the Program Development Cycle?

a)

Documentation and Maintenance

b)

Requirement Analysis

c)

System Design

d)

Coding

10.

Testing is any activity designed to keep programs error-free, up-to-date, and in good working condition.

a)

TRUE

b)

FALSE

11.

A collection of instructions that can be executed by a computer to perform a specific task.

a)

Flowchart

b)

Pseudocode

c)

Machine Language

d)

Computer Program

12.

In the testing and debugging phase, changes are made to improve a system's performance, correct problems, enhance security, or address user requirements.

a)

TRUE

b)

FALSE

13.

Procedural programming is also referred to as imperative programming.

a)

TRUE

b)

FALSE

14.

Alpha testing is a type of testing performed to identify bugs before releasing the product to real users or to the public

a)

TRUE

b)

FALSE

15.

System Design involves the collection of information and the definition of the characteristics or features of the desired system.

a)

TRUE

b)

FALSE

16.

A logical error is a mistake that the programmer made while designing the solution to a problem.

a)

TRUE

b)

FALSE

17.

Which of the following programming languages uses an interpreter?

i. Python

ii. C#

iii. C++

a)

ii only

b)

i only

c)

i & ii only

d)

iii only

18.

Which of the following is an advantage of low-level language? 

a)

It can find errors which you can easily modify.

b)

It uses English-like instructions which can be understood by the users.

c)

It requires very less time for their execution.

d)

It can be run on a variety of computer types.

19.

An error in a computer program caused by an aspect of the code that does not completely conform to the syntax of the programming language.

a)

run-time error

b)

syntax error

c)

logical error

d)

Semantic error

20.

Problem Specification. Jay-ar wants to determine if the inputted number is a negative number. Which of the following serves as the input item?

a)

It is a negative number or not.

b)

Number

c)

Number < 0

21.

In the given pseudocode below, which line is requiring for an output from the user?

Line 1   ENTER TotalBill, TipPercentage

Line 2   COMPUTE tip := TotalBill x TipPercentage

Line 3   DISPLAY tip

a)

Line 2

b)

Line 1

c)

Line 1 & 2

d)

Line 3

22.

If the flowchart becomes complex, it is better to use on-page or off-page connectors to prevent the intersection of flow lines.

a)

TRUE

b)

FALSE

23.

Identify the correct flowcharting symbol that represents the statement "DISPLAY Name, Age"


a)

Hexagon / Piattos shape

b)

Diamond shape

c)

Rectangle shape

d)

Parallelogram 

24.

In the given pseudocode below, which line asks an input coming from the user?

Line 1   SET numberCounter = 1, sum = 0

Line 2   WHILE numberCounter < =5

Line 3        INPUT number
Line 4        CALCULATE  sum := sum + number

Line 5        INCREMENT numberCounter

Line 6   ENDWHILE

Line 7   PRINT sum

a)

Line 3

b)

Line 5

c)

Line 4

d)

Line 1

25.

Flowchart is a step-by-step sequence of instructions that describe how the data is to be processed to produce the desired output

a)

TRUE

b)

FALSE

26.

In the given pseudocode below, which line contains a condition that performs the statement in DO-WHILE as long as the condition is true?

Line 1   SET numberCounter = 0, sum = 0

Line 2   DO

Line 3         INPUT number

Line 4         CALCULATE  sum := sum + number

Line 5         INCREMENT numberCounter

Line 6   WHILE numberCounter < 3
Line 7   PRINT sum

a)

Line 7

b)

Line 6

c)

Line 4

d)

Line 5

27.

In the given pseudocode below, which line is increasing the value of the variable by 1?

Line 1   SET numberCounter = 0, sum = 0

Line 2   DO

Line 3         INPUT number

Line 4         CALCULATE  sum := sum + number

Line 5         INCREMENT numberCounter

Line 6   WHILE numberCounter < 3
Line 7   PRINT sum

a)

Line 5

b)

Line 4

c)

Line 3

d)

Line 1

28.

The following are keywords used to calculate the result of an expression or perform an expression except ______.

a)

DETERMINE

b)

CALCULATE

c)

SET

d)

COMPUTE

29.

The processing typically involves performing one or more calculations using the Output items.

a)

TRUE

b)

FALSE

30.

Which of the following keywords is used in conditions for testing equality?

a)

WHILE – ENDWHILE

b)

CASE – OTHERS – ENDCASE

c)

DO – WHILE

d)

FOR – ENDFOR

31.

The following are all ways of expressing an algorithm except ________.

a)

Pseudocode

b)

Flowcharts

c)

Natural Languages

d)

Expressions

32.

Problem Specification. Jay-ar wants to compute for the area of a rectangle. Which of the following serves as the output item?

a)

length and width

b)

Area

c)

Area = length x width

33.

Two flow lines could come out from a process symbol.

a)

TRUE

b)

FALSE

34.

In the given pseudocode below, which line is performing calculations?

Line 1   ENTER TotalBill, TipPercentage

Line 2   COMPUTE tip := TotalBill x TipPercentage

Line 3   DISPLAY tip

a)

Line 2

b)

Line 1

c)

Line 1 & 2

d)

Line 3

35.

Algorithm is written in the ____________ column of the Input-Process-Output (IPO) chart.

a)

Input

b)

Processing

c)

Column

36.

In the given pseudocode below, which line is displaying the final value of the variable sum?

Line 1   SET numberCounter = 1, sum = 0

Line 2   WHILE numberCounter < =5

Line 3        INPUT number
Line 4        CALCULATE  sum := sum + number

Line 5        INCREMENT numberCounter

Line 6   ENDWHILE

Line 7   PRINT sum

a)

Line 5

b)

Line 4

c)

Line 7

d)

  Line 1

37.

Check the feasibility of implementing the program is part of the System Design phase.

a)

TRUE

b)

FALSE

38.

There should be only one flow line that should enter a decision symbol.

a)

TRUE

b)

FALSE

39.

Which of the following is an advantage of high-level language?

a)

A computer can easily understand the high-level language

b)

Writing instructions in a high-level language is easier

c)

It takes more memory to consume.

d)

It requires very less time for their execution.

40.

An implementation of an algorithm in the form of annotations and informative text written in plain English.

a)

flowchart

b)

structure

c)

pseudocode

d)

 

procedures

41.

Computer cannot understand mnemonics in assembly language, thus a translator is used called an interpreter.

a)

TRUE

b)

FALSE

42.

An error in a computer program caused by an aspect of the code that does not completely conform to the syntax of the programming language.

a)

logical error

b)

syntax error

c)

semantic error

d)

run-time error

43.

A finite list of instructions, most often used in solving problems or performing tasks.

a)

pseudocode

b)

procedure

c)

algorithm

d)

flowchart

44.

The following statements are true about programming paradigm except ______

a)

One programming paradigm is enough to solve all computing problems

b)

It is an approach or method to solve a problem using tools and techniques that are

c)

Procedural, Object-Oriented, Functional and Logical are programming paradigms

d)

It is also a way to classify programming languages based on their features.

45.

The programs created using high-level language run on different machines with little change or no change at all.

a)

TRUE

b)

FALSE

46.

An error in a program's source code that gives way to unanticipated and erroneous behavior.

a)

 

syntax error

b)

semantic error

c)

logical error

d)

run-time error

47.

Which of the following programming languages uses the compilation process?

i. Python

ii. C#

iii. C++

iv. Java

a)

ii, iv

b)

ii, iii

c)

ii, iii, iv

d)

 

i, ii, iii

48.

What is the last step in the Program Development Cycle ?

a)

Requirement Analysis

b)

Coding

c)

System Design

d)

Documentation and Maintenance

49.

Which of the following is the correct sequence of the phases of program development?

  1. 1.System Design

  2. 2.Requirement Analysis

  3. 3.Documentation and Maintenance

  4. 4.Coding or Writing The Program

  5. 5.Testing and Debugging

a)

2,4,1,5,3

b)

2,1,4,3,5

c)

2,1,5,4,3

d)

2,1,4,5,3

50.

Programming is important to automate, collect, manage, calculate, and analyze the processing of data and information accurately.

a)

TRUE

b)

FALSE

51.

Low-level language uses English-like instructions

a)

TRUE

b)

FALSE

52.

Which of the following keywords is used in creating conditions in pseudocode?

a)

IF – ELSE IF — ENDIF

b)

WHILE – ENDWHILE

c)

DO – WHILE

d)

 FOR – ENDFOR

53.

In drawing a proper flowchart, all necessary requirements should be listed out in logical order.

a)

TRUE

b)

FALSE

54.

Most algorithms end with instruction to display, print, or store the Output items.

a)

TRUE

b)

FALSE

55.

Problem Specification. Jay-ar wants to determine if the inputted number is a negative number. Which of the following serves as the processing item?

a)

Number < 0

b)

It is a negative number or not.

c)

Number

56.

Problem Specification. Jay-ar wants to compute for the area of a rectangle. Which of the following serves as the input item?

a)

Area

b)

length and width

c)

Area = length x width

57.

In which phase of Program Development Cycle do we write the solution in step by step statements?

a)

Documentation and Maintenance

b)

Coding

c)

Testing and Debugging

d)

System Design

58.

A translator that transforms source language (high-level language) into object language all at once.

a)

Interpreter

b)

Compiler

c)

Assembler

d)

Syntax Analyzer

59.

Pseudocode is a pictorial representation of a step-by-step solution to a problem.

a)

TRUE

b)

FALSE

60.

A translator that converts one instruction at a time, and then executes that instruction immediately.

a)

Compiler

b)

Assembler

c)

Syntax Analyzer

d)

Interpreter

61.

A computer program that automatically converts instructions written in assembly language into machine language

a)

Syntax Analyzer

b)

Interpreter

c)

Assembler

d)

Compiler

62.

The set of instructions and statements written by a programmer using a computer programming language

a)

Pseudocode

b)

Command List

c)

Flow Chart

d)

Source Code

63.

Programming paradigm is a way to classify programming languages based on their data types.

a)

TRUE

b)

FALSE

64.

In Testing and Debugging, we check whether the code written is solving the specified problem or not.

a)

TRUE

b)

FALSE

65.

We follow a sequence of steps called phases when we want to develop a program using any programming language, 

a)

TRUE

b)

FALSE

66.

Flow lines indicate the exact sequence in which instructions are executed

a)

TRUE

b)

FALSE

67.

All arithmetic processes such as adding, subtracting, multiplication, and division are indicated by decision symbol.

a)

TRUE

b)

FALSE

68.

Decision based operations such as yes/no question or true/false are indicated by process box in flowchart.

a)

TRUE

b)

FALSE

69.

The processing typically involves performing one or more calculations using the Output items.

a)

TRUE

b)

FALSE