School Olympiads - National Cyber Olympiad & AI Foundation (NCO)

Conditional Logic (if-elif-else) & Iteration (for/while) question bank (Algorithms, Logic & Programming Foundations)

Practice 5 free School Olympiads - National Cyber Olympiad & AI Foundation (NCO) Algorithms, Logic & Programming Foundations - Conditional Logic (if-elif-else) & Iteration (for/while) questions with answers and step-by-step solutions.

Q1.
In computing logic for Conditional Logic (if-elif-else) & Iteration (for/while), what is the binary representation of the decimal number $19$?

(A)
{'key': 'A', 'text': '(10011)₂'}
(B)
{'key': 'B', 'text': '(10100)₂'}
(C)
{'key': 'C', 'text': '(10101)₂'}
(D)
{'key': 'D', 'text': '(10010)₂'}
Show answer & solution
Verified Answer & Solution Locked
Sign in to your free student account to reveal verified answers, instant hints, and detailed explanations.
Sign in to view
Q2.
[Achievers Section - HOTS]
In computing logic for Conditional Logic (if-elif-else) & Iteration (for/while), what is the binary representation of the decimal number $24$?

(A)
{'key': 'A', 'text': '(11000)₂'}
(B)
{'key': 'B', 'text': '(11001)₂'}
(C)
{'key': 'C', 'text': '(11010)₂'}
(D)
{'key': 'D', 'text': '(10111)₂'}
Show answer & solution
Verified Answer & Solution Locked
Sign in to your free student account to reveal verified answers, instant hints, and detailed explanations.
Sign in to view
Protected Questions

Unlock All 5 Questions in Conditional Logic (if-elif-else) & Iteration (for/while)

Log in or sign up free to access every question with complete solutions, create chapter practice tests, and track your performance.

Sign up free to access all 5 questions

Unlock every Conditional Logic (if-elif-else) & Iteration (for/while) question, generate papers, and practice at your own pace.