WorksheetsPROG SUM EXAM1&2
Total questions: 69
Worksheet time: 35mins
The use of computer programming languages to give computers instructions on what actions to perform.
Testing and Debugging
coding
Requirement Analysis
System Design
The following are language translator except _______.
Compiler
Editor
Assembler
Interpreter
A programming model which is derived from structured programming, based upon the concept of calling procedure.
Database Approach
Procedural
Logical
Object-oriented
An error that occurs during program execution
semantic error
logical error
syntax error
run-time error
Instructions in machine languages are written in __________.
0 to 9
0s only
1s only
0s and 1s.
The process of manually reviewing the source code of a program.
debugging
compiling
decoding
desk-checking
Even when the software is completed, it needs to be maintained and evaluated regularly.
TRUE
FALSE
Requirement Analysis involves the collection of information and the definition of the characteristics or features of the desired system.
TRUE
FALSE
What is the first step in the Program Development Cycle?
Documentation and Maintenance
Requirement Analysis
System Design
Coding
Testing is any activity designed to keep programs error-free, up-to-date, and in good working condition.
TRUE
FALSE
A collection of instructions that can be executed by a computer to perform a specific task.
Flowchart
Pseudocode
Machine Language
Computer Program
In the testing and debugging phase, changes are made to improve a system's performance, correct problems, enhance security, or address user requirements.
TRUE
FALSE
Procedural programming is also referred to as imperative programming.
TRUE
FALSE
Alpha testing is a type of testing performed to identify bugs before releasing the product to real users or to the public
TRUE
FALSE
System Design involves the collection of information and the definition of the characteristics or features of the desired system.
TRUE
FALSE
A logical error is a mistake that the programmer made while designing the solution to a problem.
TRUE
FALSE
Which of the following programming languages uses an interpreter?
i. Python
ii. C#
iii. C++
ii only
i only
i & ii only
iii only
Which of the following is an advantage of low-level language?
It can find errors which you can easily modify.
It uses English-like instructions which can be understood by the users.
It requires very less time for their execution.
It can be run on a variety of computer types.
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.
run-time error
syntax error
logical error
Semantic error
Problem Specification. Jay-ar wants to determine if the inputted number is a negative number. Which of the following serves as the input item?
It is a negative number or not.
Number
Number < 0
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
Line 2
Line 1
Line 1 & 2
Line 3
If the flowchart becomes complex, it is better to use on-page or off-page connectors to prevent the intersection of flow lines.
TRUE
FALSE
Identify the correct flowcharting symbol that represents the statement "DISPLAY Name, Age"
Hexagon / Piattos shape
Diamond shape
Rectangle shape
Parallelogram
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
Line 3
Line 5
Line 4
Line 1
Flowchart is a step-by-step sequence of instructions that describe how the data is to be processed to produce the desired output
TRUE
FALSE
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
Line 7
Line 6
Line 4
Line 5
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
Line 5
Line 4
Line 3
Line 1
The following are keywords used to calculate the result of an expression or perform an expression except ______.
DETERMINE
CALCULATE
SET
COMPUTE
The processing typically involves performing one or more calculations using the Output items.
TRUE
FALSE
Which of the following keywords is used in conditions for testing equality?
WHILE – ENDWHILE
CASE – OTHERS – ENDCASE
DO – WHILE
FOR – ENDFOR
The following are all ways of expressing an algorithm except ________.
Pseudocode
Flowcharts
Natural Languages
Expressions
Problem Specification. Jay-ar wants to compute for the area of a rectangle. Which of the following serves as the output item?
length and width
Area
Area = length x width
Two flow lines could come out from a process symbol.
TRUE
FALSE
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
Line 2
Line 1
Line 1 & 2
Line 3
Algorithm is written in the ____________ column of the Input-Process-Output (IPO) chart.
Input
Processing
Column
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
Line 5
Line 4
Line 7
Line 1
Check the feasibility of implementing the program is part of the System Design phase.
TRUE
FALSE
There should be only one flow line that should enter a decision symbol.
TRUE
FALSE
Which of the following is an advantage of high-level language?
A computer can easily understand the high-level language
Writing instructions in a high-level language is easier
It takes more memory to consume.
It requires very less time for their execution.
An implementation of an algorithm in the form of annotations and informative text written in plain English.
flowchart
structure
pseudocode
procedures
Computer cannot understand mnemonics in assembly language, thus a translator is used called an interpreter.
TRUE
FALSE
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.
logical error
syntax error
semantic error
run-time error
A finite list of instructions, most often used in solving problems or performing tasks.
pseudocode
procedure
algorithm
flowchart
The following statements are true about programming paradigm except ______
One programming paradigm is enough to solve all computing problems
It is an approach or method to solve a problem using tools and techniques that are
Procedural, Object-Oriented, Functional and Logical are programming paradigms
It is also a way to classify programming languages based on their features.
The programs created using high-level language run on different machines with little change or no change at all.
TRUE
FALSE
An error in a program's source code that gives way to unanticipated and erroneous behavior.
syntax error
semantic error
logical error
run-time error
Which of the following programming languages uses the compilation process?
i. Python
ii. C#
iii. C++
iv. Java
ii, iv
ii, iii
ii, iii, iv
i, ii, iii
What is the last step in the Program Development Cycle ?
Requirement Analysis
Coding
System Design
Documentation and Maintenance
Which of the following is the correct sequence of the phases of program development?
1.System Design
2.Requirement Analysis
3.Documentation and Maintenance
4.Coding or Writing The Program
5.Testing and Debugging
2,4,1,5,3
2,1,4,3,5
2,1,5,4,3
2,1,4,5,3
Programming is important to automate, collect, manage, calculate, and analyze the processing of data and information accurately.
TRUE
FALSE
Low-level language uses English-like instructions
TRUE
FALSE
Which of the following keywords is used in creating conditions in pseudocode?
IF – ELSE IF — ENDIF
WHILE – ENDWHILE
DO – WHILE
FOR – ENDFOR
In drawing a proper flowchart, all necessary requirements should be listed out in logical order.
TRUE
FALSE
Most algorithms end with instruction to display, print, or store the Output items.
TRUE
FALSE
Problem Specification. Jay-ar wants to determine if the inputted number is a negative number. Which of the following serves as the processing item?
Number < 0
It is a negative number or not.
Number
Problem Specification. Jay-ar wants to compute for the area of a rectangle. Which of the following serves as the input item?
Area
length and width
Area = length x width
In which phase of Program Development Cycle do we write the solution in step by step statements?
Documentation and Maintenance
Coding
Testing and Debugging
System Design
A translator that transforms source language (high-level language) into object language all at once.
Interpreter
Compiler
Assembler
Syntax Analyzer
Pseudocode is a pictorial representation of a step-by-step solution to a problem.
TRUE
FALSE
A translator that converts one instruction at a time, and then executes that instruction immediately.
Compiler
Assembler
Syntax Analyzer
Interpreter
A computer program that automatically converts instructions written in assembly language into machine language
Syntax Analyzer
Interpreter
Assembler
Compiler
The set of instructions and statements written by a programmer using a computer programming language
Pseudocode
Command List
Flow Chart
Source Code
Programming paradigm is a way to classify programming languages based on their data types.
TRUE
FALSE
In Testing and Debugging, we check whether the code written is solving the specified problem or not.
TRUE
FALSE
We follow a sequence of steps called phases when we want to develop a program using any programming language,
TRUE
FALSE
Flow lines indicate the exact sequence in which instructions are executed
TRUE
FALSE
All arithmetic processes such as adding, subtracting, multiplication, and division are indicated by decision symbol.
TRUE
FALSE
Decision based operations such as yes/no question or true/false are indicated by process box in flowchart.
TRUE
FALSE
The processing typically involves performing one or more calculations using the Output items.
TRUE
FALSE
