Complete Subject Question Bank
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?
Correct answer: Area=3.14*radius*radius.
Arrange the words given below in a meaningful sequence. 1. Word 2. Paragraph 3. Sentence 4. Letters 5. phrase
Correct answer: 4,1,5,3,2.
Identify the meaningful variable names which can be used?
Variable names should not start with a number, should not have spaces in between, should not start with symbols except dollar( $ ) and underscore( _ )
Choose the correct and meaningful pseudo-code to add two numbers?
Correct answer: BEGIN DECLARE number1,number2,sum READ number1,number2 sum<----number1+number2 PRINT sum END.
Match the appropriate Flowchart symbols with its purpose. Start/Stop Flow direction Connector Decision making Process Input/output
The standard flowchart symbols match: oval=Start/Stop, arrow=Flow direction, circle=Connector, diamond=Decision, rectangle=Process, parallelogram=Input/output.
1Which 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
Correct answer: DECLARE variables number1, number2, result result <- number1 * number2 READ number1 and number2 PRINT result.
Expression is a combination of ___________, ____________ and _______________
Expression is a combination of operands and operators. This operand can be a variable or a constant
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
Correct answer: Start Get the two numbers. Add the two numbers and store the result in sum. Display the sum valu.
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
Correct answer: 600 [×] 400 [/] 800 [-] 300 [+] 200 = 200.
1Which 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
Correct answer: 5 1 4 3 2.
Flow chart for adding numbers Is the given flowchart correct?
Correct answer: The symbol for reading input from the user is incorrect.
1Rearrange 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
Correct answer: 1 5 4 3 2 6.
If there are 6 chocolates and you take away 4, how many do you have?
Correct answer: 4.
What do you infer from this statement? Only if Alvin is happy, then he does not go to work.
Correct answer: Alvin is not happy and he goes to work..
By default, the flow of a program is________
Correct answer: top to bottom.
1Identify 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
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.
1Choose 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
Correct answer: number>0, number>0, number==0.
Go to statements in the algorithm is
Correct answer: Used to alternate the flow of the program.
______________must be used when a set 5of st2atem2ents4 nee8ds to be executed only if a condition is met.
Correct answer: selection statements.
1Which of the keyword is used to close the IF block, while writing a pseudo-code?
Correct answer: End if.
Based on our question bank analysis, master these concepts to score high in Software Engineering.
Test your knowledge under real exam conditions with our curated mock assessment.
Start Preparing for Primers