wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Digital Literacy Chapter 14 Review

Total questions: 51

Worksheet time: 51mins

Name
Class
Date
1.

Which of the following are true regarding pseudocode? (Select two.)

a)

It is a set of steps, rules, and instructions used to solve a problem.

b)

It is a line-by-line description of what your program needs to do.

c)

It is the process of translating a program design into code.

d)

It is not a programming language.

e)

It contains diagrams of the processes to be included in the program.

2.

What is an argument called when you are defining a function?

a)

Process

b)

Argument

c)

Variable

d)

Parameter

3.

Which of the following BEST describes a for loop?

a)

Repeats and executes a block of code a specific number of times.

b)

Uses the equality operator (==) to test the value.

c)

Continues to run a block of code until a certain condition is met.

d)

Runs code associated with a condition that is true.

4.

Which of the following programming languages runs the fastest?

a)

Assembly

b)

Interpreted

c)

Runtime engines

d)

Compiled

5.

Which of the following BEST describes an algorithm?

a)

A list of instructions or rules designed to complete tasks or solve specific problems.

b)

An error or defect in a software program that causes the program to not run properly.

c)

Something that makes it easier for humans to read and write computer instructions.

d)

A command that directs a computer to repeat the same instructions over and over until a certain condition is reached.

6.

Which of the following is used to instruct a computer to test a variable to see if it is equal to a certain value?

a)

A Boolean condition

b)

Equality operator

c)

Assignment operator

d)

Code statements

7.

Which of the following BEST describes debugging?

a)

The process of translating the program design into code form.

b)

The process of removing or hiding all irrelevant data.

c)

The process of finding and fixing errors in a computer program.

d)

The process that allows programmers to get to working solutions.

8.

Which language are top-end video games generally written in?

a)

Assembly language

b)

Compiled language

c)

Interpreted language

d)

Machine language

9.

Which of the following are used for code blocks when programming in JavaScript?

a)

{ }

b)

[ ]

c)

( )

d)

" "

10.

Which of the following thinking techniques do you need to use to make sure the Getting Started guide only includes basic information?

a)

Algorithmic thinking

b)

Problem solving

c)

Abstraction

d)

Computational thinking

11.

Which relational operator is used for less than or equal to?

a)

>

b)

<=

c)

>=

d)

<

12.

Which relational operator is used for not equal to?

a)

==

b)

<=

c)

!=

d)

>=

13.

John, a programmer, has created a set of instructions to tell a computer what to do. What has he created?

a)

Flowchart

b)

Program

c)

Language

d)

Pseudocode

14.

Which of the following is a section of code that you write once and then reuse when you need?

a)

Array

b)

Variable

c)

Function

d)

Constant

15.

A software developer is writing an advanced computer game, which includes complex graphics and game routines. The developer wants to use a compiled executable programming language to improve the game's runtime performance.

Which of the following programming languages would provide this capability?

a)

JavaScript

b)

C++

c)

Ruby

d)

Python

16.

Based on the code in the image, what grade will you receive if your "studentGrade" is 86?

a)

D

b)

C

c)

B

d)

A

17.

Which of the following BEST describes a code visualizer?

a)

It allows you to look at code and learn how it works.

b)

It is an English-like notation that looks like a simple programming language.

c)

It is an easy environment to write simple programs in.

d)

It has diagrams of the workflow to be included in the program.

18.

Which relational operator is used for equal to?

a)

<=

b)

>=

c)

==

d)

!=

19.

Which logical operator would you use if either condition is considered TRUE, making the whole statement TRUE?

a)

AND

b)

NOT

c)

XOR

d)

OR

20.

Which logical operator would you use if only one of the conditions is TRUE, making the whole statement TRUE?

a)

XOR

b)

NOT

c)

OR

d)

AND

21.

Which of the following is a set of rules that determines the proper way that programmers use a programming language's keywords, characters, and commands to create instructions that a computer can execute?

a)

Coding

b)

Debugging

c)

Program

d)

Syntax

22.

Which logical operator would you use if both statements are TRUE, making the whole statement TRUE?

a)

OR

b)

AND

c)

NOT

d)

XOR

23.

Which of the following arithmetic operators are used to change the current value by 1? (Select two.)

a)

+

b)

++

c)

--

d)

/

e)

-

24.

Which of the following BEST describes a while loop?

a)

Continues to run a block of code until a certain condition is met.

b)

Uses the equality operator (==) to test the value.

c)

Repeats and executes a block of code a specific number of times.

d)

Runs code associated with a condition that is true.

25.

Which type of programming language is JavaScript an example of?

a)

Interpreted

b)

Runtime

c)

Compiled

d)

Assembly

26.

Which relational operator is used for greater than?

a)

<=

b)

<

c)

>

d)

>=

27.

The following is a single-dimensional array of text strings that includes the last names of students in a class:

["Hughes", "Menendez", "Abadi", "Chen", "Baranek"]

Which name is the third element in the array?

a)

Baranek

b)

Menendez

c)

Abadi

d)

Chen

28.

Which of the following BEST describes flowcharts?

a)

Diagrams of the workflow or processes to be included in a program.

b)

An easy-to-read description of what a computer program must do.

c)

A notation reviewed by programmers to ensure that a program's logic and structure are accurate.

d)

An English-like notation that looks like a simple programming language.

29.

Which programming languages use a runtime engine? (Select two.)

a)

Java

b)

C#

c)

Python

d)

C++

e)

PASCAL

30.

Which language type is extremely difficult for humans to understand?

a)

Compiled languages

b)

Interpreted languages

c)

Assembly language

d)

Machine language

31.

Which of the following BEST describes a variable?

a)

Useful to programmers because it makes programs more readable and easier to debug.

b)

Created in a program to store a value that can change as the program runs.

c)

A specific value in a program that doesn't change as the program runs.

d)

A classification of a value that tells the computer how the programmer intends to use the data.

32.

Which programming language is more efficient because it allows direct access to hardware?

a)

Machine language

b)

Assembly language

c)

Interpreted language

d)

Compiled language

33.

Which of the following is a value that is passed in to a command or function?

a)

Argument

b)

Boolean

c)

Array

d)

Constant

34.

Which method do programmers use to identify values or elements in an array?

a)

Two-dimensional

b)

Lists

c)

Members

d)

Index notation

35.

Which of the following BEST describes a function argument?

a)

The value(s) that a function displays to the console.

b)

The value(s) passed to the function for processing.

c)

The command value that stops function execution.

d)

The calculated value returned from a function.

36.

Which of the following programming languages (or language types) is much easier to understand, but is clumsy and difficult to program with?

a)

Assembly

b)

Runtime engines

c)

Interpreted

d)

Compiled

37.

Which of the following languages is typically used to build web apps?

a)

Assembly

b)

Runtime engines

c)

Compiled

d)

Interpreted

38.

Which of the following BEST describes coding?

a)

The process of creating instructions that direct a computer to do certain tasks.

b)

The process that allows programmers to get to working solutions.

c)

The process of finding and fixing errors in a computer program.

d)

The process of removing irrelevant data in order to reduce a problem to its essential elements.

39.

Which type of loop is illustrated in the image below?

a)

While

b)

Code

c)

Infinite

d)

For

40.

Which data type is the value 98.6 an example of?

a)

Integer

b)

Floating point

c)

Character

d)

Boolean

41.

Which of the following is included in pseudocode?

a)

Hierarchy charts

b)

Flowcharts

c)

English-like notation

d)

Programming languages

42.

Which of the following is a test to see if a value or statement is true or false?

a)

Boolean condition

b)

Code statements

c)

Equality operator

d)

Assignment operator

43.

Which of the following are compiled languages? (Select two.)

a)

C

b)

C++

c)

Ruby

d)

Python

e)

JavaScript

44.

Which of the following is the classification that tells a computer how the programmer intends to use a variable in a program?

a)

Function

b)

Algorithm

c)

Constant

d)

Data type

45.

Which type of loop repeats and executes a block of code a specific number of times?

a)

Infinite

b)

For

c)

While

d)

Code

46.

Which is solved first in the order of operations?

a)

Exponents

b)

Subtraction

c)

Multiplication

d)

Parentheses

47.

Which command or statement is a quick way to create several branches?

a)

case

b)

switch

c)

break

d)

return

48.

Which programming languages are also known as scripting languages?

a)

Machine language

b)

Compiled languages

c)

Assembly language

d)

Interpreted languages

49.

Which of the following is an essential tool for professional programmers?

a)

IDE

b)

Google Chrome

c)

Pseudocode

d)

Simple text editor

50.

Which logical operator would you use if the whole statement is not TRUE?

a)

NOT

b)

AND

c)

XOR

d)

OR

51.

Which of the following JavaScript properties returns the length of an array?

a)

length

b)

forEach()

c)

slice()

d)

from()