Back to Dashboard

Software Engineering

Complete Subject Question Bank

Subject Overview
Understand the Software Development Life Cycle (SDLC), testing types (unit, integration, system), flowchart interpretation, and pseudocode analysis.
02 Introduction To Algorithms , Flowcharts & Pseudocode#1

Stephany is learning to draw a flowchart to calculate the area of a circle. Select the appropriate option that would fit into the process section of the flow chart?

A
Select the appropriate option that would fit into the process section of the flow chart?
B
Read the value of radius
C
Area=3.14*radius*radius
D
Print the area
E
Check if radius has positive value

Correct answer: Area=3.14*radius*radius.

02 Introduction To Algorithms , Flowcharts & Pseudocode#2

Arrange the words given below in a meaningful sequence. 1. Word 2. Paragraph 3. Sentence 4. Letters 5. phrase

A
1. Word 2. Paragraph 3. Sentence 4. Letters 5. phrase
B
4,1,5,3,2
C
4,2,5,1,3
D
4,1,5,2,3
E
4,1,3,5,2

Correct answer: 4,1,5,3,2.

02 Introduction To Algorithms , Flowcharts & Pseudocode#3

Identify the meaningful variable names which can be used?

A
1num
B
user name
C
user1
D
$register_number

Variable names should not start with a number, should not have spaces in between, should not start with symbols except dollar( $ ) and underscore( _ )

02 Introduction To Algorithms , Flowcharts & Pseudocode#4

Choose the correct and meaningful pseudo-code to add two numbers?

A
Start the process READ a,b ADD a,b and store it in sum Display sum Stop
B
BEGIN READ a, b sum=add(a,b) DISPLAY sum END
C
BEGIN DECLARE number1,number2,sum READ number1,number2 sum<----number1+number2 PRINT sum END
D
BEGIN READ a, b sum=a+b PRINT sum END

Correct answer: BEGIN DECLARE number1,number2,sum READ number1,number2 sum<----number1+number2 PRINT sum END.

02 Introduction To Algorithms , Flowcharts & Pseudocode#5

Match the appropriate Flowchart symbols with its purpose. Start/Stop Flow direction Connector Decision making Process Input/output

A
Start/Stop, Flow direction, Connector, Decision making, Process, Input/output
B
Incorrect matching/order option A
C
Incorrect matching/order option B
D
Incorrect matching/order option C

The standard flowchart symbols match: oval=Start/Stop, arrow=Flow direction, circle=Connector, diamond=Decision, rectangle=Process, parallelogram=Input/output.

02 Introduction To Algorithms , Flowcharts & Pseudocode#6
Logic Block
1
Which of the following represents the correct sequence for the given pseudo-code? BEGIN ------------- ------------- ------------- ------------- END a. READ number1 and number2 DECLARE variables number1, number2, result result <- number1 * number2 PRINT result b. DECLARE variables number1, number2, result result <- number1 * number2 READ number1 and number2 PRINT result c. DECLARE variables number1, number2, result READ number1 and number2 PRINT result result <- number1 * number2 d. DECLARE variables number1, number2, result READ number1 and number2 result <- number1 * number2 PRINT result
A
READ number1 and number2 DECLARE variables number1, number2, result result <- number1 * number2 PRINT result
B
DECLARE variables number1, number2, result result <- number1 * number2 READ number1 and number2 PRINT result
C
DECLARE variables number1, number2, result READ number1 and number2 PRINT result result <- number1 * number2
D
DECLARE variables number1, number2, result READ number1 and number2 result <- number1 * number2 PRINT result

Correct answer: DECLARE variables number1, number2, result result <- number1 * number2 READ number1 and number2 PRINT result.

02 Introduction To Algorithms , Flowcharts & Pseudocode#7

Expression is a combination of ___________, ____________ and _______________

A
variables
B
functions
C
operators
D
constants
E
keywords

Expression is a combination of operands and operators. This operand can be a variable or a constant

02 Introduction To Algorithms , Flowcharts & Pseudocode#8

Which of the following represents the correct sequence for the given algorithm? a. Start Get the two numbers. Add the two numbers and store the result in sum. Display the sum value. Stop b. Start Add the two numbers and store the result in sum. Get the two numbers. Display the sum value. Stop c. Get the two numbers. Start Add the two numbers and store the result in sum. Display the sum value. Stop d. Start Get the two numbers. Display the sum value. Add the two numbers and store the result in sum. Stop

A
Start Get the two numbers. Add the two numbers and store the result in sum. Display the sum valu
B
Stop
C
Start Add the two numbers and store the result in sum. Get the two numbers. Display the sum valu
D
Stop
E
Get the two numbers. Start Add the two numbers and store the result in sum. Display the sum valu
F
Stop
G
Start Get the two numbers. Display the sum valu
H
Add the two numbers and store the result in sum. Stop
I
Stop

Correct answer: Start Get the two numbers. Add the two numbers and store the result in sum. Display the sum valu.

02 Introduction To Algorithms , Flowcharts & Pseudocode#9

Choose the correct arrang5eme2nt of2 ma4them8atical symbols to make the equation true. a. 600 [+] 400 [] 800 [×] 300 [/] 200 = 200 b. 600 [/] 400 [+] 800 [] 300 [×] 200 = 200 c. 600 [×] 400 [/] 800 [-] 300 [+] 200 = 200 d. 600 [] 400 [+] 800 [/] 300 [×] 200 = 200

A
600 [+] 400 [] 800 [×] 300 [/] 200 = 200
B
600 [/] 400 [+] 800 [] 300 [×] 200 = 200
C
600 [×] 400 [/] 800 [-] 300 [+] 200 = 200
D
600 [] 400 [+] 800 [/] 300 [×] 200 = 200

Correct answer: 600 [×] 400 [/] 800 [-] 300 [+] 200 = 200.

02 Introduction To Algorithms , Flowcharts & Pseudocode#10
Logic Block
1
Which of the following represents the correct sequence for the given pseudo-code? BEGIN [1] READ mark1, mark2, mark3, mark4, mark5 [2] PRINT average [3] total < mark1 + mark2 + mark3 + mark4 + mark5 [4] average < total / 5 [5] DECLARE mark1, mark2, mark3, mark4, mark5, total, average END a. 1 5 4 3 2 b. 5 1 4 3 2 c. 5 1 3 4 2 d. 1 5 3 4 2
A
1 5 4 3 2
B
5 1 4 3 2
C
5 1 3 4 2
D
1 5 3 4 2

Correct answer: 5 1 4 3 2.

02 Introduction To Algorithms , Flowcharts & Pseudocode#11

Flow chart for adding numbers Is the given flowchart correct?

A
The symbol for reading input from the user is incorrect
B
The flowchart has no error
C
The symbol for process is incorrect
D
The symbol for start/stop is incorrect

Correct answer: The symbol for reading input from the user is incorrect.

02 Introduction To Algorithms , Flowcharts & Pseudocode#12
Logic Block
1
Rearrange the pseudo-code for multiplying two given numbers, Choose the correct option from the below. 1 BEGIN 2 result <- number1 * number2 3 PRINT result 4 READ number 1 and number 2 5 DECLARE variables number1, number2, result 6 END a. 1 4 5 2 3 6 b. 1 4 5 3 2 6 c. 1 5 4 3 2 6 d. 1 5 4 2 3 6
A
1 4 5 2 3 6
B
1 4 5 3 2 6
C
1 5 4 3 2 6
D
1 5 4 2 3 6

Correct answer: 1 5 4 3 2 6.

03 Selection Statements#13

If there are 6 chocolates and you take away 4, how many do you have?

A
2
B
6
C
4
D
None

Correct answer: 4.

03 Selection Statements#14

What do you infer from this statement? Only if Alvin is happy, then he does not go to work.

A
Alvin is happy and he goes to work.
B
Alvin is happy and he does not go to work
C
Alvin is not happy and he goes to work.
D
Alvin is not happy and he does not go to work

Correct answer: Alvin is not happy and he goes to work..

03 Selection Statements#15

By default, the flow of a program is________

A
conditional
B
top to bottom
C
iterative
D
bottom to top

Correct answer: top to bottom.

03 Selection Statements#16
Logic Block
1
Identify the correct pseudo-code logic for checking a number divisible by 5 or 11. a. DECLARE number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINT number not divisible by 5 or 11 END IF READ number BEGIN b. BEGIN DECLARE number READ number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINT number not divisible by 5 or 11 END IF END c. DECLARE number READ number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINT number not divisible by 5 or 11 END BEGIN d. DECLARE number READ number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINT number not divisible by 5 or 11 END IF
A
DECLARE number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINT number not divisible by 5 or 11 END IF READ number BEGIN
B
BEGIN DECLARE number READ number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINT number not divisible by 5 or 11 END IF END
C
DECLARE number READ number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINT number not divisible by 5 or 11 END BEGIN
D
DECLARE number READ number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINT number not divisible by 5 or 11 END IF

Correct answer: BEGIN DECLARE number READ number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINT number not divisible by 5 or 11 END IF END.

03 Selection Statements#17
Logic Block
1
Choose the correct options to complete the pseudo-code and determine whether the number is positive, zero, or negative. BEGIN DECLARE number READ number IF _________ PRINT Number is positive IF _________ PRINT Number is zero IF _________ PRINT Number is Negative END IF END a. number>0, number>0, number==0 b. number<0, number>0, number==0 c. number>0, number==0, number<0 d. number>0, number==0, number==0
A
BEGIN DECLARE number READ number IF _________ PRINT Number is positive IF _________ PRINT Number is zero IF _________ PRINT Number is Negative END IF END
B
number>0, number>0, number==0
C
number<0, number>0, number==0
D
number>0, number==0, number<0
E
number>0, number==0, number==0

Correct answer: number>0, number>0, number==0.

03 Selection Statements#18

Go to statements in the algorithm is

A
Used to iterate the sequence of steps
B
Used to alternate the flow of the program
C
Used in sequential arrangement of steps
D
Used to apply decisions in a program

Correct answer: Used to alternate the flow of the program.

03 Selection Statements#19

______________must be used when a set 5of st2atem2ents4 nee8ds to be executed only if a condition is met.

A
selection statements
B
Either selection or looping statements
C
Looping statements

Correct answer: selection statements.

03 Selection Statements#20
Logic Block
1
Which of the keyword is used to close the IF block, while writing a pseudo-code?
A
Else
B
End if
C
Else if
D
End

Correct answer: End if.

Key Topics to Study

Based on our question bank analysis, master these concepts to score high in Software Engineering.

SDLCTestingPseudocodeFlowchartLoopingSelectionRequirementsConfiguration
Recommended

Success Primer Exam

Test your knowledge under real exam conditions with our curated mock assessment.

Start Preparing for Primers
Watch Walkthroughs!