wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Coding-Complex

Total questions: 50

Worksheet time: 38mins

Name
Class
Date
1.

A list of steps to finish a task.

a)

coding

b)

abstraction

c)

algorithm

d)

binary

e)

block-based programming

2.

A way of representing information using only two options.

a)

coding

b)

abstraction

c)

algorithm

d)

binary

e)

block-based programming

3.
What is a conditional?
a)
A loop
b)
A code
c)
An IF ELSE statement that tells a computer what to do in certain circumstances in your code.
d)
A monitor
4.
What is a loop?
a)
A logarithm 
b)
A part of an algorithm that is a set of instructions that repeats over and over until a condition is fulfilled.
c)
HTML
d)
A website that makes a computer do something
5.
What do we call an error in a program that stops it from working in the way it should?
a)
bug
b)
event
c)
mistake
d)
sequence
6.
Debugging is...
a)
what an exterminator does
b)
rewriting code to make it less complex
c)
finding and fixing problems in an algorithm or program
d)
a girl named Dee annoying everyone.
7.

In a certain code, SPRING is written as URTKPI. How will the word MOBILE be written in that code language?

a)

KQEFPA

b)

OMDGNC

c)

OQDKNG

d)

None of these

8.

If TRUTH is coded as SUQSTVSUGI, then the code for FALSE will be

a)

EGZBKMRDE

b)

EGZKMRTDF

c)

EGZBKMRTDF

d)

FGZBKNRTDF

9.

If BE QUICK is coded as ZC OSGAI, then the code of the last letter of the third word in the sentence I LOVE MY COUNTRY is

a)

A

b)

T

c)

U

d)

W

10.

A variable

a)

is a placeholder for a piece of information that can change.

b)

is like a bucket for holding information.

c)

can be written as letters or with longer words.

d)

all of these

11.

Which symbol means "not equal to"?

a)

==

b)

<=

c)

>=

d)

!=

12.
He was the co-founder and chairman, of  the largest PC company, Microsoft
a)
Kanye West 
b)
Steve Jobs
c)
Donald Trump
d)
Bill Gates 
13.
He is the chairman, chief executive officer, and co-founder of social networking website Facebook.
a)
Mark Zuckerberg
b)
Oprah Winfrey
c)
Donald Trump
d)
Steve Jobs 
14.

All programs are finally converted into _______________.

a)

common code

b)

media code

c)

binary code

d)

best code

15.

____________________ is a language used to build interactive websites.

a)

Python

b)

Java

c)

Javascript

d)

MATLAB

16.

WHAT IS THE CORRECT CODE TO COMPLETE THIS PROGRAM?

a)
b)
17.

WHAT HAVE YOU LEARNED IN CODING

a)

FOR LOOPS

b)

IF/ELSE STATMENTS

c)

WHILE LOOP

d)

REPEAT UNTIL LOOP

18.

WHICH OPTION IS CORRECT ?

a)
b)
19.

SOLVE

a)
b)
20.

WHAT IS A FUNCTION?

a)

A FUNCTION is a block of organized, reusable CODE that is used to perform a single, related action

b)

A FUNCTION IS A SET OF INSTRUCTION THAT CAN BE USED AGAIN AND AGAIN

21.

What are events?

a)

Events are instructions to the computer.

b)

Events are the blocks that triggers some action

c)

Events are the buttons we press for some actions

22.

Which are the Boolean Operators in Coding?

a)

AND, NOT

b)

AND,OR, NOT

c)

OR, NOT

23.

A piece of code with multiple steps that have been simplified down to one command which you can easily call over and over again.

a)

digital footprint

b)

run program

c)

abstraction

d)

function

24.

Statements that can only run under certain conditions or situations such as: if the seat is taken, then move to the next available seat.

a)

conditionals (if/then statements)

b)

variable

c)

abstractions

d)

binary

25.

The main purpose of a variable, is

a)

So you can draw circles and change colors.

b)

To have to enter code into the variable and then it will be throughout your program wherever you put the variable.

c)

So you don't have to change maybe hundreds of pieces of code, you can do it with only one change in the variable

d)

To help you find sprites.

26.

Which of these allows the user to enter text?

a)
b)
c)
d)
e)

None of these.

27.

This control is frequently used to let the user start an action.

a)
b)
c)
d)
28.

The User Interface or UI of an app refers to..

a)

One button on the screen

b)

The layout of the screen that a person interacts with

c)

The On/Off button

d)

An event

29.

text colour, background colour, X and Y position, text and font size are examples of

a)

Properties

b)

elements

c)

design

d)

app presentation

30.

Which of these could be used to display a different page?

a)
b)
c)
d)
31.

App Lab is used for?

a)

Making a Drawing

b)

a. Making a Mobile App

c)

a. Making a Web Site

32.

Which programming language is used in App Lab?

a)

Python

b)

MSW Logo

c)

Scratch

d)

JavaScript

33.

.The OnEvent block is used to

a)

Change property of elements in an app

b)

Respond to events

c)

Create a new app

34.

What Is RGB & how many shades of RGB are there?

a)

Red, Yellow, Purple (255 Shades)

b)

Red, Green, Blue (255 Shades)

c)

Red, Green, Blue (256 Shades)

d)

Red, Green, Black (256 Shades)

35.

What will be displayed?

a)

A dog

b)

A cat

c)

A rectangle

d)

Two rectangles

e)

A dog and a cat

36.

A placeholder for a piece of information that can change.

a)

variable

b)

event

c)

command

d)

sequencing

37.

Which of these is a loop?

a)

if(x<10)

b)

for( var x=0; x<10; x++)

c)

var x=10;

d)

loop(x,10;10)

38.

What is the symbol used for the INCREMENT operator in Javascript?

a)

+

b)

++

c)

=

d)

==

39.

Repeat something 10 times

a)

repeat 10

b)

for (var i=0; i<10; i++)

c)

repeat { } until 10;

d)

while (i = 10)

40.

Defining variable for the first time.

a)

Declare a Variable

b)

Variable

c)

Console

d)

readLine

41.
Why do we use loops? 
a)
It is easy to type
b)
It saves time
c)
To repeat a block of code without having to retype
d)
It is faster to create
42.

what is the __ missing in this loop


for ( ____ ; x<10; x++);

a)

set a start value for x

b)

exit the loop when x is 11

c)

start x at zero

d)

the loop is not missing code

43.

Repeat something 10 times

a)

repeat 10

b)

for (var i=0; i<10; i++)

c)

repeat { } until 10;

d)

while (i = 10)

44.

A variable is just a _____ for storing a____

a)

constant; value

b)

container; value

c)

constant; variable

d)

container; variable

45.

Which of the following are examples of variables in a video game code?

a)

character

b)

score

c)

lives

d)

map

46.

What word signals to the computer that you are about to create a variable?

a)

var

b)

con

c)

=

d)

score

47.

Order when creating variables is important. The label must appear on the ____and the value must appear on the ____

a)

left; right

b)

right; left

48.

Read the following line of code and decide what would be displayed on the screen.


var score;

score=100

write("score")

a)

the word score

b)

the value 100

49.

To Check the Mathematical condition in If block, what we use?

a)

=

b)

==

c)

!=

d)

++

50.

What is the difference between above 2 in Variables?

a)

Var x = is used to declare the variable

b)

x= is used to assign the value to variable

c)

We first declare & assign value using Var x= and then use x= during the further coding

d)

We cannot use Var x= only to assign value to the variable