Search Header Logo

Fundamentals CBa1

Authored by khatija duplayee

Computers

9th Grade

Fundamentals CBa1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If Karel starts at Street 5 and Avenue 1 facing South, what street and avenue will Karel be on after this code runs?

move();

move();

move();

turnLeft();

move();

Street 8 and Avenue 1

Street 2 and Avenue 1

Street 5 and Avenue 4


Street 4 and Avenue 1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function will teach Karel how to spin in a circle two times?


function spin() {

    move();

    move();

function spin() {

    turnLeft();

    turnLeft();

    turnLeft();

    turnLeft();


function spin() {

    turnLeft();

    turnLeft();

function spin() {

    move();

    move();

    move();

    move();

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times can you call the move() function when moving Karel forward?

0

1

2

However many times you like

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times should you call the start function when writing your program?

0

1

2

However many times you like

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a benefit of using functions in programming?

Breaking down the program into smaller parts


Avoiding code repetition


Improving program readability

All of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is it recommended to use functions in programming? (Select all that apply)


To divide the program into bigger, modular sections


To prevent redundant code


To enhance the overall clarity and comprehensibility of the program


All of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which characteristic distinguishes top-down design from other design approaches in programming?


It emphasizes breaking down the problem into smaller, more manageable pieces.


It focuses on creating visually appealing designs for web pages.


It prioritizes writing individual commands as the first step in programming.

It primarily relies on loops and classes to structure the program's execution.

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?