Search Header Logo

Robotics Quiz

Authored by joshua igoni

Computers, Science, Mathematics

1st - 12th Grade

CCSS covered

Used 5+ times

Robotics Quiz
AI

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?


 int i =10;int\ i\ =10;  
 int j = i++;int\ j\ =\ i++;  

 i =11,  j= 11i\ =11,\ \ j=\ 11  

 i = 11,  j = 10i\ =\ 11,\ \ j\ =\ 10  

 i = 10,  j = 11i\ =\ 10,\ \ j\ =\ 11  

 i = 10,  j = 10i\ =\ 10,\ \ j\ =\ 10  

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?