wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Coding Basics

Total questions: 46

Worksheet time: 23mins

Name
Class
Date
1.

In Pencil Code, what will happen if you enter the code rt 90

a)

the turtle will turn in the opposite direction

b)

the turtle will turn 90 degrees

c)

the turtle will become red

d)

nothing, because rt is not a command

2.

A name that refers to a value. Stores a piece of data, and gives it a specific name.

a)

declaration

b)

variable

c)

operator

d)

source

3.

In Pencil Code, where can you find the command write?

a)

Text

b)

Operators

c)

Move

d)

Snippets

4.

Any finite sequence of characters (i.e., letters, numerals, symbols and punctuation marks).

a)

String

b)

Commenting

c)

Casting

d)

Boolean

5.

A list of step by step instructions that can be performed with or without a computer.

a)

Code

b)

Algorithm

c)

Binary

d)

Processing

6.

To carry out an instruction or program.

a)

run

b)

execute

c)

compute

d)

calculate

7.

In base 2, what number does 10 represent?

a)

2

b)

7

c)

3

d)

10

8.

Which symbol is used to indicate a comment?

a)

&

b)

@

c)

=

d)

#

9.

One or more commands or algorithms designed to be carried out by a computer. The created text or blocks of the program.

a)

Code

b)

Command

c)

Operation

d)

Memory

10.

In base 2, what number does the following represent: 11001

a)

32

b)

53

c)

29

d)

25

11.

In base 2, what number does the following represent: 111100

a)

120

b)

86

c)

118

d)

60

12.

In base 2, what number does the following represent: 101

a)

3

b)

2

c)

7

d)

5

13.

The study of using the power of computers to solve problems.

a)

Computer programming

b)

Computer knowledge

c)

Computer science

d)

Coding

14.

In Pencil Code, where can you find the pen red?

a)

move

b)

sprites

c)

art

d)

color

15.

A set of rules that defines the combinations of symbols that are considered to be a correctly structured document or fragment in that language.

a)

code

b)

algorithm

c)

syntax

d)

shortcut

16.

True or False: Computers think in the language of Binary

a)

True

b)

False

17.

An instruction for the computer. Many commands, together, makeup algorithms and computer programs.

a)

execute

b)

command

c)

abstraction

d)

processing

18.

Anything that comes out of a computer. (ex. Display to monitor, sound, printing, etc.)

a)

output

b)

input

c)

data entry

d)

coding

19.

To break a problem down into smaller pieces.

a)

decompose

b)

code

c)

command

d)

abstracting

20.

A detailed, yet readable, description of what a computer program or algorithm must do, expressed in languages that humans use naturally rather than in a programming language.

a)

Pseudocode

b)

Decomposition

c)

Computation

d)

Camel Casting

21.

How would you read the following: score = 250

a)

the score is 250

b)

2

c)

250 is the score

d)

score gets the value 250

22.

A bit is

a)

strings of X's and O's

b)

a small piece of an apple

c)

simple pieces of information made up of 1's and 0's used in programming language.

d)

none of the above

23.

What is the output of the following line of code:

write "5" + "5"

a)

"10"

b)

"5"

c)

55

d)

25

24.

Information that can be collected. Often, quantities, characters, or symbols that are the inputs and outputs of computer programs.

a)

symbols

b)

command

c)

codes

d)

data

25.

What is the difference in Modular Division and Regular Division?

a)

it only returns the remainder

b)

there is no difference

c)

it doubles the answer

d)

it's always 0

26.

True or False:

The 1 in binary represents Off.

a)

True

b)

False

27.

To create a successful computer program, how many computational thinking techniques are required?

a)

15

b)

3

c)

4

d)

2

28.

Which of the following is the symbol for an assignment?

a)

&

b)

( )

c)

=

d)

+

29.

In base 2, what number does the following represent:

11111111

a)

258

b)

305

c)

125

d)

255

30.

The data type Boolean, has two possible outputs, they are:

a)

on or off

b)

true or false

c)

in or out

d)

up or down

31.

A collection of instructions (algorithms) that performs a specific task when executed by a computer.

a)

syntax

b)

processing

c)

computer program

d)

event

32.

Pulling out specific differences to make one solution work for multiple problems.

a)

abstraction

b)

ergonomics

c)

adjusting

d)

decomposing

33.

Which is an example of a string?

a)

2+5

b)

"cow"

c)

-5

d)

moo

34.

According to base 2, what number is missing?

1 2 4 8 16 64 128

a)

6

b)

10

c)

32

d)

72

35.

True or False:

Computer Programming, often simply called programming, is the process of developing executable computer programs that will do everything from making everyday task easier to complex computations.

a)

True

b)

False

36.

Data to be entered into a computer for processing (commands or info that you type in).

a)

input

b)

data

c)

output

d)

execution

37.

How many bits does ASCII use?

a)

5

b)

10

c)

2

d)

7

38.

A byte is

a)

a group of dots

b)

a group of 8 bits

c)

a group of pixels

d)

none of the above

39.

Which of the following is NOT one of the three main types of programming languages?

a)

Machine

b)

Computer

c)

High Level

d)

Assembly

40.

What does ### represent?

a)

a series of numbers

b)

the end of the code

c)

multi-line comment

d)

single line comment

41.

What are the four components of Computational Thinking?

a)

Decomposition, Abstraction, Pattern Matching, Algorithm

b)

Decomposition, Algorithm, Programming, Computing

c)

Abstraction, Critical Thinking, Algorithm

d)

None of the Above

42.

Which of the following is a representation of the data type number:

a)

34

b)

-50

c)

3

d)

all of the above

43.

The computer program reads from:

a)

left to right

b)

top to bottom

c)

side to side

d)

up and down

44.

True or False:

The 0 in binary represents Off.

a)

True

b)

False

45.

ACSII stands for

a)

Allegiance of Simple Computer Interchange

b)

American Society of Computer Interchange International

c)

American Standard Code for Information Interchange

d)

All Simple Computer Initiate Intelligence

46.

A generic data type that represents numerical values.

(ex. integers, floats, and doubles)

a)

data

b)

number

c)

variable

d)

boolean