Back to Dashboard

Software Engineering

Complete Subject Question Bank

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.

03 Selection Statements#21
Logic Block
1
READ age IF age>18 THEN PRINT Eligible to vote ENDIF The given pseudo-code snippet is an example for_______
A
Simple If logic
B
Sequence Logic
C
Else if ladder logic
D
Nested if logic

Correct answer: Simple If logic.

03 Selection Statements#22

When a single if-else logic is used, how many possible choices can be there?

A
3
B
1
C
0
D
2

Correct answer: 2.

03 Selection Statements#23

Decision statements are also called as _______________. a. Sequence logic b. Iteration logic c. Program logic d. Selection logic

A
Sequence logic
B
Iteration logic
C
Program logic
D
Selection logic

Correct answer: Selection logic.

03 Selection Statements#24

You are returning home from a hotel. On the way, you find a sealed envelope in a street, fully addressed with unused stamps on it. What would you do???

A
Open the envelope, find out who has dropped it by mistake, and send it to him if possibl
B
post it at the nearest mail box.
C
Remove the unused stamps and destroy the envelop
D
Leave the envelope there as it was and walk away

Correct answer: post it at the nearest mail box..

03 Selection Statements#25

Try some!!! If a doctor gives you 3 pills and tells you5 to ta2ke o2ne p4ill ev8ery half hour, how long would it take before all the pills had been taken?

A
3 hours
B
1 and half hour
C
1 hour
D
2 hours

Correct answer: 1 hour.

03 Selection Statements#26

Manual execution of the steps in the algorithm is called as _____

A
Dry run
B
Simple Run
C
Execution
D
compiling

Correct answer: Dry run.

03 Selection Statements#27

Which statement logic implements multiple-way selection?

A
If-else
B
Simple if
C
Sequential
D
Else if ladder

Correct answer: Else if ladder.

03 Selection Statements#28

A computer program must either use conditional statements or looping statements or sequential statements to solve a problem. All of them must not appear in the same program. State true/ false.

A
TRUE
B
FALSE

Correct answer: TRUE.

03 Selection Statements#29
Logic Block
1
Consider the pseudo-code snippet. What output do you think the snippet will produce if the sample input for number is 3? BEGIN DECLARE number READ number IF number>=0 IF number == 0 PRINT Zero ELSE PRINT Three ENDIF PRINT No Value END
A
Three No value
B
Zero Three No value
C
Zero Three
D
Zero No value
E
The final PRINT statement is completely outside of any if statement, so it always gets executed, and thus No value is displayed

Correct answer: Three No value.

03 Selection Statements#30

Identify the logic which suits the flowchart

A
if else
B
Simple if
C
Nested if
D
Else-if Ladder

Correct answer: Else-if Ladder.

03 Selection Statements#31

Which of the following is not a keyword used in a pseudo-code

A
End if
B
static
C
Start
D
Read

Correct answer: Start.

03 Selection Statements#32

From the option, find the correct pseudo-code to find the greatest of three numbers

A
BEGIN DECLARE variables a, b, c READ a, b, c IF a<b IF a<c PRINT a ELSE PRINT c ELSE IF b<c PRINT b ELSE PRINT c END
B
BEGIN DECLARE variables a,b,c READ a,b,c IF a>b IF a>c PRINT a ELSE PRINT c ELSE IF b>c PRINT b ELSE PRINT c END
C
BEGIN DECLARE variables a,b,c READ a,b,c IF a>c PRINT a ELSE PRINT c ELSE IF b>c PRINT b ELSE PRINT c END

Correct answer: BEGIN DECLARE variables a,b,c READ a,b,c IF a>b IF a>c PRINT a ELSE PRINT c ELSE IF b>c PRINT b ELSE PRINT c END.

03 Selection Statements#33

Pointing to a photograph of a boy Mathew said, "He is the son of the only son of my mother." How is Mathew related to that boy?

A
Uncle
B
Brother
C
Cousin
D
Father

Correct answer: Father.

03 Selection Statements#34

Analyze the statements. i)Danny is younger than Edwin ii)Christine is younger than Danny. iii)Christine is older than Edwin. If the first two statements are true, the third statement is

A
False
B
True
C
uncertain

Correct answer: False.

03 Selection Statements#35

Assume, there are four boys sitting on a sofa. Mithran is to the left of Anwar. Babu is to the right of Anwar. Edwin is between Anwar and Babu. Who would be second from the left in the photograph?

A
Mithran is to the left of Anwar. Babu is to the right of Anwar. Edwin is between Anwar and Babu. Who would be second from the left in the photograph?
B
Mithran
C
Edwin
D
Babu
E
Anwar

Correct answer: Edwin.

03 Selection Statements#36
Logic Block
1
"Invalid balloon number " O5R nu2mber2 > 14 OR 8number < 50 "This balloon can fiy to Tweety" OR number < 1 PRINT AND number%7 == 0 number%3 == 0 number > 50 ELSE "This balloon cannot fiy to Tweety" OR number%7 == 0 END IF You are provided with a partial pseudocode for the below problem statement. Drag and Drop the options provided so that it will be the correct pseudocode. Save Tweety Silvester and Tweety are friends. Bender was one of the Silvester's enemy. One day Silvester and Tweety went on to a trip. Bender planned to kidnap Tweety.. He kidnapped and kept her in one of the hot balloons tied up to a height. There were 50 hot balloons numbered from one. Each balloon will fiy to a certain height. Only the numbers having both 3 and 7 as its factors can fiy upto the height of the Tweety's balloon. Silvester was confused and he didn't know which numbered balloon can fiy to Tweety. (Note: If balloon number is greater than 50, or balloon number less than 1, then it should display invalid balloon number) Eg: Balloon's number: 42 This balloon can fiy to Tweety. Eg: Enter the Balloon's number: 24 This balloon cannot fiy to Tweety. Pseudocode : BEGIN DECLARE variable number READ number IF number > 50 OR number < 1 THEN PRINT "Invalid balloon number " ELSE IF number%3 == 0 AND number%7 == 0 THEN PRINT "This balloon can fiy to Tweety" ELSE PRINT "This balloon cannot fiy to Tweety" END IF END
A
Save Tweety Silvester and Tweety are friends. Bender was one of the Silvester's enemy. One day Silvester and Tweety went on to a trip. Bender planned to kidnap Tweety.. He kidnapped and kept her in one of the hot balloons tied up to a height. There were 50 hot balloons numbered from on
B
Each balloon will fiy to a certain height. Only the numbers having both 3 and 7 as its factors can fiy upto the height of the Tweety's balloon. Silvester was confused and he didn't know which numbered balloon can fiy to Tweety. (Note: If balloon number is greater than 50, or balloon number less than 1, then it should display invalid balloon number) Eg: Balloon's number: 42 This balloon can fiy to Tweety. Eg: Enter the Balloon's number: 24 This balloon cannot fiy to Tweety. Pseudocode : BEGIN DECLARE variable number READ number IF number > 50 OR number < 1 THEN PRINT "Invalid balloon number " ELSE IF number%3 == 0 AND number%7 == 0 THEN PRINT "This balloon can fiy to Tweety" ELSE PRINT "This balloon cannot fiy to Tweety" END IF END

Correct answer: Save Tweety Silvester and Tweety are friends. Bender was one of the Silvester's enemy. One day Silvester and Tweety went on to a trip. Bender planned to kidnap Tweety.. He kidnapped and kept her in one of the hot balloons tied up to a height. There were 50 hot balloons numbered from on.

03 Selection Statements#37
Logic Block
1
Choose the correct pseudocode for the below problem statement. Problem Statement : Hide and Seek One day, Bunny and his friends were playing hide and seek in the forest. Tom went along to hide. He finds an abandoned bag containing a board(8x8) game in a cave. He gets excited and starts playing the game only to realizes that it's magical. He has three chances to roll the dice. Each turn's outcome will lead into a new surrounding and some would be dangerous. If the outcome of rolling dices is in multiples of 3 then he will be caught in a dangerous phase. Note if any one outcome is multiple of 3, then tom is in danger. (If the outcome of rolling dices is either 0 or less than that you should tell Tom as "Invalid Turn". ) Example : Enter value of turn 1 10 Enter value of turn 2 5 Enter value of turn 3 2 Tom is safe Example : Enter value of turn 1 12 Enter value of turn 2 5 Enter value of turn 3 2 Tom is in danger a. BEGIN DECLARE variables turn1,turn2,turn3 READ turn1, turn2, turn3 IF turn1>0 AND turn2>0 AND turn3>0 THEN IF turn1%3==0 OR turn2%3==0 OR turn3%3==0 THEN PRINT "Tom is in Danger" ELSE PRINT "Tom is Safe" END IF ELSE PRINT "Invalid turn" END IF END b. BEGIN READ turn1, turn2, turn3 DECLARE variables turn1,turn2,turn3 IF turn1>0 AND turn2>0 AND turn3>0 THEN IF turn1%3==0 OR turn2%3==0 OR turn3%3==0 THEN PRINT "Tom is in Danger" ELSE PRINT "Tom is Safe" END IF ELSE PRINT "Invalid turn" END IF END c. BEGIN DECLARE variables turn1,turn2,turn3 READ turn1, turn2, turn3 IF turn1>0 AND turn2>0 AND turn3>0 THEN ELSE PRINT "Tom is Safe" IF turn1%3==0 OR turn2%3==0 OR turn3%3==0 THEN PRINT "Tom is in Danger" END IF ELSE PRINT "Invalid turn" END IF END d. BEGIN DECLARE variables turn1,turn2,turn3 READ turn1, turn2, turn3 PRINT "Tom is in Danger" IF turn1>0 AND turn2>0 AND turn3>0 THEN ELSE PRINT "Tom is Safe" IF turn1%3==0 OR turn2%3==0 OR turn3%3==0 THEN END IF ELSE PRINT "Invalid turn" END IF END
A
He finds an abandoned bag containing a board(8x8) game in a cav
B
He gets excited and starts playing the game only to realizes that it's magical. He has three chances to roll the dic
C
Each turn's outcome will lead into a new surrounding and some would be dangerous. If the outcome of rolling dices is in multiples of 3 then he will be caught in a dangerous phas
D
Note if any one outcome is multiple of 3, then tom is in danger. (If the outcome of rolling dices is either 0 or less than that you should tell Tom as "Invalid Turn". ) Example : Enter value of turn 1 10 Enter value of turn 2 5 Enter value of turn 3 2 Tom is safe Example : Enter value of turn 1 12 Enter value of turn 2 5 Enter value of turn 3 2 Tom is in danger
E
BEGIN DECLARE variables turn1,turn2,turn3 READ turn1, turn2, turn3 IF turn1>0 AND turn2>0 AND turn3>0 THEN IF turn1%3==0 OR turn2%3==0 OR turn3%3==0 THEN PRINT "Tom is in Danger" ELSE PRINT "Tom is Safe" END IF ELSE PRINT "Invalid turn" END IF END
F
BEGIN READ turn1, turn2, turn3 DECLARE variables turn1,turn2,turn3 IF turn1>0 AND turn2>0 AND turn3>0 THEN IF turn1%3==0 OR turn2%3==0 OR turn3%3==0 THEN PRINT "Tom is in Danger" ELSE PRINT "Tom is Safe" END IF ELSE PRINT "Invalid turn" END IF END
G
BEGIN DECLARE variables turn1,turn2,turn3 READ turn1, turn2, turn3 IF turn1>0 AND turn2>0 AND turn3>0 THEN ELSE PRINT "Tom is Safe" IF turn1%3==0 OR turn2%3==0 OR turn3%3==0 THEN PRINT "Tom is in Danger" END IF ELSE PRINT "Invalid turn" END IF END
H
BEGIN DECLARE variables turn1,turn2,turn3 READ turn1, turn2, turn3 PRINT "Tom is in Danger" IF turn1>0 AND turn2>0 AND turn3>0 THEN ELSE PRINT "Tom is Safe" IF turn1%3==0 OR turn2%3==0 OR turn3%3==0 THEN END IF ELSE PRINT "Invalid turn" END IF END

Correct answer: BEGIN DECLARE variables turn1,turn2,turn3 READ turn1, turn2, turn3 IF turn1>0 AND turn2>0 AND turn3>0 THEN IF turn1%3==0 OR turn2%3==0 OR turn3%3==0 THEN PRINT "Tom is in Danger" ELSE PRINT "Tom is Safe" END IF ELSE PRINT "Invalid turn" END IF END.

04 Looping Statements#38

Which looping logic is exit controlled?

A
do-while loop
B
For loop
C
While loop

Correct answer: do-while loop.

04 Looping Statements#39

Consider the output: 0, 2, 4, 6, 8 ,10 ,12, 16 Which of the below given pseudo code snippet gives the above output?

A
BEGIN DECLARE number, count, even SET count <-- 16, number <-- 0, even <-- 0 WHILE number<count PRINT even SET even <-- even + 2 Number <--5 num2ber+2 1 48 END WHILE PRINT even END
B
BEGIN DECLARE number, count, even SET count <-- 8, number <-- 0, even <-- 0 WHILE number<count PRINT even SET even <-- even + 2 number <-- number + 1 END WHILE PRINT even END
C
BEGIN DECLARE number, count, even SET count <-- 8, number <-- 0, even <-- 0 WHILE number<count PRINT even SET even <-- even + 2 Number <-- number+ 2 END WHILE END
D
BEGIN DECLARE number, count, even SET count <-- 8, number <-- 0, even <-- 0 WHILE number<count PRINT even SET even <-- even + 1 Number <-- number+ 1 END WHILE PRINT even END

Correct answer: BEGIN DECLARE number, count, even SET count <-- 16, number <-- 0, even <-- 0 WHILE number<count PRINT even SET even <-- even + 2 Number <--5 num2ber+2 1 48 END WHILE PRINT even END.

04 Looping Statements#40

Predict the output of the given flowchart.

A
1 1
B
2 1
C
1 2
D
2 2
E
When it becomes false, the final count value 2 gets printed

Correct answer: 1 2.

04 Looping Statements#41

Iteration/looping is a repetition of___________

A
Block of statements
B
single statement
C
variables
D
operation

Looping block can have a single statement or block of statements

04 Looping Statements#42

Do-while looping statement is almost same as______

A
for loop
B
Nested if
C
if-else
D
While loop

Correct answer: While loop.

04 Looping Statements#43
Logic Block
1
What is true about FOR LOOP?
A
For loop executes the statement without checking the condition
B
In for loop, the exact number of iterations is known
C
For loop cannot be nested
D
For loop executes the statements at least once even if the condition is false
E
For loop can be nested

Correct answer: In for loop, the exact number of iterations is known.

04 Looping Statements#44

Jack wants to book fiight tickets in Feather-Airways online portal for his family of five. Passenger details like name, age, gender etc. should be entered for each member. The same process of getting details continues for all the five members. The above scenario is a good example for which looping statements?

A
Passenger details like name, age, gender et
B
should be entered for each member. The same process of getting details continues for all the five members. The above scenario is a good example for which looping statements?
C
For loop
D
While loop
E
Do-while loop

Correct answer: For loop.

04 Looping Statements#45
Logic Block
1
What will be the output for WHILE loop? BEGIN DECLARE number SET number <-- 30 WHILE number>0 number <-- number-4 END WHILE PRINT number END
A
4
B
2
C
-2
D
0

Correct answer: 2.

04 Looping Statements#46
Logic Block
1
What is the output for FOR-loop snippet? FOR i <--1 to 15 PRINT i i <-- i+3 END FOR
A
4 7 10 13
B
1 4 7 10 13
C
1 4 7 10 13 15 16
D
4 7 10 13 16

Correct answer: 4 7 10 13.

04 Looping Statements#47

Which of the following symbols is inappropriate in building the flowchart pertaining to sequential flow of program?

A
oval
B
diamond
C
rectangle
D
parallelogram

Correct answer: diamond.

04 Looping Statements#48

The statement / statements within the loop must get executed at least once except for do-while statement. State True/False.

A
TRUE
B
FALSE
C
Whereas do-while executes the statement at least once before checking the condition

Correct answer: TRUE.

04 Looping Statements#49

Which of the following statements are true with respect to looping statements?

A
the condition under which the iterative process should get terminated must be given
B
conditional statements are not allowed within a loop
C
A loop should run infinite number of times
D
initial condition must be applied before the loop begins to execute
E
The iteration must terminate at some point of tim
F
A looping statement can be nested and can have decision making statements

Initial condition must be applied before the loop begins to execute. The iteration must terminate at some point of time. A looping statement can be nested and can have decision making statements

04 Looping Statements#50

Which of the following statements are true?

A
The operand in an expression must always be a variabl
B
An operand is a mandatory element in an expression.
C
The operand in an expression must always be a constant.
D
The operand in an expression can be a variable or a constant.

The operand in an expression can be a variable or a constant. Operator without operand is meaningless

04 Looping Statements#51

Consider you have a Rubik cube with different colors in each face. To solve this cube, you will continue to rotate the sides until you reach same colors in all faces. This is a real time example for which looping statements?

A
To solve this cube, you will continue to rotate the sides until you reach same colors in all faces. This is a real time example for which looping statements?
B
Do-while
C
For
D
Nested-if
E
While

Correct answer: Do-while.

04 Looping Statements#52

Partially w h r e a i f l g o t m n p d DOWN: 1) Step by step list of instructions 4) When you know the exact number of iterations, this loop is used Across: 2)When a process/set of actions is to be repeated, these statements are used. 3) In looping, Each execution of a statement/block of statements is technically termed as______ 5) This loop statement is also called as exit-controlled loop 1 4 [a] f 2 l o o p i n g [g] r [o] 3 i t e r a t i o n [i] [t] 5 d o w h i l e [m]

A
algorithm, for, iteration, do-while
B
Incorrect option A
C
Incorrect option B
D
Incorrect option C

Crossword: 1-Down=algorithm, 4-Down=for, 2-Across=looping, 3-Across=iteration, 5-Across=do-while.

04 Looping Statements#53

Identify the logic which suits the flowchart?

A
While loop
B
Do-while loop
C
nested loop
D
for loop

Correct answer: While loop.

04 Looping Statements#54
Logic Block
1
It's Halloween. You go from house to house, tricking or treating. You get 2 candies from each house that you go to. You must return home once you collect 100 candies. Can you arrange the sequence for this loop activity. 1 BEGIN 2 SET candy count <- 0 3 END WHILE 4 DECLARE candy_count 5 WHILE candy_count<=100 6 candy count <- candy_count+2 7 END a. 1 4 2 5 6 3 7 b. 1 2 4 3 6 5 7 c. 1 4 2 3 6 5 7 d. 1 4 5 2 3 6 7
A
1 4 2 5 6 3 7
B
1 2 4 3 6 5 7
C
1 4 2 3 6 5 7
D
1 4 5 2 3 6 7

Correct answer: 1 4 2 5 6 3 7.

04 Looping Statements#55

Looping statements are also called ____________ a. Sequence logic b. Program logic c. Selection logic d. Iteration logic

A
Sequence logic
B
Program logic
C
Selection logic
D
Iteration logic

Correct answer: Iteration logic.

04 Looping Statements#56

Find out the logic of series and complete. 9 = 4, 21 = 9, 22 = 9, 24 = 10, 8 = 5, 7 = 5, 99 = 10, 100 = 7, 16 = ?

A
9 = 4, 21 = 9, 22 = 9, 24 = 10, 8 = 5, 7 = 5, 99 = 10, 100 = 7, 16 = ?
B
6
C
9
D
7

Correct answer: 9 = 4, 21 = 9, 22 = 9, 24 = 10, 8 = 5, 7 = 5, 99 = 10, 100 = 7, 16 = ?.

04 Looping Statements#57

Take 1 away from me and you get a prime number; add 1 to me and you get twice that prime number.

A
6
B
3
C
5

Correct answer: 3.

04 Looping Statements#58
Logic Block
1
Select the appropriate code snippet for the given problem statement provided as pseudocode. Problem Statement : Strong number Check if a given number is a strong number. 145 is a strong number because 1!+4!+5! = 145. Sample Input : 145 Sample Output : Strong number Code: BEGIN DECLARE variables number, sum, temp, remainder, fact READ number SET sum=0, temp=number __________________ remainder = number % 10 SET fact = 1 FOR i IN 1 to remainder DO fact = fact *i END FOR sum = sum+ fact number = number / 10 END WHILE IF sum==temp THEN PRINT "Strong number" ELSE PRINT "Not a Strong number" END IF END a. WHILE number <= 0 b. WHILE number != 0 c. WHILE number < 0 d. WHILE number == 0
A
Problem Statement : Strong number Check if a given number is a strong number. 145 is a strong number because 1!+4!+5! = 145. Sample Input : 145 Sample Output : Strong number Code: BEGIN DECLARE variables number, sum, temp, remainder, fact READ number SET sum=0, temp=number __________________ remainder = number % 10 SET fact = 1 FOR i IN 1 to remainder DO fact = fact *i END FOR sum = sum+ fact number = number / 10 END WHILE IF sum==temp THEN PRINT "Strong number" ELSE PRINT "Not a Strong number" END IF END
B
WHILE number <= 0
C
WHILE number != 0
D
WHILE number < 0
E
WHILE number == 0

Correct answer: WHILE number <= 0.

04 Looping Statements#59
Logic Block
1
Choose the pseudocode for the below problem statement. Problem Statement : Vehicle Registration Mr.William buys a new Audi car. During the vehicle registration, he desires a fancy number in such a way that both the number and its reverse are the same. Generate an algorithm to find that fancy number. Sample Input : 1221 Sample Output : Number is Fancy a. BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END b. BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO number = number/10 rem = number%10 reverse = reverse*10 + rem END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END c. BEGIN DECLARE variables number, reverse, rem, temp READ number WHILE number !=0 DO SET reverse = 0, temp = number rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END d. BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Not Fancy" ELSE PRINT "Number is Fancy" END IF END
A
Generate an algorithm to find that fancy number. Sample Input : 1221 Sample Output : Number is Fancy
B
BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END
C
BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO number = number/10 rem = number%10 reverse = reverse*10 + rem END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END
D
BEGIN DECLARE variables number, reverse, rem, temp READ number WHILE number !=0 DO SET reverse = 0, temp = number rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END
E
BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Not Fancy" ELSE PRINT "Number is Fancy" END IF END

Correct answer: BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END.

05 Arrays#60

A mathematical quiz context happened in a school and the scores are stored in an array named quizmark. The coordinating person wants to copy the quiz score into another array named copyquizmark. Which of these options will do that?

A
We cannot copy the values from one array to another.
B
FOR index <- 0 to n copyquizmark[index] <- quizmark[index] index <- index+1 END FOR
C
copyquizmark <- quizmark
D
copyquizmark[n] <- quizmark[n]

Correct answer: FOR index <- 0 to n copyquizmark[index] <- quizmark[index] index <- index+1 END FOR.

05 Arrays#61
Logic Block
1
Assume, number[100] <- 99. How many elements can be stored inside the array variable number?
A
99
B
Infinite number of elements
C
100
D
The statement gives no clue about the number of elements that can be stored

Correct answer: The statement gives no clue about the number of elements that can be stored.

05 Arrays#62

Which of the following are False with respect to the manipulation of arrays?

A
Elements of array are stored in contiguous memory
B
An array can store homogeneous dat
C
An array can store heterogeneous data
D
It is possible to increase the size of the array
E
Elements of array are stored in contiguous locations and it is not possible to increase the array size

An array can store homogeneous data. Elements of array are stored in contiguous locations and it is not possible to increase the array size

05 Arrays#63

Negative elements can be placed inside an array. State true / false

A
True
B
False

Arrays can store negative integer values; the index must be non-negative, but element values can be negative.

05 Arrays#64

The names of all associates undergoing training are stored in an array named associate_name[50]. The 5th associates name is retrieved as

A
associate_name[4]
B
associate_name[5]
C
associate_name[3+1]
D
associate_name[6]

since array index starts from 0, the fifth element is accessed is accessed by array[4]. It is possible to perform arithmetic operation in an array position

05 Arrays#65

Information about ___________ need not be specified when declaring an array

A
the data type of the array
B
the name of the array
C
the elements to be stored in the array
D
the index of the array

Correct answer: the elements to be stored in the array.

05 Arrays#66

It is not possible to do a search operation in an array that is not sorted. State True/False.

A
True
B
False

Unsorted arrays can still be searched using linear search.

05 Arrays#67

Random access is not possible in an array. State True/False

A
True
B
False

Random access is possible in an array using an index.

05 Arrays#68

Assume you have an array5 nam2ed n2umb4ers 8of size 10. Which of the assignment is valid?

A
numbers[0] <- 10
B
numbers[10] <- 11
C
numbers[9] <- 5
D
numbers[11] <- 6

array index starts from 0 to 9, for 10 elements. Assigning values to numbers[10],numbers[11] is not valid, since the index exceeds the size of array resulting in unpredictable results

05 Arrays#69

Which of the following statements is correct with respect to arrays?

A
Elements in an array are arranged in ascending order by default
B
Elements in an array are arranged contiguously.
C
Elements in an array are arranged in descending order by default

Correct answer: Elements in an array are arranged in ascending order by default.

05 Arrays#70

Consider you buy a laptop. You want to store5 the 2deta2ils o4f tha8t laptop such as price, model_name,model_number, warranty_period into a single array named details[10]. Is ths possible?

A
No
B
Yes
C
An array can store data of same typ
D
since model_name consists of letters, model_no consists of number etc, it is not possible to the details into a single array

Correct answer: No.

05 Arrays#71

Consider you want to compare the prices of redmi , sony, samsung phones in three online sites like amazon,fiipkart,ebay. Which array type is best suitable to do this comparision?

A
one-dimensional array
B
two-dimensional arrays
C
three-dimensional arrays

Correct answer: two-dimensional arrays.

05 Arrays#72

It is possible to traverse through an array from the first position to the last and not vice versa. State true or false.

A
State true or fals
B
TRUE
C
FALSE

Correct answer: State true or fals.

05 Arrays#73

An Array consists of rows and columns is also called as________

A
Three dimensional array
B
one-dimensional array
C
Two-dimensional array

Correct answer: Two-dimensional array.

05 Arrays#74
Logic Block
1
Choose the correct Pseudo code to store names in an array and display a name. a. BEGIN INPUT name DECLARE name [20] PRINT name END b. BEGIN INPUT name DECLARE name [20] END PRINT name c. BEGIN DECLARE name [20] INPUT name PRINT name END d. BEGIN INPUT name PRINT name DECLARE name [20] END
A
BEGIN INPUT name DECLARE name [20] PRINT name END
B
BEGIN INPUT name DECLARE name [20] END PRINT name
C
BEGIN DECLARE name [20] INPUT name PRINT name END
D
BEGIN INPUT name PRINT name DECLARE name [20] END

Correct answer: BEGIN DECLARE name [20] INPUT name PRINT name END.

05 Arrays#75

A farmer has 17 sheep and all but nine die. How many are left?

A
How many are left?
B
9
C
17
D
8

Correct answer: 9.

05 Arrays#76

a year, there are 12 months. Seven months have 31 days. How many months have 28 days?

A
6
B
12
C
5

Correct answer: 12.

05 Arrays#77

What is the next letter in the following sequence? J,F, M, A, M, J, J, A, __.

A
O
B
S
C
N

Correct answer: O.

05 Arrays#78
Logic Block
1
Select the appropriate code snippet for the given problem statement provided as pseudocode. Problem Statement : Dinner Plan Five friends plan to go out for dinner. They plan to order equal number of dishes. Each row specifies individual cost. Find the total amount each person needs to pay. Assume the values for this matrix for 3 dishes are 12 23 18 45 32 60 42 39 23 54 42 60 25 84 30 The output will be Amount to be paid by person 1 is 53 Amount to be paid by person 2 is 137 Amount to be paid by person 3 is 104 Amount to be paid by person 4 is 156 Amount to be paid by person 3 is 139 Explanation : Output is the sum of each row Code: BEGIN DECLARE variable arr[5][20], n, sum=0 ___________________ FOR j IN 0 to n-1 DO READ arr[i][j] END FOR END FOR FOR i IN 0 TO 4 DO SET sum = 0 FOR j IN 0 TO n-1 DO sum = sum + arr[i][j] END FOR PRINT "Amount to be paid by person "+(i+1)+" is "+sum END FOR END a. FOR i IN 0 to 5 DO b. FOR i IN 0 to n DO c. FOR i IN 0 to 4 DO d. FOR i IN 0 to 3 DO
A
Problem Statement : Dinner Plan Five friends plan to go out for dinner. They plan to order equal number of dishes. Each row specifies individual cost. Find the total amount each person needs to pay. Assume the values for this matrix for 3 dishes are 12 23 18 45 32 60 42 39 23 54 42 60 25 84 30 The output will be Amount to be paid by person 1 is 53 Amount to be paid by person 2 is 137 Amount to be paid by person 3 is 104 Amount to be paid by person 4 is 156 Amount to be paid by person 3 is 139 Explanation : Output is the sum of each row Code: BEGIN DECLARE variable arr[5][20], n, sum=0 ___________________ FOR j IN 0 to n-1 DO READ arr[i][j] END FOR END FOR FOR i IN 0 TO 4 DO SET sum = 0 FOR j IN 0 TO n-1 DO sum = sum + arr[i][j] END FOR PRINT "Amount to be paid by person "+(i+1)+" is "+sum END FOR END
B
FOR i IN 0 to 5 DO
C
FOR i IN 0 to n DO
D
FOR i IN 0 to 4 DO
E
FOR i IN 0 to 3 DO

Correct answer: FOR i IN 0 to 5 DO.

05 Arrays#79
Logic Block
1
Choose the correct pseudocode for the below problem statement. Problem Statement : Find Maximum value Choose a pseudo code to find the maximum values in each row of a matrix. Assume it is a 3x3 matrix. Explanation : Matrix will be with index (0,0) (0,1) (0,2) (1,0) (1,1) (1,2) (2,0) (2,1) (2,2) Assume the values for this matrix are 12 23 18 45 32 60 42 39 23 The output will be Max value in row 1 is 23 Max value in row 2 is 60 Max value in row 3 is 42 a. BEGIN DECLARE variable arr[3][3] FOR i IN 0 to 2 DO FOR j IN 0 to 2 DO READ arr[i][j] END FOR END FOR SET max = arr[i][0] FOR i IN 0 TO 2 DO FOR j IN 0 TO 2 DO IF arr[i][j]>max THEN max = arr[i][j] END IF END FOR PRINT "Max value in row "+(i+1)+" is "+max END FOR END b. BEGIN DECLARE variable arr[3][3] FOR i IN 0 to 2 DO FOR j IN 0 to 2 DO END FOR END FOR FOR i IN 0 TO 2 DO READ arr[i][j] SET max = arr[i][0] FOR j IN 0 TO 2 DO IF arr[i][j]>max THEN max = arr[i][j] END IF END FOR PRINT "Max value in row "+(i+1)+" is "+max END FOR END c. BEGIN DECLARE variable arr[3][3] FOR i IN 0 to 2 DO FOR j IN 0 to 2 DO READ arr[i][j] END FOR END FOR FOR i IN 0 TO 2 DO SET max = arr[i][0] FOR j IN 0 TO 2 DO IF arr[i][j]>max THEN max = arr[i][j] END IF END FOR PRINT "Max value in row "+(i+1)+" is "+max END FOR END d. BEGIN DECLARE variable arr[3][3] FOR i IN 0 to 2 DO FOR j IN 0 to 2 DO READ arr[i][j] END FOR END FOR FOR i IN 0 TO 2 DO SET max = arr[i][0] FOR j IN 0 TO 2 DO IF arr[i][j]>max THEN max = arr[i][j] END IF END FOR END FOR PRINT "Max value in row "+(i+1)+" is "+max END
A
BEGIN DECLARE variable arr[3][3] FOR i IN 0 to 2 DO FOR j IN 0 to 2 DO READ arr[i][j] END FOR END FOR SET max = arr[i][0] FOR i IN 0 TO 2 DO FOR j IN 0 TO 2 DO IF arr[i][j]>max THEN max = arr[i][j] END IF END FOR PRINT "Max value in row "+(i+1)+" is "+max END FOR END
B
BEGIN DECLARE variable arr[3][3] FOR i IN 0 to 2 DO FOR j IN 0 to 2 DO END FOR END FOR FOR i IN 0 TO 2 DO READ arr[i][j] SET max = arr[i][0] FOR j IN 0 TO 2 DO IF arr[i][j]>max THEN max = arr[i][j] END IF END FOR PRINT "Max value in row "+(i+1)+" is "+max END FOR END
C
BEGIN DECLARE variable arr[3][3] FOR i IN 0 to 2 DO FOR j IN 0 to 2 DO READ arr[i][j] END FOR END FOR FOR i IN 0 TO 2 DO SET max = arr[i][0] FOR j IN 0 TO 2 DO IF arr[i][j]>max THEN max = arr[i][j] END IF END FOR PRINT "Max value in row "+(i+1)+" is "+max END FOR END
D
BEGIN DECLARE variable arr[3][3] FOR i IN 0 to 2 DO FOR j IN 0 to 2 DO READ arr[i][j] END FOR END FOR FOR i IN 0 TO 2 DO SET max = arr[i][0] FOR j IN 0 TO 2 DO IF arr[i][j]>max THEN max = arr[i][j] END IF END FOR END FOR PRINT "Max value in row "+(i+1)+" is "+max END

Correct answer: BEGIN DECLARE variable arr[3][3] FOR i IN 0 to 2 DO FOR j IN 0 to 2 DO READ arr[i][j] END FOR END FOR FOR i IN 0 TO 2 DO SET max = arr[i][0] FOR j IN 0 TO 2 DO IF arr[i][j]>max THEN max = arr[i][j] END IF END FOR PRINT "Max value in row "+(i+1)+" is "+max END FOR END.

06 Software Engineering Fundamentals#80

Which conforms that the software meets its technical specifications?

A
Validation
B
Design
C
Verification
D
Defect finding

Correct answer: Verification.

06 Software Engineering Fundamentals#81

The software is put into operation in the clients environment. The client comes back to enhance the UI to attract more customers. This phase is called as _______________

A
Maintenance
B
Development

Correct answer: Maintenance.

06 Software Engineering Fundamentals#82

Which of the below is one of the phase of the prototype model? a. Detailed HLD phase b. Detailed Coding c. Quick design d. Extensive testing

A
Detailed HLD phase
B
Detailed Coding
C
Quick design
D
Extensive testing

Correct answer: Quick design.

06 Software Engineering Fundamentals#83

High-risk or major functions are addressed in the first cycles there by delivering an operational product. Which of the SDLC process models achieves this?

A
Incremental model
B
Waterfall model
C
Spiral Model
D
RAD model

Correct answer: Incremental model.

06 Software Engineering Fundamentals#84

Beta technologies has undertaken a collision avoidance system software to be implemented for airports. Additional safety measures have to be automated by warning pilots when another aircraft gets closer, otherwise impacts are huge. Which of the following SDLC process models best suits the requirement?

A
Which of the following SDLC process models best suits the requirement?
B
Waterfall model
C
V model
D
Spiral model
E
Evolutionary prototyping model

Correct answer: Spiral model.

06 Software Engineering Fundamentals#85

The student mark processing system software has been developed and deployed at the St. Peters university. The system shows the grade as 0 for all the students rather than the actual grade. Which phase below was not done properly during the SDLC?

A
Which phase below was not done properly during the SDLC?
B
Software Testing
C
Software Design
D
Software Maintenance
E
Software Analysis

Correct answer: Software Testing.

06 Software Engineering Fundamentals#86

Choose the option that accurately represents the sequential order of phases in the Waterfall model. a. Requirement Gathering, Analysis, Design, Testing, Implementation, Deployment, Maintenance b. Requirement Gathering, Analysis, Design, Implementation, Testing, Maintenance, Deployment c. Analysis, Requirement Gathering5, Des2ign,2 Imp4leme8ntation, Testing, Deployment, Maintenance d. Requirement Gathering, Analysis, Design, Implementation, Testing, Deployment, Maintenance

A
Requirement Gathering, Analysis, Design, Testing, Implementation, Deployment, Maintenance
B
Requirement Gathering, Analysis, Design, Implementation, Testing, Maintenance, Deployment
C
Analysis, Requirement Gathering5, Des2ign,2 Imp4leme8ntation, Testing, Deployment, Maintenance
D
Requirement Gathering, Analysis, Design, Implementation, Testing, Deployment, Maintenance

Correct answer: Requirement Gathering, Analysis, Design, Testing, Implementation, Deployment, Maintenance; Analysis, Requirement Gathering5, Des2ign,2 Imp4leme8ntation, Testing, Deployment, Maintenance.

06 Software Engineering Fundamentals#87

Scenario: LIC has manually carried out their process of premium collection procedure for the past 45 years. Now, they have employed the services of another company to automate the above. Question: Which of the following models would you suggest to the outsource company?

A
Question: Which of the following models would you suggest to the outsource company?
B
Waterfall model
C
Throwaway prototyping
D
Evolutionary prototyping
E
Spiral model

Correct answer: Waterfall model.

06 Software Engineering Fundamentals#88

Testing performed by the user to ensure that the system meets the agreed upon quality attributes and the specification is called as.

A
Unit testing
B
Acceptance testing
C
Integration testing
D
System testing

Correct answer: Acceptance testing.

06 Software Engineering Fundamentals#89

Which model emphasizes Validation and Verification at each level of stage containment?

A
Throwaway prototyping
B
V-Model
C
Spiral model
D
RAD

Correct answer: V-Model.

06 Software Engineering Fundamentals#90

Consider that you have to develop a fiight control system. The system is simulated as such that the original system is working. There are many potential hazards with such a system. What model would you suggest to develop the system?

A
Throwaway prototyping
B
Waterfall model
C
Spiral model
D
Evolutionary prototyping

Correct answer: Spiral model.

06 Software Engineering Fundamentals#91

ABC company comes to the Allen Software Company with various requirement. The client wants the functionality to view all the employee profile, view salary information of the employee and view the leave details.Once each functionality is completed the module will be delivered to the client. Which would be the right model for this scenario

A
Throwaway prototyping model
B
Scrum
C
Spiral model
D
Incremental model

Correct answer: Incremental model.

06 Software Engineering Fundamentals#92

A client wants to develop a Web application for the new Super market store. The client want to have lot of UI components and customers will have lot of interactions with the UI. What model is best suited

A
The client want to have lot of UI components and customers will have lot of interactions with the UI. What model is best suited
B
Waterfall model
C
Prototype
D
Spiral

Correct answer: Prototype.

06 Software Engineering Fundamentals#93

________ involves tranformation of user needs into an effective software solution.

A
Software Testing
B
Software Analysis
C
Software development process
D
Software design process

Correct answer: Software development process.

06 Software Engineering Fundamentals#94

Spiral life cycle model is not suitable for products that are vulnerable to large number of risks. State if True or False.

A
TRUE
B
FALSE

Correct answer: FALSE.

06 Software Engineering Fundamentals#95

When there is a difference between the output what is expected and the actual one is termed as

A
Validation
B
Defect
C
Verification
D
Specification

Correct answer: Defect.

06 Software Engineering Fundamentals#96

XYZ Finance Co. has, at present, started its operations in India. Based on the first six months performance, it has plans for expansion across five countries. They want to automate their operations at this stage. What is the process model that the developer should choose to adopt?

A
Based on the first six months performance, it has plans for expansion across five countries. They want to automate their operations at this stag
B
What is the process model that the developer should choose to adopt?
C
Spiral model
D
Waterfall model
E
Incremental model
F
Evolutionary prototyping model

Correct answer: Based on the first six months performance, it has plans for expansion across five countries. They want to automate their operations at this stag.

07 Phases Of Software Engineering#97

Which of the following options are the steps involved in Requirements Analysis?

A
Analysis of the gathered requirements
B
Requirements Gathering
C
Requirements Specification
D
Requirements Elicitation

Requirements Gathering phase is followed by the Analysis of the gathered requirements

07 Phases Of Software Engineering#98

From the below options, identify the role of the system analyst. a. Writes pseudo code for the given module b. Creates SRS c. Creates HLD document d. Creates high level test cases

A
Writes pseudo code for the given module
B
Creates SRS
C
Creates HLD document
D
Creates high level test cases

Correct answer: Creates SRS.

07 Phases Of Software Engineering#99

Identify the correct statements from the below options. a. Analysis or High level design or Low level design can be performed in any order b. Analysis is performed followed by High level design and then Low level design c. High level design, Low level design followed by Analysis is performed. d. Analysis is performed followed by low level design and then high level design

A
Analysis or High level design or Low level design can be performed in any order
B
Analysis is performed followed by High level design and then Low level design
C
High level design, Low level design followed by Analysis is performe
D
Analysis is performed followed by low level design and then high level design

Correct answer: Analysis is performed followed by High level design and then Low level design.

07 Phases Of Software Engineering#100

Identify the type of design that helps in transforming the data model created during requirements analysis phase into the data structures that will be used to implement the software

A
GUI Design
B
Interface design
C
Data Design
D
Architectural design

Correct answer: Data Design.

07 Phases Of Software Engineering#101

A lady buys goods worth Rs.200 from a shop. (shopkeeper is selling the goods with zero profit). The lady gives him Rs.1000 note. The shopkeeper gets the change from the next shop and keeps Rs.200 for himself and returns Rs.800 to the lady. Later the shopkeeper of the next shop comes with the Rs.1000 note saying duplicate and takes his money back. How much LOSS did the shopkeeper face?

A
The shopkeeper gets the change from the next shop and keeps Rs.200 for himself and returns Rs.800 to the lady. Later the shopkeeper of the next shop comes with the Rs.1000 note saying duplicate and takes his money back. How much LOSS did the shopkeeper face?
B
1000
C
2000
D
200
E
800

Correct answer: The shopkeeper gets the change from the next shop and keeps Rs.200 for himself and returns Rs.800 to the lady. Later the shopkeeper of the next shop comes with the Rs.1000 note saying duplicate and takes his money back. How much LOSS did the shopkeeper face?.

07 Phases Of Software Engineering#102

You are in a race and overtake the person who is in second place. What place are you now in?

A
What place are you now in?
B
First
C
Third
D
Second

Correct answer: Second.

07 Phases Of Software Engineering#103

What does come down but never goes up? _______ What can one catch that is not thrown? _______ What goes up and down, but always remains in the same place? _______ what word that changes a girl into a woman? _______ Choose the correct answer: a. Cold, Rain, Stairs, Age b. Rain, Cold, Stairs, Age c. Age, Rain, Stairs, Cold d. Stairs, Cold, Stairs, Age

A
Cold, Rain, Stairs, Age
B
Rain, Cold, Stairs, Age
C
Age, Rain, Stairs, Cold
D
Stairs, Cold, Stairs, Age

Correct answer: Cold, Rain, Stairs, Age; Rain, Cold, Stairs, Age; Stairs, Cold, Stairs, Age.

07 Phases Of Software Engineering#104

Identify the possible entities from the given option

A
Customer
B
SalesID
C
Sale
D
customerAge

Correct answer: Customer; Sale.

07 Phases Of Software Engineering#105

What kind of non functional requirement best suit the below scenario: Whenever the new offers are published in the online shopping site, an sms has to be sent to all the registered customers within 10 minutes of publishing

A
Usability Requirement
B
Performance Requirement
C
Portability Requirement
D
Security Requirment

Correct answer: Performance Requirement.

07 Phases Of Software Engineering#106

Consider the below scenario. A team has many players and the player belongs to one team. Identify the cardinality between player and team

A
M:M
B
1:M
C
M:1
D
1:1

Correct answer: M:1.

07 Phases Of Software Engineering#107

Whenever a new product is arrived, the stock needs to be updated. This requirement is an example for non functional requirement. State true or False

A
TRUE
B
FALSE
C
FALSE
D
TRUE

Correct answer: FALSE.

07 Phases Of Software Engineering#108

Which of the following are available in SRS Document?

A
Non Functional Requirements
B
Design
C
Constraints
D
Functional Requirements

Correct answer: Non Functional Requirements; Constraints; Functional Requirements.

07 Phases Of Software Engineering#109

During which phase the following activities are performed: Identifying the major modules of the system, how these modules integrate, the architecture of the system and describing pseudo code for each of the identified module

A
Maintenance
B
Analysis
C
Design
D
Feasibility

Correct answer: Design.

07 Phases Of Software Engineering#110

_______ describes how the development activities will be performed and how development phases follow each other.

A
Design
B
Software Development Process
C
Process
D
Software Engineering

Correct answer: Software Development Process.

07 Phases Of Software Engineering#111

Requirement came to Allen Software company to develop a software for military purpose. . second delay in the missile launching software would create greater loss to the human life. What kind of model is best suited for this scenario?

A
. second delay in the missile launching software would create greater loss to the human lif
B
What kind of model is best suited for this scenario?
C
Waterfall model
D
Agile
E
Prototype
F
Spiral model

Correct answer: Spiral model.

07 Phases Of Software Engineering#112

Aesthetics of the website is part of the functional requirement. State true or false

A
FALSE
B
TRUE

Correct answer: FALSE.

07 Phases Of Software Engineering#113

_________ is the application of a systematic, disciplined, quantifiable approach to the design, development, operation and maintenance of software.

A
Software Engineering
B
Software Testing
C
Requirement Engineering

Correct answer: Software Engineering.

08 Software Testing#114

Identify this technique of dynamic testing where, For a range of input, three values are chosen, One value above the range, One value below the range, and One value within the range

A
Equivalence partitioning
B
Boundary Value Analysis
C
Cause Effect Graphing
D
Error Guessing
E
Cause Effect Analysis

Correct answer: Equivalence partitioning.

08 Software Testing#115

What is the difference between the actual ou5tput2 of a2 soft4ware8 and the correct output?

A
Fault
B
Defect
C
Error
D
Bug

Correct answer: Error.

08 Software Testing#116

What is the type of testing in which the tester will know about the input and the expected output details based on the specification document only but no knowledge on implementation?

A
Black Box Testing
B
White Box Testing
C
Regression Testing
D
Integration Testing
E
Usability Testing

Correct answer: Black Box Testing.

08 Software Testing#117

Identify the correct phases of software testing life cycle. a. Requirements Analysis,Test Preparation,Test Case development,Test Environment Set up,Test Execution,Test Cycle closure b. Requirements Analysis,Test Case development,Test Preparation,Test Environment Set up,Test Execution,Test Cycle closure c. Requirements Analysis,Test Preparation,Test Case development,Test Execution,Test Environment Set up,Test Cycle closure d. Requirements Analysis,Test Preparation,Test Case development,Test Environment Set up,Test Cycle closure,Test Execution

A
Requirements Analysis,Test Preparation,Test Case development,Test Environment Set up,Test Execution,Test Cycle closure
B
Requirements Analysis,Test Case development,Test Preparation,Test Environment Set up,Test Execution,Test Cycle closure
C
Requirements Analysis,Test Preparation,Test Case development,Test Execution,Test Environment Set up,Test Cycle closure
D
Requirements Analysis,Test Preparation,Test Case development,Test Environment Set up,Test Cycle closure,Test Execution

Correct answer: Requirements Analysis,Test Preparation,Test Case development,Test Environment Set up,Test Execution,Test Cycle closure.

08 Software Testing#118

Which all of the following options would basis path testing perform?

A
Loop Coverage
B
Statement Coverage
C
Test Case Coverage
D
Condition or Branch Coverage

Every statement(Statement coverage) Every predicate (condition) in the code(branch coverage) Loops (loop coverage)

08 Software Testing#119

Determine the cyclomatic complexity for the following code: Accept year if(year mod 4=0 and year mod 100!=0) or(year mod 400 =0) print year is leap else print year is not leap end if.

A
6
B
3
C
4
D
5

Correct answer: 4.

08 Software Testing#120

After implementation of Library management system, the tester identified that certain logic are redundantly rewritten by the developers, and the coding standards are violated in few modules. What type of testing is carried out to identify these errors?

A
dynamic testing
B
Static Testing
C
error guessing
D
debugging

Correct answer: Static Testing.

08 Software Testing#121

Boundary value analysis can only be used during white-box testing. State if True or False.

A
TRUE
B
FALSE

Correct answer: FALSE.

08 Software Testing#122

The testing technique that deals with the internal logic and structure of the code is called ________.

A
Logical Testing
B
Pure Box Testing
C
WhiteBox Testing

Correct answer: WhiteBox Testing.

08 Software Testing#123

the online shopping portal, for customer registration the password field can accept only characters in the range of 5 to 25. Derive test cases using Boundary value analysis

A
5,25,6,24
B
5,25,26,3
C
6,24,10,25
D
5,25,4,26

Correct answer: 5,25,4,26.

08 Software Testing#124

Tester is trying to test whether the values in the drop down are listed properly. What type of testing the tester performs in this scenario?

A
Black box testing
B
Regression Testing
C
White box Testing
D
Acceptance Testing

Correct answer: Black box testing.

08 Software Testing#125

Walk through is performed by the trained moderator, whereas the Inspection is usually conducted by the author itself to record defects and deviations

A
True
B
False

Walk-through is led by the author; Inspection is conducted by a trained moderator.

08 Software Testing#126

An SRS has the following requirement.The stock exchange shall show the stock report for the next 24 hours.What is the issue with this requirement

A
Requirement is Correct
B
Inconsistent
C
Ambiguous
D
In correct

Correct answer: Ambiguous.

08 Software Testing#127

The standard document that describes all the requirements of the system is called as

A
Software Requirement Specification
B
Contract Document
C
Test Case Document
D
User Requirement Specification

Correct answer: Software Requirement Specification.

08 Software Testing#128

Client Comes to Allen Company for a Banking Solution. Who from the below options would be best suited to gather all the requirements correctly from the client

A
System analyst
B
System Architect
C
Analyzer
D
Database Analyst

Correct answer: System analyst.

08 Software Testing#129

remote control Car application, in the step by step execution of the requirement described, it is mentioned when the fuel level goes below the minimum level, the application should indicate the user in red color. In the output section of the same process it is mentioned that the indicator will glow pink. What is the kind of requirement specified in SRS?

A
Incomplete
B
Consistent
C
Complete
D
Contradicting

Correct answer: Contradicting.

08 Software Testing#130

Client Comes to Allen Company for a Banking Solution.Which phase of SDLC is best suited to gather what is expected from client

A
Customer Analysis
B
Feasibility Analysis
C
Requirement analysis
D
System Analysis

Correct answer: Requirement analysis.

08 Software Testing#131

A good SRS should be ______, ________ and _______.

A
Traceable
B
Periodical
C
Consistent
D
Complete

A good SRS should be complete, consistent and traceable

09 Software Configuration Management#132

Which of the following options are valid for the relationship between the configuration objects?

A
A double-headed straight arrow indicates an interrelationship
B
A double-headed straight arrow indicates compositional relation
C
A curved arrow indicates a compositional relation
D
A curved arrow indicates an interrelationship

A curved arrow indicates a compositional relation. A double-headed straight arrow indicates an interrelationship.

09 Software Configuration Management#133

Match the following facts about Version Management.

A
Lock a file → Serialized changes to file; member wants code to work in isolation → Create branches; rollback to previous file version → Automatic backup
B
Lock a file → Create branches; member wants isolation → Automatic backup; rollback → Serialized changes to file
C
Lock a file → Automatic backup; member wants isolation → Serialized changes to file; rollback → Create branches
D
Lock a file → Delete history; member wants isolation → Merge trunk; rollback → Remove baseline

Version management uses file locking for serialized changes, branches for isolated work, and backups/history for rollback to previous versions.

09 Software Configuration Management#134

Version Control allows users to lock files so they can only be edited by one person at a time and track changes to files

A
True
B
False

Version control systems allow locking files to prevent concurrent edits and track file history.

09 Software Configuration Management#135

Choose the missing steps involved in the Change Control Process in the correct order: 1. Identify and submit change request 2. ____________ 3. Plan the change 4. Implement and test the change 5. Verify implementation of change fi. Close change request a. Collect impacts of change request b. Evaluate impacts of change request c. Review stakeholder feedback d. Analyze the cost of the proposed change

A
Collect impacts of change request
B
Evaluate impacts of change request
C
Review stakeholder feedback
D
Analyze the cost of the proposed change

Correct answer: Evaluate impacts of change request.

09 Software Configuration Management#136

Which of the following describes the change history of an object?

A
Evolution graph
B
Review Graph
C
Check-out
D
Baseline Evolution Graph describes the change history of an object

Correct answer: Evolution graph.

09 Software Configuration Management#137

Version Management allows parallel concurrent development. State True or False.

A
True
B
False

Correct answer: True.

09 Software Configuration Management#138

From the options identify the features that are part of the software configuration management

A
Synchronisation control
B
Version management
C
Support management
D
Concurrency control

Correct answer: Synchronisation control; Version management; Concurrency control.

09 Software Configuration Management#139

State true or false. Automated tools are available in the market, for managing change and versioning the software

A
Automated tools are available in the market, for managing change and versioning the software
B
FALSE
C
TRUE

Correct answer: TRUE.

09 Software Configuration Management#140

_________ is a committee that makes decisions regarding whether or not proposed changes to a software project can be incorporated.

A
Decision Committee
B
Modify Control Board
C
Updation Control Board
D
Change Control Board

Correct answer: Change Control Board.

09 Software Configuration Management#141

an online shopping application, during customer registration the customer was made to enter his city in a text box. As the site became popular for online shopping, the client came back to include autocomplete feature in the city field to improve user friendliness. What maintenance needs to be carried out in this scenario?

A
Perfective
B
Corrective
C
Adaptive
D
Preventive

Correct answer: Perfective.

09 Software Configuration Management#142

Software maintenance, changes are implemented by modifying existing components and adding new components to the system. State if True or False.

A
TRUE
B
FALSE

Correct answer: TRUE.

09 Software Configuration Management#143

Software maintenance for the change of the platform is an example for --------- maintenance

A
Corrective
B
Perfective
C
Adaptive
D
Preventive

Correct answer: Adaptive.

09 Software Configuration Management#144

Client has developed an application that allows each of their customers to store 2TB of data. As the number of Customers are increasing client feels the storage space has to be increased for smooth operations to its customers. What type of maintanence is this?

A
As the number of Customers are increasing client feels the storage space has to be increased for smooth operations to its customers. What type of maintanence is this?
B
Corrective Maintanence
C
Preventive Maintanence
D
Adaptive Maintanence
E
Perfective Maintanence

Correct answer: Preventive Maintanence.

09 Software Configuration Management#145

Any changes done to the software during the operational phase of the software before project wind up is called as maintenance. State if True or False.

A
True
B
False

Maintenance refers to changes made after deployment; changes before project wind-up during operation qualify.

09 Software Configuration Management#146

Client wanted to add a new feature to his existing application "Discount Offers" for all the existing customers. Whenever a new product comes to the supermarket, their customer's should be intimated with the week day offer. What kind of maintenance is this?

A
Corrective Maintanence
B
Perfective Maintanence
C
Adaptive Maintanence
D
Preventive Maintanence

Correct answer: Perfective Maintanence.

09 Software Configuration Management#147

Y2K problem is an example for ------------- maintenance

A
Preventive
B
Adaptive
C
Perfective
D
Corrective

Correct answer: Preventive.

Arrays#148

A mathematical quiz context happened in a school and the scores are stored in an array named quizmark. The coordinating person wants to copy the quiz score into another array named copyquizmark. Which of these options will do that?

A
copyquizmark[n] <- quizmark[n]
B
We cannot copy the values from one array to another.
C
copyquizmark <- quizmark
D
FOR index <- 0 to n copyquizmark[index] <- quizmark[index] END FOR

Correct answer: FOR index <- 0 to n copyquizmark[index] <- quizmark[index] END FOR.

Arrays#149
Logic Block
1
Assume, number[100] <- 99. How many elements can be stored inside the array variable number?
A
Infinite number of elements
B
99
C
The statement gives no clue about the number of elements that can be stored
D
100

Correct answer: The statement gives no clue about the number of elements that can be stored.

Arrays#150

Which of the following are False with respect to the manipulation of arrays?

A
It is possible to increase the size of the array
B
An array can store heterogeneous data
C
An array can store homogeneous dat
D
Elements of array are stored in contiguous memory
E
Elements of array are stored in contiguous locations and it is not possible to increase the array size

An array can store homogeneous data. Elements of array are stored in contiguous locations and it is not possible to increase the array size

Arrays#151

Negative elements can be placed inside an array. State true / false

A
True
B
False

Arrays can store negative values; the index must be non-negative but element values can be any valid type including negatives.

Arrays#152

The names of all associates undergoing training are stored in an array named associate_name[50]. The 5th associates name is retrieved as

A
associate_name[4]
B
associate_name[5]
C
associate_name[3+1]
D
associate_name[6]

since array index starts from 0, the fifth element is accessed is accessed by array[4]. It is possible to perform arithmetic operation in an array position

Arrays#153

Informationabout neednotbespecifiedwhendeclaringanarray Information about ___________ need not be specified when declaring an array

A
the index of the array
B
the elements to be stored in the array
C
the name of the array
D
the data type of the array

Correct answer: the elements to be stored in the array.

Arrays#154

It is not possible to do a search operation in an array that is not sorted. State True/False.

A
True
B
False

Unsorted arrays can be searched with linear search.

Arrays#155

Random access is not possible in an array. State True/False

A
True
B
False

Arrays support random access via index.

Arrays#156

Assume you have an array named numbers of size 10. Which of the assignment is valid?

A
numbers[0] <- 10
B
numbers[9] <- 5
C
numbers[10] <- 11
D
numbers[11] <- 6

array index starts from 0 to 9, for 10 elements. Assigning values to numbers[10],numbers[11] is not valid, since the index exceeds the size of array resulting in unpredictable results

Arrays#157

Which of the following statements is correct with respect to arrays?

A
Elements in an array are arranged in descending order by default
B
Elements in an array are arranged contiguously.
C
Elements in an array are arranged in ascending order by default

Correct answer: Elements in an array are arranged in descending order by default.

Arrays#158

Consider you buy a laptop. You want to store the details of that laptop such as price, model_name,model_number, warranty_period into a single array named details[10]. Is ths possible?

A
No
B
Yes
C
An array can store data of same typ
D
since model_name consists of letters, model_no consists of number etc, it is not possible to the details into a single array

Correct answer: No.

Arrays#159

Consider you want to compare the prices of redmi , sony, samsung phones in three online sites like amazon,flipkart,ebay. Which array type is best suitable to do this comparision?

A
two-dimensional arrays
B
three-dimensional arrays
C
one-dimensional array

Correct answer: two-dimensional arrays.

Arrays#160

It is possible to traverse through an array from the first position to the last and not vice versa. State true or false.

A
True
B
False

Arrays can be traversed both forward and backward using loops.

Arrays#161

An Array consists of rows and columns is also called as________

A
Two-dimensional array
B
Three dimensional array
C
one-dimensional array

Correct answer: Two-dimensional array.

Arrays#162
Logic Block
1
Choose the correct Pseudo code to store names in an array and display a name. a. BEGIN INPUT name PRINT name DECLARE name [20] END b. BEGIN INPUT name DECLARE name [20] PRINT name END c. BEGIN DECLARE name [20] INPUT name PRINT name END d. BEGIN INPUT name DECLARE name [20] END PRINT name
A
BEGIN INPUT name PRINT name DECLARE name [20] END
B
BEGIN INPUT name DECLARE name [20] PRINT name END
C
BEGIN DECLARE name [20] INPUT name PRINT name END
D
BEGIN INPUT name DECLARE name [20] END PRINT name

Correct answer: BEGIN DECLARE name [20] INPUT name PRINT name END.

General#163

the Waterfall model, requirements are typically…

A
Fixed and well-defined
B
Unclear and evolving
C
Discovered during sprints
D
Primarily driven by risk loops

Waterfall assumes stable, upfront requirements with minimal changes later.

General#164

Which model maps each development phase to a corresponding test phase?

A
V-Model
B
Iterative
C
RAD
D
Spiral

V-Model (Verification & Validation) pairs dev phases with testing activities.

General#165

Prototyping (throwaway) is BEST when…

A
UI/requirements are unclear and need quick visual feedback
B
Requirements are fixed and stable
C
Risk analysis is the main driver
D
The project is safety critical

Throwaway prototypes help elicit unclear requirements, then are discarded.

General#166

Evolutionary Prototyping means…

A
Prototype evolves into the final system through iterations
B
Prototype is thrown away
C
Only documentation evolves
D
It is identical to Incremental

In evolutionary prototyping, the working model is continuously refined into the final product.

General#167

Which model emphasizes delivering functionality in modules over time?

A
Incremental
B
Waterfall
C
Prototype
D
V-Model

Incremental delivers the product in functional slices (increments).

General#168

Iterative development primarily focuses on…

A
Building then refining the same product through cycles
B
Risk analysis per loop
C
Discarding prototypes
D
Big-bang release at the end

Iterative = repeated cycles that improve the same product.

General#169

Which model is most associated with explicit risk analysis every iteration?

A
Spiral
B
Agile
C
Waterfall
D
RAD

Spiral combines iteration with risk-driven planning and prototyping.

General#170

Agile (Scrum) sprints typically deliver…

A
Working increments every 1–4 weeks
B
Only documentation updates
C
A full finished system
D
No customer involvement

Agile prioritizes frequent, working software and collaboration.

General#171

RAD prioritizes…

A
Rapid construction using reusable components and user workshops
B
Long up-front design
C
Zero customer interaction
D
Formal verification only

RAD favors speed via component reuse, prototyping, and close user input.

General#172

V-Model is most suitable for…

A
Safety or quality-critical systems needing rigorous testing
B
Highly unclear UI needs
C
Fast MVP with minimal test planning
D
Pure research prototypes

V-Model ensures early test planning and traceability for critical systems.

General#173

Agile, the product backlog is owned by the…

A
Product Owner
B
Scrum Master
C
Developers exclusively
D
Stakeholders only

The Product Owner prioritizes the backlog based on value.

General#174

A key drawback of Waterfall is…

A
Late discovery of issues due to minimal early feedback
B
Too much customer collaboration
C
Overly rapid delivery
D
Excessive iteration

Waterfall feedback often arrives after coding/testing, making changes costly.

General#175

Incremental vs Iterative: which is TRUE?

A
Incremental adds new modules; Iterative deepens/improves the same product
B
They are identical
C
Both discard prototypes
D
Neither can be combined

Incremental = breadth by modules; Iterative = depth over cycles.

General#176

Which model is LEAST flexible to change?

A
Waterfall
B
Agile
C
Evolutionary Prototyping
D
RAD

Waterfall resists change because phases are linear and locked.

General#177

Spiral is best matched with which keyword?

A
Risk
B
No testing
C
No prototypes
D
One-time delivery

Spiral is explicitly risk-driven.

General#178

Agile accepts changing requirements…

A
Even late in development
B
Only before coding starts
C
Never
D
Only after release

Agile principle: welcome change for the customer’s competitive advantage.

General#179

RAD typically targets a delivery window of…

A
~60–90 days for a usable release
B
5–7 years
C
Same as Waterfall
D
Single-day delivery always

RAD emphasizes quick turnarounds with time-boxed construction.

General#180

Throwaway prototyping’s prototype is…

A
Discarded after requirement clarification
B
Released as final product
C
Converted to test cases only
D
Always used in production

It is a learning tool, not the basis of the final codebase.

General#181

A hallmark of Scrum is…

A
Time-boxed sprints and daily stand-ups
B
Big design up front and no meetings
C
No roles defined
D
Code before planning

Scrum uses ceremonies and cadences for predictable delivery.

General#182

Which model best ensures traceability from requirements to tests?

A
V-Model
B
RAD
C
Prototype
D
Incremental

V-Model’s verification & validation mapping enforces traceability.

General#183

When primary risk is misunderstood requirements, prefer…

A
Prototype (throwaway) or Evolutionary
B
Waterfall
C
V-Model
D
None

Prototyping reduces misunderstanding through concrete visuals.

General#184

Incremental delivery provides value because…

A
Users can start using parts of the system earlier
B
It removes need for testing
C
It eliminates integration
D
It fixes scope forever

Early increments provide immediate utility and feedback.

General#185

Spiral model phases typically include…

A
Objectives, risk analysis, development, evaluation
B
Only coding
C
Testing only
D
Deployment only

Each loop includes planning, risk analysis, engineering, and evaluation.

General#186

Kanban emphasizes…

A
Visualizing work and limiting WIP
B
Fixed sprints
C
Throwaway prototypes
D
Formal proofs

Kanban improves flow by WIP limits and visual boards.

General#187

Agile, who shields the team from impediments?

A
Scrum Master
B
Product Owner
C
Architect
D
Sponsor

Scrum Master facilitates and removes impediments.

General#188

A weakness of RAD is…

A
Requires strong customer availability and quick decisions
B
Too slow
C
No prototypes
D
Zero tooling

RAD depends on intensive user involvement; without it, quality suffers.

General#189

Which is MOST documentation-heavy?

A
Waterfall/V-Model
B
Agile
C
RAD
D
Prototype

Traditional models emphasize documents and stage gates.

General#190

Which combo is valid?

A
Incremental + Iterative together
B
Agile without iteration
C
Spiral without risk
D
Waterfall with sprints

Many teams deliver new modules (incremental) while refining existing ones (iterative).

General#191

When frequent regulatory audits are expected, which model helps?

A
V-Model or Waterfall
B
Ad-hoc coding
C
Prototype only
D
No-process

Strict documentation and traceability aid audits.

General#192

A key Agile artifact used during Sprint Planning is…

A
Product Backlog & Sprint Backlog
B
Risk Register only
C
Final SRS only
D
Code of Conduct

Sprint Planning selects items from the Product Backlog to form the Sprint Backlog.

General#193

RAD differs from Spiral mainly because RAD…

A
Optimizes speed via components and workshops, not heavy risk analysis
B
Eliminates users
C
Bans prototypes
D
Requires 5-year plans

Spiral is risk-centric; RAD is speed and user-collab centric.

General#194

Scrum, increment must be…

A
Potentially shippable/usable at sprint end
B
Only a document
C
A mock-up only
D
Untested code

Definition of Done ensures quality and usability.

General#195

Which model best fits “measure–learn–build” loops?

A
Agile/Iterative (Lean)
B
Waterfall only
C
V-Model only
D
None

Lean Startup thinking aligns with iterative/agile loops.

General#196

The main risk Spiral addresses early is…

A
Project-specific major risks (tech, cost, schedule)
B
Grammar errors in docs
C
Color palette selection
D
Keyboard layout

Risk identification/mitigation governs each spiral.

General#197

Which statement about Evolutionary Prototyping is TRUE?

A
The codebase of the prototype is extended and hardened for production
B
It is always discarded
C
It forbids user feedback
D
It has no iterations

Evolutionary prototypes are the seed of the final product.

General#198

A new fintech startup will expand to multiple countries; requirements will evolve rapidly. Which model?

A
Evolutionary Prototyping
B
Waterfall
C
V-Model
D
None

Start minimal and evolve with changing regulations/needs.

General#199

Client demands a quick MVP in 2 months with heavy user workshops. Pick:

A
RAD
B
Spiral
C
Waterfall
D
V-Model

RAD suits fast builds using reusable components and active users.

General#200

HR system to be delivered module-by-module: Profiles → Payroll → Leave. Choose:

A
Incremental
B
Iterative
C
Waterfall
D
Spiral

Each increment adds a distinct functional slice.

General#201

Medical device software with strict verification & traceability:

A
V-Model
B
Prototype
C
RAD
D
Kanban only

V-Model maps verification/validation rigorously.

General#202

E-commerce UI unclear; stakeholders need to “see it” first. Best approach:

A
Throwaway Prototyping
B
Waterfall
C
No prototype
D
Big-bang

Use disposable UI prototypes to clarify flows.

General#203

Defense project: high technical risks; must mitigate early. Choose:

A
Spiral
B
RAD
C
Prototype only
D
None

Spiral’s risk loops de-risk early.

General#204

Start-up wants frequent releases and can adapt scope every 2 weeks. Choose:

A
Agile/Scrum
B
Waterfall
C
V-Model
D
Spiral

Sprints allow frequent reprioritization.

General#205

Legacy rewrite with clear, frozen requirements signed by regulators. Choose:

A
Waterfall
B
RAD
C
Prototype
D
Spiral

Stable scope fits Waterfall.

General#206

Search engine product: release v1 simple, v2 add filters, v3 add ML ranking. Choose:

A
Iterative
B
Incremental only
C
Waterfall
D
V-Model

Same product improved each cycle → Iterative.

General#207

Banking back-end core with extreme reliability + audits. Choose:

A
V-Model or Spiral (risk-heavy)
B
Prototype only
C
Ad-hoc
D
RAD only

Regulated, risk-prone systems fit V-Model/Spiral.

General#208

Client needs a wizard-like UI clarified before build, backend is standard. Choose:

A
Throwaway Prototype for UI, then Incremental build
B
Only Waterfall
C
Only Spiral
D
Only Kanban

Prototype clarifies UI; then deliver modules.

General#209

Global payroll system delivered by country packs, one-by-one. Choose:

A
Incremental
B
Iterative only
C
Waterfall
D
Prototype

Each country is an increment.

General#210

Gaming app MVP in 8 weeks with user playtests every weekend. Choose:

A
RAD or Agile
B
Waterfall
C
V-Model
D
None

Fast cycles + user feedback fit RAD/Agile.

General#211

Highly experimental R&D UI concept needs validation, not production code. Choose:

A
Throwaway Prototype
B
Evolutionary
C
V-Model
D
Waterfall

Discardable prototypes validate ideas cheaply.

General#212

A product will start small and grow with market learning; same codebase matures.

A
Evolutionary Prototyping + Iterative
B
Waterfall
C
Prototype throwaway
D
None

Start small; evolve continuously.

General#213

Airport ATC training portal with strict test evidence + mapping to requirements.

A
V-Model
B
Agile only
C
RAD
D
Prototype only

Traceability and planned validation are key.

General#214

Customer support tool where each month a new module (chat, KB, analytics) is added.

A
Incremental
B
Iterative only
C
Waterfall
D
Spiral

Module-wise staged delivery.

General#215

Critical avionics system with many unknown technical risks.

A
Spiral
B
RAD
C
Prototype throwaway only
D
Waterfall

Risk-centric loops suit avionics.

General#216

Regulated insurance portal; UI unclear now but must pass audits later.

A
Prototype first → V-Model
B
Only Agile
C
Only Waterfall
D
Only RAD

Prototype clarifies UI; V-Model ensures audit-ready traceability.

General#217

Startup insists on weekly demos and can reprioritize constantly.

A
Agile/Scrum or Kanban
B
Waterfall
C
V-Model
D
None

Frequent change demands Agile cadence.

General#218

Campus ERP with clear, frozen SRS and fixed budget/time.

A
Waterfall
B
Spiral
C
RAD
D
Agile only

Stable scope favors Waterfall predictability.

General#219

Social app: same app gets richer each release (recs, stories, live).

A
Iterative + Incremental
B
Waterfall only
C
V-Model only
D
None

Add new features (increments) and improve existing ones (iterations).

General#220

Back-office tool needed super-fast using ready-made components and forms builder.

A
RAD
B
Spiral
C
Prototype only
D
V-Model

RAD thrives on component reuse and speed.

General#221

Client wants to see a working UI every 2 weeks and decides scope on the go.

A
Agile/Scrum
B
Waterfall
C
V-Model
D
Prototype only

Time-boxed sprints with reviews fit best.

General#222

Safety-critical railway signaling with exhaustive validation mapping.

A
V-Model
B
RAD
C
Prototype only
D
Kanban only

V-Model provides the required verification/validation rigor.

Looping Statements#223

Which looping logic is exit controlled?

A
For loop
B
While loop
C
do-while loop

Correct answer: While loop.

Looping Statements#224

Consider the output: 0, 2, 4, 6, 8 ,10 ,12, 16 Which of the below given pseudo code snippet gives the above output?

A
BEGIN DECLARE number, count, even SET count <-- 8, number <-- 0, even <-- 0 WHILE number<count PRINT even SET even <-- even + 2 Number <-- number+ 2 END WHILE END
B
BEGIN DECLARE number, count, even SET count <-- 16, number <-- 0, even <-- 0 WHILE number<count PRINT even SET even <-- even + 2 Number <-- number+ 1 END WHILE PRINT even END
C
BEGIN DECLARE number, count, even SET count <-- 8, number <-- 0, even <-- 0 WHILE number<count PRINT even SET even <-- even + 2 number <-- number + 1 END WHILE PRINT even END
D
BEGIN DECLARE number, count, even SET count <-- 8, number <-- 0, even <-- 0 WHILE number<count PRINT even SET even <-- even + 1 Number <-- number+ 1 END WHILE PRINT even END

Correct answer: BEGIN DECLARE number, count, even SET count <-- 8, number <-- 0, even <-- 0 WHILE number<count PRINT even SET even <-- even + 2 Number <-- number+ 2 END WHILE END.

Looping Statements#225

Predict the output of the given flowchart.

A
1 1
B
2 1
C
1 2
D
2 2
E
When it becomes false, the final count value 2 gets printed

Correct answer: 1 2.

Looping Statements#226

Iteration/looping is a repetition of___________

A
variables
B
operation
C
single statement g
D
Block of statements

Looping block can have a single statement or block of statements

Looping Statements#227

Do-while looping statement is almost same as______

A
for loop
B
While loop
C
Nested if
D
if-else

Correct answer: While loop.

Looping Statements#228
Logic Block
1
What is true about FOR LOOP?
A
For loop executes the statements at least once even if the condition is false
B
For loop executes the statement without checking the condition
C
For loop cannot be nested
D
In for loop, the exact number of iterations is known
E
For loop can be nested

Correct answer: In for loop, the exact number of iterations is known.

Looping Statements#229

Jack wants to book flight tickets in Feather-Airways online portal for his family of five. Passenger details like name, age, gender etc. should be entered for each member. The same process of getting details continues for all the five members. The above scenario is a good example for which looping statements?

A
Passenger details like name, age, gender et
B
should be entered for each member. The same process of getting details continues for all the five members. The above scenario is a good example for which looping statements?
C
While loop
D
For loop
E
Do-while loop

Correct answer: For loop.

Looping Statements#230
Logic Block
1
What will be the output for WHILE loop? BEGIN DECLARE number SET number <-- 30 WHILE number>0 number <-- number-4 END WHILE PRINT number END
A
-2
B
2
C
4
D
0

Correct answer: -2.

Looping Statements#231
Logic Block
1
What is the output for FOR-loop snippet? FOR i <--1 to 15 PRINT i i <-- i+3 END FOR
A
1 4 7 10 13
B
4 7 10 13
C
1 4 7 10 13 15 16
D
4 7 10 13 16

Correct answer: 1 4 7 10 13.

Looping Statements#232

Which of the following symbols is inappropriate in building the flowchart pertaining to sequential flow of program?

A
rectangle
B
parallelogram
C
oval
D
diamond

Correct answer: diamond.

Looping Statements#233

The statement / statements within the loop must get executed at least once except for do-while statement. State True/False.

A
TRUE
B
FALSE
C
Whereas do-while executes the statement at least once before checking the condition

Correct answer: TRUE.

Looping Statements#234

Which of the following statements are true with respect to looping statements?

A
initial condition must be applied before the loop begins to execute
B
A loop should run infinite number of times
C
conditional statements are not allowed within a loop
D
the condition under which the iterative process should get terminated must be given
E
The iteration must terminate at some point of tim
F
A looping statement can be nested and can have decision making statements

Initial condition must be applied before the loop begins to execute. The iteration must terminate at some point of time. A looping statement can be nested and can have decision making statements

Looping Statements#235

Which of the following statements are true?

A
The operand in an expression can be a variable or a constant.
B
The operand in an expression must always be a variabl
C
An operand is a mandatory element in an expression.
D
The operand in an expression must always be a constant.

The operand in an expression can be a variable or a constant. Operator without operand is meaningless You have correctly selected 1.

Looping Statements#236

Consider you have a Rubik cube with different colors in each face. To solve this cube, you will continue to rotate the sides until you reach same colors in all faces. This is a real time example for which looping statements?

A
To solve this cube, you will continue to rotate the sides until you reach same colors in all faces. This is a real time example for which looping statements?
B
Nested-if
C
Do-while
D
While
E
For

Correct answer: Do-while.

Looping Statements#237

d f a o n w h g r l e t m p i DOWN: 1) Step by step list of instructions 4) When you know the exact number of iterations, this loop is used Across: 2)Whenaprocess/setofactionsistoberepeated thesestatementsareused 2)When a process/set of actions is to be repeated, these statements are used. 3) In looping, Each execution of a statement/block of statements is technically termed as______ 5) This loop statement is also called as exit-controlled loop 1 4 a f 2 l o o p i n g g r o 3 i t e r a t i o n i t 5 d o w h i l e m

A
DOWN: 1=algorithm, 4=for ACROSS: 2=looping, 3=iteration, 5=do-while
B
Incorrect option A
C
Incorrect option B
D
Incorrect option C

Crossword solution: 1-Down=algorithm, 4-Down=for, 2-Across=looping, 3-Across=iteration, 5-Across=do-while.

Looping Statements#238

Identify the logic which suits the flowchart?

A
for loop
B
While loop
C
Do-while loop
D
nested loop

Correct answer: While loop.

Looping Statements#239
Logic Block
1
It's Halloween. You go from house to house, tricking or treating. You get 2 candies from each house that you go to. You must return home once you collect 100 candies. Can you arrange the sequence for this loop activity. 1 BEGIN 2 SET candy count <- 0 3 END WHILE 4 DECLARE candy_count 5 WHILE candy_count<=100 6 candy count <- candy_count+2 7 END a. 1 2 4 3 6 5 7 b. 1 4 2 5 6 3 7 c. 1 4 2 3 6 5 7 d. 1 4 5 2 3 6 7
A
1 2 4 3 6 5 7
B
1 4 2 5 6 3 7
C
1 4 2 3 6 5 7
D
1 4 5 2 3 6 7

Correct answer: 1 4 2 5 6 3 7.

Looping Statements#240

Looping statements are also called ____________ a. Program logic b. Iteration logic c. Selection logic d. Sequence logic

A
Program logic
B
Iteration logic
C
Selection logic
D
Sequence logic

Correct answer: Iteration logic.

Looping Statements#241
Logic Block
1
Select the appropriate code snippet for the given problem statement provided as pseudocode. Problem Statement : Strong number Check if a given number is a strong number. 145 is a strong number because 1!+4!+5! = 145. Sample Input : 145 Sample Output : Strong number Code: BEGIN DECLARE variables number, sum, temp, remainder, fact READ number SET sum=0, temp=number __________________ remainder = number % 10 SET fact = 1 FOR i IN 1 to remainder DO fact = fact *i END FOR sum = sum+ fact number = number / 10 END WHILE IF sum==temp THEN PRINT "Strong number" ELSE PRINT "Not a Strong number" END IF END a. WHILE number == 0 b. WHILE number < 0 c. WHILE number != 0 d. WHILE number <= 0
A
Problem Statement : Strong number Check if a given number is a strong number. 145 is a strong number because 1!+4!+5! = 145. Sample Input : 145 Sample Output : Strong number Code: BEGIN DECLARE variables number, sum, temp, remainder, fact READ number SET sum=0, temp=number __________________ remainder = number % 10 SET fact = 1 FOR i IN 1 to remainder DO fact = fact *i END FOR sum = sum+ fact number = number / 10 END WHILE IF sum==temp THEN PRINT "Strong number" ELSE PRINT "Not a Strong number" END IF END
B
WHILE number == 0
C
WHILE number < 0
D
WHILE number != 0
E
WHILE number <= 0

Correct answer: WHILE number == 0.

Looping Statements#242
Logic Block
1
Choose the pseudocode for the below problem statement. Problem Statement : Vehicle Registration Mr.William buys a new Audi car. During the vehicle registration, he desires a fancy number in such a way that both the number and its reverse are the same. Generate an algorithm to find that fancy number. Sample Input : 1221 Sample Output : Number is Fancy a. BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO number = number/10 rem = number%10 reverse = reverse*10 + rem END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END b. BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Not Fancy" ELSE PRINT "Number is Fancy" END IF END c. BEGIN DECLARE variables number, reverse, rem, temp READ number WHILE number !=0 DO SET reverse = 0, temp = number rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END d. BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END
A
Generate an algorithm to find that fancy number. Sample Input : 1221 Sample Output : Number is Fancy
B
BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO number = number/10 rem = number%10 reverse = reverse*10 + rem END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END
C
BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Not Fancy" ELSE PRINT "Number is Fancy" END IF END
D
BEGIN DECLARE variables number, reverse, rem, temp READ number WHILE number !=0 DO SET reverse = 0, temp = number rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END
E
BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END

Correct answer: BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO number = number/10 rem = number%10 reverse = reverse*10 + rem END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END.

Selection Statement#243

______________must be used when a set of statements needs to be executed only if a condition is met.

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

Correct answer: selection statements.

Selection Statement#244
Logic Block
1
Consider the pseudo-code snippet. What output do you think the snippet will produce if the sample input for number is 3? BEGIN DECLARE number READ number IF number>=0 IF number == 0 PRINT Zero ELSE PRINT Three ENDIF PRINT No Value END
A
Zero Three Three No value
B
Zero No value
C
Zero Three
D
Three No value
E
The final PRINT statement is completely outside of any if statement, so it always gets executed, and thus No value is displayed

Correct answer: Zero Three Three No value.

Selection Statement#245

From the option, find the correct pseudo-code to find the greatest of three numbers

A
BEGIN DECLARE variables a,b,c READ a,b,c IF a>c PRINT a ELSE PRINT c ELSE IF b>c PRINT b ELSE PRINT c END
B
BEGIN DECLARE variables a, b, c READ a, b, c IF a<b IF a<c PRINTa PRINT a ELSE PRINT c ELSE IF b<c PRINT b ELSE PRINT c END
C
BEGIN DECLARE variables a,b,c READ a,b,c IF a>b IF a>c PRINT a ELSE PRINT c ELSE IF b>c PRINT b ELSE PRINT c END

Correct answer: BEGIN DECLARE variables a,b,c READ a,b,c IF a>c PRINT a ELSE PRINT c ELSE IF b>c PRINT b ELSE PRINT c END.

Selection Statement#246
Logic Block
1
READ age IF age>18 THEN PRINT Eligible to vote ENDIF The given pseudo-code snippet is an example for_______
A
Sequence Logic
B
Simple If logic
C
Nested if logic
D
Else if ladder logic

Correct answer: Simple If logic.

Selection Statement#247

By default, the flow of a program is________

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

Correct answer: top to bottom.

Selection Statement#248

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

A
4
B
2
C
None
D
6

Correct answer: 4.

Selection Statement#249

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

A
If Alvin is not happy, he goes to work.
B
If Alvin is not happy, he does not go to work
C
If Alvin is happy, he may or may not go to work
D
If Alvin is happy, he goes to work.

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

Selection Statement#250

Go to statements in the algorithm is

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

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

Selection Statement#251

Identify the logic which suits the flowchart

A
Else-if Ladder
B
Simple if
C
Nested if
D
if else

Correct answer: Else-if Ladder.

Selection Statement#252

Try some!!! If a doctor gives you 3 pills and tells you to take one pill every half hour, how long would it take before all the pills had been taken?

A
3 hours
B
1 hour
C
1 and half hour
D
2 hours

Correct answer: 1 hour.

Selection Statement#253

Which statement logic implements multiple-way selection?

A
Sequential
B
If-else
C
Else if ladder
D
Simple if

Correct answer: Else if ladder.

Selection Statement#254

Manual execution of the steps in the algorithm is called as _____

A
Dry run
B
Simple Run
C
Execution
D
compiling

Correct answer: Dry run.

Selection Statement#255

When a single if-else logic is used, how many possible choices can be there?

A
3
B
1
C
2
D
0

Correct answer: 2.

Selection Statement#256

You are returning home from a hotel. On the way, you find a sealed envelope in a street, fully addressed with unused stamps on it. What would you do???

A
Remove the unused stamps and destroy the envelop
B
Open the envelope, find out who has dropped it by mistake, and send it to him if possibl
C
Leave the envelope there as it was and walk away
D
post it at the nearest mail box.

Correct answer: post it at the nearest mail box..

Selection Statement#257

Which of the following is not a keyword used in a pseudo-code

A
Set
B
Start
C
Read
D
End if

Correct answer: Start.

Selection Statement#258
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.

Selection Statement#259

Decision statements are also called as _______________. a. Selection logic b. Iteration logic c. Program logic d. Sequence logic

A
Selection logic
B
Iteration logic
C
Program logic
D
Sequence logic

Correct answer: Selection logic.

Selection Statement#260

A computer program must either use conditional statements or looping statements or sequential statements to solve a problem. All of them must not appear in the same program. State true/ false.

A
TRUE
B
FALSE

Correct answer: TRUE.

Selection Statement#261
Logic Block
1
Identify the correct pseudo-code logic for checking a number divisible by 5 or 11. a. 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 PRINTnumbernotdivisibleby5or11 PRINT number not divisible by 5 or 11 END BEGIN b. 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 c. 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 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 READ number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINTnumbernotdivisibleby5or11 PRINT number not divisible by 5 or 11 END BEGIN
B
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
C
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
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.

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

Correct answer: End if.

Key Topics to Study

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

SDLCTestingPseudocodeFlowchartLoopingSelectionRequirementsConfiguration
Preparation Tip

"Focus on understanding the logic behind pseudocode loops and selection statements, as they form the bulk of technical assessments."