
Robotics Quiz
Authored by joshua igoni
Computers, Science, Mathematics
1st - 12th Grade
CCSS covered
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many times will the loop execute?
unsigned char half_limit = 150;
for (unsigned char i = 0; i < 2 * half_limit; ++i)
{
// do something
}
150
500
Infinite
Tags
CCSS.6.EE.B.6
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
what will be the value of "i" and "j" when the following code is executed?
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you create a variable with the floating Number 2.8?
int x = 2.8;
x = 2.8;
double x = 2.8;
byte x = 2.8
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which header file lets us work with input and output objects?
#include <stream>
#include <iostream>
#include <inputstr>
#include <iosstring>
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you start writing a while loop in c++?
x > y whlle {
while x > y {
while x > y:
while (x > y)
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
what is the correct syntax to output "hello world" in c++?
System.out.println("hello world");
cout << "hello world";
print ("hello world");
Console.Writeline("hello world");
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Does both the loops in the following program print the correct string length?
Yes, Both the loops print the correct length
Only for loop prints the correct length
Only while loop prints the correct length
Compile error in the program
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?