Font size
WorksheetsREVIEW - Quiz 1.2
Total questions: 30
Worksheet time: 2hrs 30mins
Complete the following statement: "An IDE is ...
A single programming language
A type of software used to design websites
An application that has all tools needed for writing code
A hardware tool for compiling code
What is the MAIN purpose of the code editor in an IDE?
It stores the compiled code
It provides suggestions for the next line of code
It helps to debug software errors
It is used to write and edit code
What is the purpose of code auto-completion in an IDE?
It helps you write code faster by suggesting what to type next
It runs the program automatically after code is written
It checks for errors in the code
It writes the entire code for the developer
Which tool in an IDE helps you find and fix errors in your code?
Code editor
Compiler
Debugger
Version control
How does IDE helps you write code faster?
Because it automates coding
Because you don't need to manually set up separate coding tools
Because it only works on small projects
How can IDE help write code in multiple programming languages?
It can store large amounts of data
It support multiple languages like PHP, CSS, HTML, and JavaScript
It automatically select the appropriate programming language
It provide tools for hardware-based development
What does IDE stand for?
Independent Design Execution
Integrated Development Environment
Interactive Development Experience
Integrated Design Example
Which of the following are good function names? SELECT ALL THAT APPLY
functionOne();
climbUpTower
2moveAhead
goToEnd
What is a requirement for function names in Karel?
They must contain spaces.
They must start with a letter.
They can include special characters.
They can start with a number.
What is the DIFFERENCE between defining a function and calling a function.
There is no difference between defining a function and calling a function.
To define a function you have to call it first.
To call a function you have to define it first.
Both are required.
Function names in Karel should (SELECT ALL THAT APPLY):
Use Camel Case
Have spaces
Start with a number
Describe actions clearly
What is a good name for this function?
danceDance
putBall
putFourBalls
nevermind
What is a good name for this function?
turning
turnAround
jumpAhead
two Turns
What is a good name for the following function?
karelMove
realFunction
moveAndPutBall
move
What is the definition of a function in programming?
A type of variable used to store data
A named block of code that performs a specific task
A command that tells the computer to stop running
An instruction that only makes a robot move forward
What is a purpose of functions?
To make code more complex
To complicate problem-solving
To simplify tasks by breaking them into smaller parts
To replace all built-in commands
What is an analogy that helps understand functions in Karel?
Functions are like variables
Functions are like loops
Functions are like new commands Karel understands
Functions are like bug fixes
What is the first step in defining a function?
Writing the function body
Deciding on the name
Calling the function
Adding comments to the code
How do you "call" a function to make it run?
Add a purple block to the code editor
Add a blue block with the function name inside
Type code directly into the code editor
Create a new variable with the same name
Which one of the following is a VALID Karel command?
How many times should Karel turn left in order to turn right?
1
2
3
4
Which of the following can be used to teach Karel new moves?
variables
new data types
functions
dog treats
DEFINING a function and CALLING a function are the SAME thing.
True
False
You can CALL a function many times in one program.
True
False
Which code DEFINES the function turnAround()?
Which code CALLS the function makePancakes()?
Once a function is defined, it can be called multiple times.
True
False
We use functions for the following reasons: SELECT ALL THAT APPLY
To break down programs into a smaller parts
To avoid repeated code
To make programs more readable
None of the above
What is the LAST step of DEFINING a function?
Write the function body
Decide on the function name
Structure your function
Call the function
What is the name of the IDE we use in class?
Karel
CodeHS
JavaScript
Block Coding
