You are on page 1of 1

Question Set: Quiz -2

(LBJ Module 2 – PLT & OOP)


Q.1) A ______ is a sequence of instructions that will be repeated more than once.

Q. 2) Which of the following is a valid variable name in PLT?


1. #Score
2. Max_Score
3. Score@
4. %Score

Q.3) Write the missing step in the algorithm of swapping two numbers without using a third
temporary variable:
start
read NUM1,NUM2
display NUM1, NUM2
<--- identify missing steps here
display NUM1,NUM
stop

Q.4) Write an Algorithm to find the even numbers between 1 to 50

Q.5) Design flowchart for the given pseudocode:


Step 1: Start
Step 2: Input grades of 4 courses M1, M2, M3 and M4,
Step 3: Calculate the average grade with formula "Grade=(M1+M2+M3+M4)/4"
Step 4: If the average grade is less than 60, print "FAIL", else print "PASS".
Step 5: End

You might also like