
Inter-School Robotics C Do...While Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
jana mb
Used 2+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
A DO...While loop in C only executes/repeats if...
The condition is TRUE
The condition is FALSE
2.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
What is the correct syntax for a Do...While loop in C that ONLY executes if x is not equal to 5?
do{
condition
}while (x != 5)
do{
condition
}while(x <> 5);
do{
condition
}while(x != 5);
do{
condition
}while(x == 5);
3.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
What is the difference between a While loop and a Do...While loop in C?
A While loop executes if the condition is false whereas a Do...While loop executes if a condition is true
A While loop checks if the condition is true before executing but a Do...While loop checks the condition after executing and only executes when a condition is true
There is no difference, both the While and Do...While loop are the same and can be used interchangeably
A While loop checks if the condition is true after executing but a Do...While loop checks the condition before executing and only executes when a condition is true
4.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
How many times would the following Do...While loop execute in the code shown?
5
6
7
Infinite loop
5.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Which of the following errors from the snippet of C code would result in causing an infinite loop in a Do...While?
int i=0;
do{
printf("Oranges");
i -- ;
}while(i < 10);
int i=0;
do{
printf("Oranges");
}while(i < 10);
int i=0;
do{
printf("Oranges");
i ++ ;
}while(i == 0);
All of the above
Similar Resources on Wayground
10 questions
Hello World - C# Quiz Sheet

Quiz
•
11th Grade
8 questions
File Handling - Python

Quiz
•
9th Grade
10 questions
Python Fundamentals for Grade 9 Students

Quiz
•
9th Grade
10 questions
Introduction to Computer Programming

Quiz
•
6th Grade - University
10 questions
CLASS 9 AI - VIVA 2024-25

Quiz
•
9th Grade - University
10 questions
Loops

Quiz
•
10th Grade
10 questions
Python Control structures

Quiz
•
12th Grade
10 questions
Control Structures

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade