wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Review for Fall Semester Exam - CTE

Total questions: 70

Worksheet time: 35mins

Name
Class
Date
1.

What is the responsible use of technology by anyone who uses digital devices, the internet, and online platforms called?

a)

Digital Literacy

b)

Digital Citizenship

c)

Digital Communication

d)

Digital Ethics

2.

Which of the following is NOT a key element of digital citizenship?

a)

Ethical use

b)

Safety and security

c)

Respect

d)

Digital marketing

3.

What does an ethical roboticist focus on besides how robots work?

a)

The speed of robots

b)

The moral and societal impact of their creations

c)

The cost of production

d)

The color of robots

4.

What is the role of an ethical roboticist in digital citizenship?

a)

Design with speed

b)

Design with integrity

c)

Design with cost-efficiency

d)

Design with aesthetics

5.

What is a computer?

a)

A device that only stores data

b)

A device that only outputs information

c)

An electronic device that takes in information, processes it, and gives back results

d)

A device that only follows instructions

6.

What is an input device?

a)

A tool that displays information

b)

A tool that stores information

c)

A tool that allows you to give information to the computer

d)

A tool that prints information

7.

What is the role of a processor in a computer?

a)

It connects all the components together.

b)

It performs calculations and solves problems.

c)

It receives information from the computer.

d)

It is a core component essential for the system to function.

8.

Which of the following is an example of an output device?

a)

Keyboard

b)

USB drive

c)

Monitor

d)

Mouse

9.

What does CPU stand for?

a)

Central Processing Unit

b)

Computer Peripheral Unit

c)

Core Processing Unit

d)

Central Peripheral Unit

10.

What is a peripheral device?

a)

A core component essential for the system to function

b)

A device that performs calculations

c)

Any output or input device that connects to the computer

d)

The brain of the computer

11.

What is a programming language?

a)

A set of rules for writing code

b)

A tool for receiving information from the computer

c)

A set of instructions for telling a computer how to perform a task

d)

A process of finding and fixing errors

12.

What is debugging?

a)

Writing code in a programming language

b)

Finding and fixing errors in a set of instructions or code

c)

Defining rules for how code must be written

d)

Operating independently and making decisions

13.

What is an autonomous robot?

a)

A robot that requires human control

b)

A robot that can operate independently

c)

A robot that only follows pre-set instructions

d)

A robot that cannot adapt to changing environments

14.

What is a non-autonomous robot?

a)

Operates without direct human control

b)

Requires direct human control

c)

Can think independently

d)

Functions without any commands

15.

In pair programming, who is the navigator?

a)

The person who writes the code

b)

The person who gives instructions

c)

The person who tests the program

d)

The person who manages the project

16.

What is pseudocode?

a)

A programming language

b)

A way to plan a program by writing its steps in plain English

c)

A type of robot behavior

d)

A debugging tool

17.

What defines a complex behavior in robotics?

a)

A single, simple task

b)

A combination of simple tasks

c)

An error in the system

d)

A task that requires no human input

18.

What is decomposition in problem-solving?

a)

Combining multiple solutions into one

b)

Breaking down a complex problem into smaller, more manageable parts

c)

Ignoring the problem entirely

d)

Solving the problem in one step

19.

What is the coordinate of Tracy's starting position in the grid world?

a)

A) (0, 0)

b)

B) (200, 200)

c)

C) (-200, -200)

d)

D) (100, 100)

20.

Where does Tracy always start in the grid world?

a)

At the (0,0) coordinate in the bottom left hand corner of the canvas

b)
  1. At the (-200,-200) coordinate in the bottom left hand corner of the canvas

c)

At the (0,0) coordinate in the middle of the canvas

d)
  1. At the (-200,-200) coordinate in the middle of the canvas

21.

What are the dimensions of Tracy’s world?

a)
  1. 200 pixels x 200 pixels

b)

400 pixels x 200 pixels

c)

400 pixels x 400 pixels

d)

200 pixels x 400 pixels

22.

How far does Tracy need to move from the starting position to reach the end of the right side of the canvas?

a)

50 pixels

b)

100 pixels

c)

200 pixels

d)

400 pixels

23.

If you want Tracy to move forward 100 pixels without making a line, what set of commands should you write?

a)

penup()

  forward(100)


b)

forward(100)

penup()


c)

penup(100)

d)

forward(-100)

24.

What is the first step in drawing a square with sides of length 50 in the Tracy programming language?

a)

 Move Tracy forward 50 units

b)

Turn Tracy left 90 degrees

c)

 Turn Tracy right 90 degrees

d)

Move Tracy backward 50 units

25.

Why does the programmer use the "pen up" command before moving Tracy to draw the y-axis?

a)

To make Tracy draw a dotted line

b)

To prevent Tracy from leaving a trail while moving

c)

 To change the color of Tracy's line

d)

To make Tracy move faster

26.

Tracy always starts facing which direction?

a)

North

b)

South

c)

East

d)

West

27.

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)

A only

b)

A and C

c)

A, B, and C

d)

A, B, C, and D

28.

 What is the main benefit of using a 'for loop' in coding?

a)

 It allows you to copy and paste code more efficiently

b)

 It helps you create more complex programs

c)

 It makes your code shorter and easier to change

d)

 It lets you use different programming languages

29.

How does the color recognition feature in the code editor help programmers?

a)

 It helps them identify errors in their code

b)

 It makes the code look more visually appealing

c)

 It reminds them of the correct syntax for Python commands

d)

 It allows them to change the color of their code

30.

What is the purpose of the 'Documents' tab in the code editor?

a)

 It provides a list of all the programs you have created

b)

 It allows you to save your code to a file

c)

It offers helpful information about different coding commands

d)

 It lets you share your code with other programmers

31.

Which of the following is NOT a reason for loops are useful when writing code?

a)
  1. Loops help us write the same program with fewer lines of code

b)

Loops let us make shapes of multiple sizes

c)
  1. Loops make it easier to alter code once it’s written

d)
  1. Loops make our code easier to read

32.

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?

a)
  1. 4 times

b)

8 times

c)

10 times

d)
  1. 50 times

33.

What command can be used to move Tracy directly to a specific location on the grid without changing her facing direction?

a)

Forward

b)

Left

c)

Right

d)

Setposition

34.

What is the significance of the `penup()' command before using the `setposition()` command?

a)

It prevents Tracy from drawing a line while moving to the new position

b)

It changes Tracy's facing direction

c)

It increases Tracy's drawing speed

d)

It sets the starting point for a loop

35.

The setposition() command moves Tracy to a coordinate and:

a)
  1. turns her to face left

b)

does not turn her

c)

turns her to face up

d)

turns her to face down

36.

Why are comments important for understanding code, even if they don't affect how the code runs?

a)
  1. Comments help the computer understand the code better

b)

Comments make the code look more organized and professional

c)

Comments explain what the code does, making it easier for others to understand

d)

Comments are only important for teachers to understand the code

37.

 What is the difference between inline comments and multi-line comments in Python?

a)

 Inline comments are used for short explanations, while multi-line comments are for longer explanations

b)

Inline comments are written in English, while multi-line comments are written in Python

c)

Inline comments are understood by the computer, while multi-line comments are understood by people

d)

There is no difference between inline comments and multi-line comments

38.

How do you write a multi-line comment in Python?

a)

 Start with a hashtag (#) and write your comment on the next line

b)

Start with three quotation marks (''') and end with three quotation marks (''')

c)

Start with a forward slash (/) and end with an asterisk (*)

d)

 Start with an asterisk (*) and end with a forward slash (/)

39.

Comments are:

a)

Written for humans to read and understand

b)

Only needed when a program is over 50 lines

c)
  1. Commands performed by the computer

d)
  1. Always blue when Python recognizes them

40.

What symbol is used at the beginning of an in-line comment?

a)
  1. "

b)

!

c)

#

d)

:

41.

Why is it important to use underscores in function names?

a)

Underscores help the computer understand the code better, making it easier to read

b)

Underscores make the code look more professional

c)

Underscores are used instead of spaces to help separate words in a function name, making it easier to read

d)

Underscores are required by the Python programming language

42.

What is the main reason why starting a function name with a number is a bad idea?

a)

 It makes the code harder to read

b)

Because the teacher said so

c)

 It's against the rules of good programming practice

d)

 It's not allowed in Python

43.

What is a good example of a function name that tells us what it's used for?

a)

my_function

b)

Radius

c)

draw_3_circles

d)

Draw_3_squares

44.

If I am creating a function that is going to draw 2 squares, which of the following would be the BEST name option?

a)
  1. Draw_2_Squares

b)
  1. draw_squares

c)
  1. draw_shapes

d)
  1. 2_squares

45.

Why are functions helpful for programmers?

a)

 Functions make code shorter and easier to understand

b)

 Functions are only used for debugging code

c)

 Functions require writing more lines of code to perform the same task

d)

Functions prevent the use of variables in a program

46.

 What command can be used to change the thickness of Tracy's lines?

a)

color

b)

pensize

c)

begin_fill

d)

end_fill

47.

How many degrees does Tracy need to turn to create an octagon with eight equal sides?

a)

360 degrees

b)

180 degrees

c)

45 degrees

d)

90 degrees

48.

What is the purpose of the `extent` value in the `circle` command?

a)

It determines the number of points used to draw the circle

b)

It controls the color of the circle

c)

 It specifies the number of degrees of the circle to draw

d)

It sets the thickness of the circle's outline

49.

How would I change Tracy’s trail to a yellow line with a thickness of 10 pixels?

a)

Color(Yellow)

thickness(10)

b)

color(“yellow”)  

pensize(10)

c)

color yellow()

pensize(10)

d)

color yellow():

pensize(10)

50.

What is true of Tracy’s color command?

a)
  1. You can only use hex color codes

b)
  1. There are 10 different colors that Tracy knows

c)

The color name must have underscores between words (ex: light_blue)

d)
  1. The color name must be in quotation marks

51.

What is the correct way to draw a circle that is filled in?

a)

begin_fill()   

circle(20)

end_fill()

b)

circle(20)

begin_fill()

end_fill()

c)

circle(begin_fill, 20, end_fill)

d)

circle(20)

end_fill()

52.

Why is troubleshooting important in engineering?

a)

It minimizes testing time

b)

It is the main process for improving the robot’s functionality

c)

It ensures no revisions are needed in the journal

d)

It replaces coding altogether

53.

What is the definition of troubleshooting?

a)

Writing detailed pseudocode to plan a program

b)

Breaking down a complex problem into smaller parts

c)

Tracing and correcting faults in a mechanical or electronic system

d)

Documenting the steps of a completed project

54.

Which sentence is true about complex and simple behaviors?

a)

Complex behaviors and simple behaviors are unrelated

b)

Complex behaviors are always more important than simple behaviors

c)

Complex behaviors and simple behaviors exist on a spectrum where some are more complex than others and vice versa

55.

What is one benefit of decomposition in computer programming?

a)

To combine multiple tasks into one large problem for simplicity

b)

To test the entire program at once without breaking it into parts

c)

By dividing a large task into smaller pieces, it becomes easier to manage and tackle each part separately

d)

To focus on only the most complex parts of a task

56.

Which of the following is an example of an input device?  

a)

Printer

b)

Monitor

c)

Keyboard

d)

Speaker

57.

Which of the following is NOT an output device?  

a)

Monitor

b)

Speakers

c)

Printer

d)

Mouse

58.

What is an output device?

a)

A tool that allows you to input data into the computer, such as a keyboard or mouse.

b)

A tool that allows you to receive information from the computer, such as a monitor or printer.

c)

A tool that stores information for the computer, like a hard drive or USB.

d)

A tool that processes information inside the computer, such as the CPU.

59.

Which of the following best describes a peripheral device?

a)

A core component of a computer that is essential for the system to function, such as the CPU or motherboard.

b)

A device that connects to the computer to extend its functionality, such as a USB drive, monitor, or mouse.

c)

A component that processes data within the computer, like the RAM or power supply.

d)

A device that stores information permanently, such as a hard drive or SSD.

60.

Which of the following best describes a non-peripheral device?

a)

core component of a computer that is essential for the system to function, such as the CPU or motherboard.

b)

A device that connects to the computer to extend its functionality, such as a webcam or printer.

c)

A tool used to input data into the computer, like a keyboard or mouse.

d)

A device that allows you to receive information from the computer, such as a monitor or speaker.

61.

The CPU The brain of the computer that connects everything together

a)

True

b)

False

62.

A processor is one part of the computer that performs calculations and solves problems.

a)

True

b)

False

63.

Suppose you write a function. How many times can you call the function in your code?

a)

As many times as you like

b)

Not more than the number of commands the function holds

c)

It depends on the function

d)

Once

64.

Which of the statements below is true about indentation in Python?

a)

Indentation only matters in for loops. Then, everything must be indented one level.

b)

Indentation never matters in Python. You can align your code any way you like, but indentation makes your code easier to read.

c)

Indentation always matters in Python. Every statement must be aligned correctly.

d)

Indentation only matters in functions. Then, everything must be indented one level.

65.

Which of the following is NOT a purpose of functions?

a)

Functions allow programmers to use more descriptive names in programs.

b)

Functions help group statements together to make code more readable.

c)

Functions help programmers repeat commands a fixed number of times.

d)

Functions allow programmers to reuse code.

66.

What is the difference between defining and calling a function?

a)

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.

b)

There is no difference.

c)

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.

d)

Defining a function must be done each time you want to use the function. Calling a function can only happen once in your code.

67.

What shape will be drawn with the following command?
circle(50, 360, 3)

a)

A circle

b)

A hexagon

c)

A triangle

d)

A diamond

68.

What is syntax in programming?

a)

The process of debugging a program to fix errors.

b)

The set of rules that defines how code must be written, such as correct use of parentheses and capitalization.

c)

The visual appearance of the code, including colors and formatting.

d)

The tools used to run a program and check for logic errors.

69.

What is a programming language?

a)

A tool that allows computers to generate random tasks on their own.

b)

A set of instructions that programmers use to tell a computer how to perform a task.

c)

The hardware component responsible for executing computer tasks.

d)

A device that helps translate human language into computer signals.

70.

What is pair programming?

a)

A method where one programmer writes the code while the computer generates instructions automatically.

b)

A collaborative programming approach where two people work together, typically with one giving instructions (the “navigator”) and the other executing them (the “driver”).

c)

A programming style where two computers are connected to execute the same task simultaneously.

d)

A team-based approach where everyone writes code independently and merges it later.