All Topics
Topic25 questions

03 Selection StatementsQuestions & Answers

Practice 25 03 Selection Statements questions with detailed answers and explanations. Tap any question below to study the full solution.

03 Selection Statements question list

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.By default, the flow of a program is________Identify the correct pseudo-code logic for checking a number divisible by 5 or 11. a. DECLARE number IF number%5==0 THEN PRINT num…Choose the correct options to complete the pseudo-code and determine whether the number is positive, zero, or negative. BEGIN DECL…Go to statements in the algorithm is______________must be used when a set 5of st2atem2ents4 nee8ds to be executed only if a condition is met.Which of the keyword is used to close the IF block, while writing a pseudo-code?READ age IF age>18 THEN PRINT Eligible to vote ENDIF The given pseudo-code snippet is an example for_______When a single if-else logic is used, how many possible choices can be there?Decision statements are also called as _______________. a. Sequence logic b. Iteration logic c. Program logic d. Selection logicYou are returning home from a hotel. On the way, you find a sealed envelope in a street, fully addressed with unused stamps on it.…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 t…Manual execution of the steps in the algorithm is called as _____Which statement logic implements multiple-way selection?A computer program must either use conditional statements or looping statements or sequential statements to solve a problem. All o…Consider the pseudo-code snippet. What output do you think the snippet will produce if the sample input for number is 3? BEGIN DEC…Identify the logic which suits the flowchartWhich of the following is not a keyword used in a pseudo-codeFrom the option, find the correct pseudo-code to find the greatest of three numbersPointing 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?Analyze the statements. i)Danny is younger than Edwin ii)Christine is younger than Danny. iii)Christine is older than Edwin. If th…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 An…"Invalid balloon number " O5R nu2mber2 > 14 OR 8number < 50 "This balloon can fiy to Tweety" OR number < 1 PRINT AND number%7 == 0…Choose the correct pseudocode for the below problem statement. Problem Statement : Hide and Seek One day, Bunny and his friends we…

Practice more topics

PrimerPrep has independently reviewed practice questions and coding exercises — all free.