Software Fundamentals
Software Fundamentals
145236
154236
154326
145326
Flow direction
Answer 1
Input/output
Answer 2
Connector
Answer 3
Decision making
Answer 4
Process
Answer 5
Start/Stop
Answer 6
6. Examine the correct logic with their descriptions
BEGIN
DECLARE
radius,circumference
READ radius
PRINT circumference
END
BEGIN
PRINT average
END
BEGIN Answer 3
calculating simple interest problem
DECLARE principal,
number_of_years,
rate_of_interest,result
READ principal,
number_of_years, rate_of_interest
result <---(principal*
number_of_years*,
rate_of_interest)/100
PRINT result
END
Select one:
4,1,5,2,3
4,1,3,5,2
4,2,5,1,3
4,1,5,3,2
11. 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?
Select one:
Print the area
Area=3.14*radius*radius
Check if radius has positive value
Read the value of radius
13. Which of the following represents the correct sequence for the
given algorithm?
Get the two numbers.
Start
Add the two numbers and store the result in sum.
Display the sum value.
Stop
Start
Get the two numbers.
Display the sum value.
Add the two numbers and store the result in sum.
Stop
Start
Get the two numbers.
Add the two numbers and store the result in sum.
Display the sum value.
Stop
Start
Add the two numbers and store the result in sum.
Get the two numbers.
Display the sum value.
Stop
14. 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
51432
15432
15342
51342
Anwar
Edwin
Mithran
Babu
Uncle
Cousin
Father
Brother
Pseudocode :
2. 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
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
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
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
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
BEGIN
DECLARE number
READ number
IF number>=0
IF number == 0
PRINT “Zero”
ELSE
PRINT “Three”
ENDIF
PRINT “No Value”
END
Select one:
Zero Three No value
Three No value
Zero Three
Zero No value
10. When a single if-else logic is used, how many possible
choices can be there?Select one:
3
2
0
1
16. 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???
Select one:
Open the envelope, find out who has dropped it by mistake,
and send it to him if possible.
Leave the envelope there as it was and walk away
Remove the unused stamps and destroy the envelope.
post it at the nearest mail box.
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
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
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
IF Answer 1 END IF
i <-- i+1
END FOR
PRINT factorial
END
Which of the following statement should be inserted to complete
the above pseudo code for finding factorial of 5 numbers.
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
Select one:
2 2
2 1
1 1
1 2
13. The statement / statements within the loop must get executed
at least once except for do-while statement. State True/False.
Select one:
True
False
16. 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?
Select one:
For
While
Nested-if
Do-while
17. 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
18. Identify the logic which suits the flowchart?
Select one:
nested loop
Do-while loop
While loop
for loop
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
FOR i IN 0 to 3 DO
FOR i IN 0 to 4 DO
FOR i IN 0 to n DO
FOR i IN 0 to 5 DO
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
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
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
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
2. Assume,
number[100] <- 99.
How many elements can be stored inside the array variable
number?
Select one:
99
100
The statement gives no clue about the number of elements
that can be stored
Infinite number of elements
3. Map the scenario to its appropriate array type
2D ARRAY
Matrix multiplication
1D ARRAY
To create a list of all prime numbers below 100
9. Question text
The operation of ordering the elements in the list is known
as Sorting .
11.Question text
Index
is used to locate an element in an array.
12. Assume you have an array named numbers of size 10.
Which of the assignment is valid?
Select one or more:
numbers[9] <- 5
numbers[11] <- 6
numbers[10] <- 11
numbers[0] <- 10
15. 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?
Select one:
Yes
No
BEGIN
INPUT name
DECLARE name [20]
PRINT name
END
BEGIN
INPUT name
PRINT name
DECLARE name [20]
END
BEGIN
DECLARE name [20]
INPUT name
PRINT name
END
4. Spiral life cycle model is not suitable for products that are
vulnerable to large number of risks. State if True or False.
Select one:
FALSE
TRUE
Select one:
Development
Maintenance
Process
modeling
Answer 2
Data objects are converted to achieve the business objective
Application
generation
Answer 3
Automated tools are used to convert process models into the actual system
Business
modeling Answer 5
The information flow is identified betw een various modules
6. Consider the below scenario. A team has many players and the
player belongs to one team. Identify the cardinality between
player and team
1:M
1:1
M:1
M:M
Phase of Software Engineering- Check Your
Understanding :
1. Which of the following options are the steps involved in
Requirements Analysis?
Select one or more:
Analysis of the gathered requirements
Requirements Specification
Requirements Elicitation
Requirements Gathering
2. From the below options, identify the role of the system analyst.
Writes pseudo code for the given module
Creates high level test cases
Creates HLD document
Creates SRS
Requireme
nts Answer 2
Documents all the requirements properly
Specificatio
n
Requireme
nts
Elicitation Answer 3
Gathering requirements from the users, customers and other stake holders
Design
Architect
ure
design Answer 2
Defines the modules of the system and the functions that each module perform
Interface Answer 3
design Describes how the softw are communicates w ith itself, and w ith the users interacting w ith the softw are
2. The testing technique that deals with the internal logic and
structure of the code is called ________.
Select one:
Pure Box Testing
Logical Testing
WhiteBox Testing
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.
Select one:
4
6
5
3
6. 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?
Acceptance Testing
Regression Testing
Black box testing
White box Testing
7. Boundary value analysis can only be used during white-box
testing. State if True or False.
Select one:
FALSE
TRUE
Test Answer 1
Execution Executing test scripts and Finding bugs
Test
Design Answer 2
Test scenarios, test cases, test data, and test scripts are prepared
Test Plan
Answer 3
Resource allocation, creation of test environment, test schedule and test functionality
Author
Writer of the ‘document under review ’
Answer 3
5. 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?
Select one:
Regression Testing
Black Box Testing
Integration Testing
Usability Testing
White Box Testing
State
Transition Answer 1
Involves actions as one of its components
Diagram
Cause
Effect Answer 2
The causes and effects represent the nodes
Graphing
Cause
Effect Answer 3
It is suitable for applications in w hich combinations of input conditions are few
Analysis
5.Question text
SRS version artifact baseline
The entry door of the Server room inside the company can be
baseline
considered as equivalent to concept in configuration
management.
7. Question text
Select one:
Review stakeholder feedback
Analyze the cost of the proposed change
Collect impacts of change request
Evaluate impacts of change request