Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Unit 1- Intro to Computer Science Review

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Many tasks, large and small, can be solved by performing a specific set of actions and making a particular set of decisions in very precise ways. What are these sets of actions and decisions called?

a)

Algorithms

b)

Building Blocks

c)

Source Code

d)

Machine Language

2.

Which of the following types of languages is optimized for machine processing and may be written and expressed as a series of binary digits (e.g., ones and zeros), making it difficult for humans to read and write?

a)

Pseudocode

b)

Natural Language

c)

High-Level Language

d)

Low-Level Language

3.

Which of the following statements about high-level programming languages when compared to low-level programming languages is true?

a)

High-level programming languages provide programmers with more abstractions but are more difficult for people to read

b)

High-level programming languages provide programmers with more abstractions and are easier for people to read

c)

High-level programming languages provide programmers with less abstractions and are more difficult for people to read

d)

High-level programming languages provide programmers with less abstractions but are easier for people to read

4.

Why is there a need for more than one programming language?

a)

Some programming languages are designed for specific uses and are best used in those situations.

b)

Some programming languages cannot implement needed algorithms

c)

Some programming languages cannot be compiled and therefore cannot run efficiently

d)

There is not real need, just the preference of those who create new languages.

5.

Which of the following is the best description of a low-level language?

a)

A language that is easier for humans to program.

b)

A language that is easier for humans to debug.

c)

A language that is easier for a computer to interpret but difficult for humans to interpret.

d)

A language that is built for beginner programmers.

6.

Which of the following would result in a computing innovation that is bias?

a)

Making sure the development team includes people with different social and ethnic backgrounds to ensure diverse perspectives.

b)

Making sure that during the testing phase, people of all socioeconomic backgrounds are involved to ensure that it can be used by everyone who might be interested in it.

c)

Making sure that the development team includes people from similar backgrounds, to ensure that the product has consistency.

d)

Making sure that during the testing phase, you include people who would use the computing innovation so that the product is properly tested.

7.

The following algorithm was developed by a student in class: Step 1: Create a variable called x and give it the value 5 Step 2: Take x and multiply it by 2 and assign that new value to x Step 3: Take x and add 3 to it and assign that new value to x Step 4: Repeat steps 2 and 3 What is the value of x after the algorithm is executed?

a)

10

b)

13

c)

26

d)

29

8.

Lucas is part of the planning committee for the local 4H fair. He wants to develop an app to help communicate the fair events with the guests. Which of the following would be the best first step for Lucas to take in developing his app?

a)

Develop all of the major algorithms which will be required for the app

b)

Write thorough documentation explaining how the code for the app works

c)

Write some sample code to understand how the app might work

d)

Find out from the potential visitors what information and format they think should be used for the app

9.

What of the following pseudocodes correctly identifies the maximum number between two numbers?

a)

Step 1: Start Step 2: Declare variables n1, n2 Step 3: If n1 is greater than n2, Display "n1 is Maximum" else Display "n2 is Maximum" Step 4: Stop

b)

Step 1: Start Step 2: Declare variables n1, n2 Step 3: If n1 is less than n2, Display "n1 is Maximum" else Display "n2 is Maximum" Step 4: Stop

c)

Step 1: Start Step 2: Declare variables n1, n2 Step 3: Repeat n1 is greater than n2, Display "n1 is Maximum" While Display "n2 is Maximum" Step 4: Stop

d)

Step 1: Start Step 2: Declare variables n1, n2 Step 3: Repeat n1 is less than n2, Display "n1 is Maximum" While Display "n2 is Maximum" Step 4: Stop

10.

Which of the following is an advantage that block-based programming languages have over text-based programming languages?

a)

Block-based programming languages do not require the programmer to worry about syntax, capitalization, or punctuation.

b)

Programs written in block-based programming languages do not require debugging.

c)

Block-based programming languages allow programmers to write programs in English and other natural languages.

d)

Block-based programming languages offer programmers more detailed control over lower-level functionality when writing a program.

11.

Which of the following traits is NOT necessary for effective collaboration?

a)

Conflict resolution and negotiation

b)

Proximity

c)

Consensus building

d)

Communication

12.

What is a code segment?

a)

A collection of program statements that perform a specific task when run by a computer

b)

How software behaves and how it functions

c)

A collection of program statements that are part of a program

d)

A computing innovation that solves a problem

13.

The algorithm below simulates rolling a regular 6-sided die twice and then finding if the sum of the numbers is an even or odd number. Step 1: Using a random number generator, get a value between 1 and 6 Step 2: Repeat step 1 Step 3: Add the two numbers together and store it in a variable called "sum" Step 4: Divide the "sum" by 2 and store it in a variable called "result" What conclusion can be made in determining if the number is even or odd from the algorithm?

a)

If "result" is a whole number, the sum is an even number.

b)

If "result" is a decimal, the sum is an even number.

c)

If "sum" is a whole number, one of the dice was odd and one was even.

d)

If "sum" is a decimal, one of the dice was odd and one was even.

14.

What is the structure and organization that modern computational devices are based on?

a)

Turing Machine

b)

Quantum Computing

c)

Boolean Logic

d)

Von Neumann Architecture

15.

What is the purpose of the control unit in the CPU?

a)

Store data and instructions

b)

Render and display graphics

c)

Manage the execution of instructions

d)

Perform mathematical and logical operations

16.

Scratch is a Programming Language

a)

True

b)

False

17.
What is the only thing that computers understand?
a)
Machine Code
b)
Low Level Languages
c)
High Level Languages
d)
Algorithms
18.

Which of the following is a characteristic of a compiled language?

a)

It is executed line by line at runtime.

b)

It is translated into machine code before execution.

c)

It is easier to debug than interpreted languages.

d)

It does not require a compiler to run.

19.

What is the primary purpose of an Integrated Development Environment (IDE)?

a)

To compile code into machine language.

b)

To provide a platform for writing, testing, and debugging code.

c)

To execute code directly without any translation.

d)

To convert high-level language into low-level language.

20.

Which of the following best describes an algorithm?

a)

A step-by-step procedure for solving a problem or accomplishing a task.

b)

A high-level programming language used for web development.

c)

A type of data structure used to store information.

d)

A software tool used to manage databases.