NEW
Font size
WorksheetsReview for Fall Semester Exam - CTE
Total questions: 70
Worksheet time: 35mins
What is the responsible use of technology by anyone who uses digital devices, the internet, and online platforms called?
Digital Literacy
Digital Citizenship
Digital Communication
Digital Ethics
Which of the following is NOT a key element of digital citizenship?
Ethical use
Safety and security
Respect
Digital marketing
What does an ethical roboticist focus on besides how robots work?
The speed of robots
The moral and societal impact of their creations
The cost of production
The color of robots
What is the role of an ethical roboticist in digital citizenship?
Design with speed
Design with integrity
Design with cost-efficiency
Design with aesthetics
What is a computer?
A device that only stores data
A device that only outputs information
An electronic device that takes in information, processes it, and gives back results
A device that only follows instructions
What is an input device?
A tool that displays information
A tool that stores information
A tool that allows you to give information to the computer
A tool that prints information
What is the role of a processor in a computer?
It connects all the components together.
It performs calculations and solves problems.
It receives information from the computer.
It is a core component essential for the system to function.
Which of the following is an example of an output device?
Keyboard
USB drive
Monitor
Mouse
What does CPU stand for?
Central Processing Unit
Computer Peripheral Unit
Core Processing Unit
Central Peripheral Unit
What is a peripheral device?
A core component essential for the system to function
A device that performs calculations
Any output or input device that connects to the computer
The brain of the computer
What is a programming language?
A set of rules for writing code
A tool for receiving information from the computer
A set of instructions for telling a computer how to perform a task
A process of finding and fixing errors
What is debugging?
Writing code in a programming language
Finding and fixing errors in a set of instructions or code
Defining rules for how code must be written
Operating independently and making decisions
What is an autonomous robot?
A robot that requires human control
A robot that can operate independently
A robot that only follows pre-set instructions
A robot that cannot adapt to changing environments
What is a non-autonomous robot?
Operates without direct human control
Requires direct human control
Can think independently
Functions without any commands
In pair programming, who is the navigator?
The person who writes the code
The person who gives instructions
The person who tests the program
The person who manages the project
What is pseudocode?
A programming language
A way to plan a program by writing its steps in plain English
A type of robot behavior
A debugging tool
What defines a complex behavior in robotics?
A single, simple task
A combination of simple tasks
An error in the system
A task that requires no human input
What is decomposition in problem-solving?
Combining multiple solutions into one
Breaking down a complex problem into smaller, more manageable parts
Ignoring the problem entirely
Solving the problem in one step
What is the coordinate of Tracy's starting position in the grid world?
A) (0, 0)
B) (200, 200)
C) (-200, -200)
D) (100, 100)
Where does Tracy always start in the grid world?
At the (0,0) coordinate in the bottom left hand corner of the canvas
At the (-200,-200) coordinate in the bottom left hand corner of the canvas
At the (0,0) coordinate in the middle of the canvas
At the (-200,-200) coordinate in the middle of the canvas
What are the dimensions of Tracy’s world?
200 pixels x 200 pixels
400 pixels x 200 pixels
400 pixels x 400 pixels
200 pixels x 400 pixels
How far does Tracy need to move from the starting position to reach the end of the right side of the canvas?
50 pixels
100 pixels
200 pixels
400 pixels
If you want Tracy to move forward 100 pixels without making a line, what set of commands should you write?
penup()
forward(100)
forward(100)
penup()
penup(100)
forward(-100)
What is the first step in drawing a square with sides of length 50 in the Tracy programming language?
Move Tracy forward 50 units
Turn Tracy left 90 degrees
Turn Tracy right 90 degrees
Move Tracy backward 50 units
Why does the programmer use the "pen up" command before moving Tracy to draw the y-axis?
To make Tracy draw a dotted line
To prevent Tracy from leaving a trail while moving
To change the color of Tracy's line
To make Tracy move faster
Tracy always starts facing which direction?
North
South
East
West
If Tracy is facing right, which of the following commands can be used to turn her to face up?
A. left(90)
B. turn(up)
C. right(270)
D. setposition(90)
A only
A and C
A, B, and C
A, B, C, and D
What is the main benefit of using a 'for loop' in coding?
It allows you to copy and paste code more efficiently
It helps you create more complex programs
It makes your code shorter and easier to change
It lets you use different programming languages
How does the color recognition feature in the code editor help programmers?
It helps them identify errors in their code
It makes the code look more visually appealing
It reminds them of the correct syntax for Python commands
It allows them to change the color of their code
What is the purpose of the 'Documents' tab in the code editor?
It provides a list of all the programs you have created
It allows you to save your code to a file
It offers helpful information about different coding commands
It lets you share your code with other programmers
Which of the following is NOT a reason for loops are useful when writing code?
Loops help us write the same program with fewer lines of code
Loops let us make shapes of multiple sizes
Loops make it easier to alter code once it’s written
Loops make our code easier to read
If Tracy starts at the left edge of the canvas and moves forward 50 pixels, how many times will this code need to be repeated to have Tracy reach the right edge of the canvas?
4 times
8 times
10 times
50 times
What command can be used to move Tracy directly to a specific location on the grid without changing her facing direction?
Forward
Left
Right
Setposition
What is the significance of the `penup()' command before using the `setposition()` command?
It prevents Tracy from drawing a line while moving to the new position
It changes Tracy's facing direction
It increases Tracy's drawing speed
It sets the starting point for a loop
The setposition() command moves Tracy to a coordinate and:
turns her to face left
does not turn her
turns her to face up
turns her to face down
Why are comments important for understanding code, even if they don't affect how the code runs?
Comments help the computer understand the code better
Comments make the code look more organized and professional
Comments explain what the code does, making it easier for others to understand
Comments are only important for teachers to understand the code
What is the difference between inline comments and multi-line comments in Python?
Inline comments are used for short explanations, while multi-line comments are for longer explanations
Inline comments are written in English, while multi-line comments are written in Python
Inline comments are understood by the computer, while multi-line comments are understood by people
There is no difference between inline comments and multi-line comments
How do you write a multi-line comment in Python?
Start with a hashtag (#) and write your comment on the next line
Start with three quotation marks (''') and end with three quotation marks (''')
Start with a forward slash (/) and end with an asterisk (*)
Start with an asterisk (*) and end with a forward slash (/)
Comments are:
Written for humans to read and understand
Only needed when a program is over 50 lines
Commands performed by the computer
Always blue when Python recognizes them
What symbol is used at the beginning of an in-line comment?
"
!
#
:
Why is it important to use underscores in function names?
Underscores help the computer understand the code better, making it easier to read
Underscores make the code look more professional
Underscores are used instead of spaces to help separate words in a function name, making it easier to read
Underscores are required by the Python programming language
What is the main reason why starting a function name with a number is a bad idea?
It makes the code harder to read
Because the teacher said so
It's against the rules of good programming practice
It's not allowed in Python
What is a good example of a function name that tells us what it's used for?
my_function
Radius
draw_3_circles
Draw_3_squares
If I am creating a function that is going to draw 2 squares, which of the following would be the BEST name option?
Draw_2_Squares
draw_squares
draw_shapes
2_squares
Why are functions helpful for programmers?
Functions make code shorter and easier to understand
Functions are only used for debugging code
Functions require writing more lines of code to perform the same task
Functions prevent the use of variables in a program
What command can be used to change the thickness of Tracy's lines?
color
pensize
begin_fill
end_fill
How many degrees does Tracy need to turn to create an octagon with eight equal sides?
360 degrees
180 degrees
45 degrees
90 degrees
What is the purpose of the `extent` value in the `circle` command?
It determines the number of points used to draw the circle
It controls the color of the circle
It specifies the number of degrees of the circle to draw
It sets the thickness of the circle's outline
How would I change Tracy’s trail to a yellow line with a thickness of 10 pixels?
Color(Yellow)
thickness(10)
color(“yellow”)
pensize(10)
color yellow()
pensize(10)
color yellow():
pensize(10)
What is true of Tracy’s color command?
You can only use hex color codes
There are 10 different colors that Tracy knows
The color name must have underscores between words (ex: light_blue)
The color name must be in quotation marks
What is the correct way to draw a circle that is filled in?
begin_fill()
circle(20)
end_fill()
circle(20)
begin_fill()
end_fill()
circle(begin_fill, 20, end_fill)
circle(20)
end_fill()
Why is troubleshooting important in engineering?
It minimizes testing time
It is the main process for improving the robot’s functionality
It ensures no revisions are needed in the journal
It replaces coding altogether
What is the definition of troubleshooting?
Writing detailed pseudocode to plan a program
Breaking down a complex problem into smaller parts
Tracing and correcting faults in a mechanical or electronic system
Documenting the steps of a completed project
Which sentence is true about complex and simple behaviors?
Complex behaviors and simple behaviors are unrelated
Complex behaviors are always more important than simple behaviors
Complex behaviors and simple behaviors exist on a spectrum where some are more complex than others and vice versa
What is one benefit of decomposition in computer programming?
To combine multiple tasks into one large problem for simplicity
To test the entire program at once without breaking it into parts
By dividing a large task into smaller pieces, it becomes easier to manage and tackle each part separately
To focus on only the most complex parts of a task
Which of the following is an example of an input device?
Printer
Monitor
Keyboard
Speaker
Which of the following is NOT an output device?
Monitor
Speakers
Printer
Mouse
What is an output device?
A tool that allows you to input data into the computer, such as a keyboard or mouse.
A tool that allows you to receive information from the computer, such as a monitor or printer.
A tool that stores information for the computer, like a hard drive or USB.
A tool that processes information inside the computer, such as the CPU.
Which of the following best describes a peripheral device?
A core component of a computer that is essential for the system to function, such as the CPU or motherboard.
A device that connects to the computer to extend its functionality, such as a USB drive, monitor, or mouse.
A component that processes data within the computer, like the RAM or power supply.
A device that stores information permanently, such as a hard drive or SSD.
Which of the following best describes a non-peripheral device?
core component of a computer that is essential for the system to function, such as the CPU or motherboard.
A device that connects to the computer to extend its functionality, such as a webcam or printer.
A tool used to input data into the computer, like a keyboard or mouse.
A device that allows you to receive information from the computer, such as a monitor or speaker.
The CPU The brain of the computer that connects everything together
True
False
A processor is one part of the computer that performs calculations and solves problems.
True
False
Suppose you write a function. How many times can you call the function in your code?
As many times as you like
Not more than the number of commands the function holds
It depends on the function
Once
Which of the statements below is true about indentation in Python?
Indentation only matters in for loops. Then, everything must be indented one level.
Indentation never matters in Python. You can align your code any way you like, but indentation makes your code easier to read.
Indentation always matters in Python. Every statement must be aligned correctly.
Indentation only matters in functions. Then, everything must be indented one level.
Which of the following is NOT a purpose of functions?
Functions allow programmers to use more descriptive names in programs.
Functions help group statements together to make code more readable.
Functions help programmers repeat commands a fixed number of times.
Functions allow programmers to reuse code.
What is the difference between defining and calling a function?
Defining a function means you are teaching the computer a new word. Calling a function means you are commanding the computer to complete defined actions.
There is no difference.
Calling a function means you are teaching the computer a new word. Defining a function means you are commanding the computer to complete defined actions.
Defining a function must be done each time you want to use the function. Calling a function can only happen once in your code.
What shape will be drawn with the following command?
circle(50, 360, 3)
A circle
A hexagon
A triangle
A diamond
What is syntax in programming?
The process of debugging a program to fix errors.
The set of rules that defines how code must be written, such as correct use of parentheses and capitalization.
The visual appearance of the code, including colors and formatting.
The tools used to run a program and check for logic errors.
What is a programming language?
A tool that allows computers to generate random tasks on their own.
A set of instructions that programmers use to tell a computer how to perform a task.
The hardware component responsible for executing computer tasks.
A device that helps translate human language into computer signals.
What is pair programming?
A method where one programmer writes the code while the computer generates instructions automatically.
A collaborative programming approach where two people work together, typically with one giving instructions (the “navigator”) and the other executing them (the “driver”).
A programming style where two computers are connected to execute the same task simultaneously.
A team-based approach where everyone writes code independently and merges it later.
