Fundamentals CBa1

Fundamentals CBa1

9th Grade

25 Qs

quiz-placeholder

Similar activities

JavaScript - Karel

JavaScript - Karel

9th - 10th Grade

20 Qs

IST CodeHS Unit 2 Robot Coding Review

IST CodeHS Unit 2 Robot Coding Review

9th - 12th Grade

20 Qs

JavaScript Basics CodeHS

JavaScript Basics CodeHS

7th - 12th Grade

20 Qs

Karel Quiz

Karel Quiz

8th - 12th Grade

22 Qs

Java If/else/ switch

Java If/else/ switch

9th - 12th Grade

20 Qs

CodeHS Test

CodeHS Test

7th - 9th Grade

20 Qs

CodeHS Programming with Karel

CodeHS Programming with Karel

9th - 12th Grade

20 Qs

Java Conditional Constructs

Java Conditional Constructs

9th - 10th Grade

20 Qs

Fundamentals CBa1

Fundamentals CBa1

Assessment

Quiz

Computers

9th Grade

Hard

Created by

khatija duplayee

FREE Resource

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?