All Topics
Topic20 questions
Selection StatementQuestions & Answers
Practice 20 Selection Statement questions with detailed answers and explanations. Tap any question below to study the full solution.
Selection Statement question list
______________must be used when a set of statements needs to be executed only if a condition is met.Consider the pseudo-code snippet. What output do you think the snippet will produce if the sample input for number is 3? BEGIN DEC…From the option, find the correct pseudo-code to find the greatest of three numbersREAD age IF age>18 THEN PRINT Eligible to vote ENDIF The given pseudo-code snippet is an example for_______By default, the flow of a program is________If there are 6 chocolates and you take away 4, how many do you have?What do you infer from this statement? Only if Alvin is happy, then he does not go to work.Go to statements in the algorithm isIdentify the logic which suits the flowchartTry 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 pi…Which statement logic implements multiple-way selection?Manual execution of the steps in the algorithm is called as _____When a single if-else logic is used, how many possible choices can be there?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.…Which of the following is not a keyword used in a pseudo-codeChoose the correct options to complete the pseudo-code and determine whether the number is positive, zero, or negative. BEGIN DECL…Decision statements are also called as _______________. a. Selection logic b. Iteration logic c. Program logic d. Sequence logicA computer program must either use conditional statements or looping statements or sequential statements to solve a problem. All o…Identify the correct pseudo-code logic for checking a number divisible by 5 or 11. a. DECLARE number READ number IF number%5==0 TH…Which of the keyword is used to close the IF block, while writing a pseudo-code?Practice more topics
PrimerPrep has independently reviewed practice questions and coding exercises — all free.