wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Indentation and pseudocode in RobotC

Total questions: 8

Worksheet time: 16mins

Name
Class
Date
1.

What is the point of using indentation when coding?

a)

Because Mr. Lermon says so.

b)

To make sure your code is organized and easy to read.

c)

Because it looks pretty!

d)

There is no point to indentation in coding.

2.

What is the point of pseudocode?

a)

There is no point in pseudocode.

b)

To make Mr. Lermon Happy

c)

To be able to read in plain English what the code is meant to do

d)

so that the robot can understand what the code is trying to tell it to do.

3.

what do you use to be able to make pseudocode that is on multiple lines

a)

/* (pseudocode goes here)*/

b)

// (pseudocode goes here)

c)

//* (pseudocode goes here)*//

d)

You don't have to do any of that fancy stuff to write pseudocode!

4.

what do you use to be able to make pseudocode that is only on one line that has to go after the main code on the line?

a)

/* (pseudocode goes here)*/

b)

// (pseudocode goes here)

c)

//* (pseudocode goes here)*//

d)

You don't have to do any of that fancy stuff to write pseudocode!

5.

what do you use to be able to make pseudocode that is only on one line that can go before or after the main code on the line?

a)

/* (pseudocode goes here)*/

b)

// (pseudocode goes here)

c)

//* (pseudocode goes here)*//

d)

You don't have to do any of that fancy stuff to write pseudocode!

6.

What is the number one rule when doing indentation?

a)

to make sure that every curly brace has an unimpeded vertical line to its matching curly brace.

b)

to make your code look pretty.

c)

to never let any two lines of code match up with another line

d)

Indentation has no rules.

7.

Which one of these codes has the indentation done correctly?

a)
b)
c)
d)
8.

Which one of these codes has the best pseudocode?

a)
b)
c)
d)