Search Header Logo

Fundamentals of Comp Sci Midterm Review 2021

Authored by Janna Shelton

Computers

9th - 12th Grade

Used 3+ times

Fundamentals of Comp Sci Midterm Review 2021
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

39 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the proper format for a single line comment in Karel?

Media Image

// This is a comment

/* This is a comment

This is a comment

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to define a turnRight function in Karel?

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What makes the following command an invalid Karel command?

turnleft();

It should end in a colon rather than a semicolon

The l should be a capital L

It should start with a capital T

This command is correct

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In this code, how many times is the dance function called and how many times is it defined?

Called 1 time, defined 1 time

Called 1 time, defined 3 times

Called 3 times, defined 1 time

Called 3 times, defined 3 times

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we teach Karel new commands?

For loop

While loop

Define a new function

The start function

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Karel starts at Street 1, Avenue 1, facing East in a 5x5 world. What will happen after this code runs?

Karel will end on Street 1, Avenue 2

Karel will end on Street 1, Avenue 7

This code won’t run because of a syntax error

Karel will crash into a wall

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

What is wrong with this for loop?

The for loop uses commas instead of semicolons

It should say i++ instead of i + 1

The for loop is correct

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?