Selection statements are used to make decisions based on a condition.

Tutorial 1 Chapter 4 C Programming

Quiz
•
Professional Development
•
Professional Development
•
Easy
Anna Sukri
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
TRUE
FALSE
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
if..else selection structure specifies an action to be performed both when the condition is true and when it is _____
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
____ structure is a single-entry/single-exit structure
if
if...else
switch
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if..else selecion structure specifies an action to be performed both when the condition is true
TRUE
FALSE
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following?
#include <stdio.h>
int main()
{
int m=40,n=20;
if (m>n) {
printf("m is greater than n");}
else if(m<n) {
printf("m is less than n"); }
else {
printf("m is equal to n");}
}
Compilation error
m is greater than n
m is less than n
m is equal to n
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you start writing an if statement in C?
if (x > y)
if x > y()
if x > y then
if x > y
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you start writing a while loop in C?
while (x < y)
while x < y then
if x > y while
while x < y
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Python Code

Quiz
•
8th Grade - Professio...
10 questions
Day4_Quiz_NBKR

Quiz
•
Professional Development
20 questions
Révision HTML, CSS et JavaScript

Quiz
•
Professional Development
11 questions
UC_TM04_Strings_Pointers

Quiz
•
University - Professi...
15 questions
C Operators

Quiz
•
University - Professi...
20 questions
SJIT ECE PRACTICE TEST HCL @ 13/3/24

Quiz
•
Professional Development
16 questions
UC_TM03_Arrays_Functions

Quiz
•
University - Professi...
20 questions
Prelims-Aptitude&C

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade