wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

REVIEW - Quiz 1.2

Total questions: 30

Worksheet time: 2hrs 30mins

Name
Class
Date
1.

Complete the following statement: "An IDE is ...

a)

A single programming language

b)

A type of software used to design websites

c)

An application that has all tools needed for writing code

d)

A hardware tool for compiling code

2.

    What is the MAIN purpose of the code editor in an IDE?

a)

It stores the compiled code

b)

It provides suggestions for the next line of code

c)

It helps to debug software errors

d)

It is used to write and edit code

3.

    What is the purpose of code auto-completion in an IDE?

a)

It helps you write code faster by suggesting what to type next

b)

It runs the program automatically after code is written

c)

It checks for errors in the code

d)

It writes the entire code for the developer

4.

    Which tool in an IDE helps you find and fix errors in your code?

a)

Code editor

b)

Compiler

c)

Debugger

d)

Version control

5.

    How does IDE helps you write code faster?

a)

Because it automates coding

b)

Because you don't need to manually set up separate coding tools

c)

Because it only works on small projects

6.

   How can IDE help write code in multiple programming languages?

a)

It can store large amounts of data

b)

It support multiple languages like PHP, CSS, HTML, and JavaScript

c)

It automatically select the appropriate programming language

d)

It provide tools for hardware-based development

7.

    What does IDE stand for?

a)

Independent Design Execution

b)

Integrated Development Environment

c)

Interactive Development Experience

d)

Integrated Design Example

8.

Which of the following are good function names? SELECT ALL THAT APPLY

a)

functionOne();

b)

climbUpTower

c)

2moveAhead

d)

goToEnd

9.

    What is a requirement for function names in Karel?

a)

They must contain spaces.

b)

They must start with a letter.

c)

They can include special characters.

d)

They can start with a number.

10.

    What is the DIFFERENCE between defining a function and calling a function.

a)

There is no difference between defining a function and calling a function.

b)

To define a function you have to call it first.

c)

To call a function you have to define it first.

d)

Both are required.

11.

    Function names in Karel should (SELECT ALL THAT APPLY):

a)

Use Camel Case

b)

Have spaces

c)

Start with a number

d)

Describe actions clearly

12.

What is a good name for this function?

a)

danceDance

b)

putBall

c)

putFourBalls

d)

nevermind

13.

What is a good name for this function?

a)

turning

b)

turnAround

c)

jumpAhead

d)

two Turns

14.

What is a good name for the following function?

a)

karelMove

b)

realFunction

c)

moveAndPutBall

d)

move

15.

    What is the definition of a function in programming?

a)

A type of variable used to store data

b)

A named block of code that performs a specific task

c)

A command that tells the computer to stop running

d)

An instruction that only makes a robot move forward

16.

    What is a purpose of functions?

a)

To make code more complex

b)

To complicate problem-solving

c)

To simplify tasks by breaking them into smaller parts

d)

To replace all built-in commands

17.

    What is an analogy that helps understand functions in Karel?

a)

Functions are like variables

b)

Functions are like loops

c)

Functions are like new commands Karel understands

d)

Functions are like bug fixes

18.

    What is the first step in defining a function?

a)

Writing the function body

b)

Deciding on the name

c)

Calling the function

d)

Adding comments to the code

19.

    How do you "call" a function to make it run?

a)

Add a purple block to the code editor

b)

Add a blue block with the function name inside

c)

Type code directly into the code editor

d)

Create a new variable with the same name

20.

Which one of the following is a VALID Karel command?

a)

b)

c)

d)

21.

    How many times should Karel turn left in order to turn right?

a)

1

b)

2

c)

3

d)

4

22.

    Which of the following can be used to teach Karel new moves?

a)

variables

b)

new data types

c)

functions

d)

dog treats

23.

    DEFINING a function and CALLING a function are the SAME thing.

a)

True

b)

False

24.

     You can CALL a function many times in one program.

a)

True

b)

False

25.

    Which code DEFINES the function turnAround()?

a)

b)

c)

d)

26.

    Which code CALLS the function makePancakes()?

a)

b)

c)

d)

27.

    Once a function is defined, it can be called multiple times.

a)

True

b)

False

28.

    We use functions for the following reasons: SELECT ALL THAT APPLY

a)

To break down programs into a smaller parts

b)

To avoid repeated code

c)

To make programs more readable

d)

None of the above

29.

What is the LAST step of DEFINING a function?

a)

Write the function body

b)

Decide on the function name

c)

Structure your function

d)

Call the function

30.

What is the name of the IDE we use in class?

a)

Karel

b)

CodeHS

c)

JavaScript

d)

Block Coding