Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

IST - Final Review

Total questions: 58

Worksheet time: 31mins

Name
Class
Date
1.

Which of the following is an example of an Input Device?

a)

Mouse

b)

Keyboard

c)

Touch Screen

d)

All of the Above

2.

Which of the following is the role of HTML in Web Development?

a)

To provide the structure of a web page

b)

To style a web page

c)

To address and send information over the internet

d)

HTML is not related to Web Development

3.

Which of the following would be controlled by CSS in Web Development?

a)

Organizing text into lists

b)

Separating headings from paragraphs

c)

Making the text a different color

d)

Creating hyperlinks that connect one web page to another

4.

A web developer wants to make the title of the web page larger than the other text. Which of the following solutions would work?

a)

Use <h6> for the title and <h3> for the other text

b)

Use <h1> for the title and <p> for the other text

c)

Put the code style=”larger” inside the h3 tag

d)

All of the above

5.

Which element is used to create a hyperlink that connects web pages to other pages on the internet?

a)

<src>

b)

<head>

c)

<link>

d)

<a>

6.

Why is it useful to use functions when programming?

a)

They are a good way to store user input to use later in the program

b)

They make the program run faster

c)

They let you use the same code in different places without having to rewrite it

d)

They are necessary for any program to run

7.

What type of expression is created by using an IF/THEN statement?

a)

Variable

b)

Conditional

c)

Function

d)

Sprite

8.

HTML uses _____ to organize information.

a)

Tabs

b)

Tags

c)

Labels

d)

Quotes

9.
HTML stands for...
a)
Hyper Text Markup Language
b)
High Tech Marking Language
c)
High Tech Modem Language
d)
Hyper Tech Markup Lexicon
10.
<img> tag finds;
a)
finds the image located at the a URL and the src attribute and then displays it.
b)
finds the image located at the SRC in the URL attribute and then displays it.
c)
Adds a cool picture
d)
Does not work in HTML coding
11.

What does CPU stand for?

a)

Computational Unit

b)

Computer Processing Unit

c)

Central Processing Unit

d)

Command Processing Unit

12.

What is the device shown in the picture?

a)

INPUT

b)

OUTPUT

c)

MOUSE

d)

KEYBOARD

13.

The physical objects that make up the computer system:

a)

Software

b)

Storage

c)

Input

d)

Hardware

14.

Any part of your computer that has a physical structure, such as the keyboard or mouse

a)

software

b)

hard drive

c)

hardware

d)

digiware

15.

Microphone

a)

Hardware

b)

Software

c)

Peopleware

16.

Mouse

a)

Input Device

b)

Processing Device

c)

Output Device

d)

Storage Device

17.

Any device or component that receives information from a computer

a)

output

b)

input

c)

algorithm

d)

processing

18.

Why do we use functions in programming?

a)

Break down our program into smaller parts

b)

Avoid repeating code

c)

Make our program more readable

d)

All of the above

19.

What is top down design?

a)

Top down design is a way of designing your program by starting with the biggest problem and breaking it down into smaller and smaller pieces that are easier to solve.

b)

Top down design is a way that you can create designs on a computer to put on a web page

c)

Top down design is a way of designing your programs starting with the individual commands first

d)

Top down design is a way to use loops and classes to decompose the problem

20.

What is a code comment?

a)

A way to teach Karel a new word

b)

A way to give notes to the reader to explain what your code is doing

c)

A message to your teacher in code

d)

A place to write whatever you want in your code

21.

What commands does SuperKarel know that regular Karel does not?

a)

turnLeft() and jump()

b)

turnRight() and jump()

c)

turnAround() and turnRight()

d)

turnAround() and jump()

22.

What is the best way for Karel to move 10 times?

a)

move();

move();

move();

move();

move();

move();

move();

move();

move();

move();

b)

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

move();

}

c)

move(10);

d)

move10();

23.

How many times should the start function be defined in a program?

a)

0

b)

1

c)

2

d)

As often as you like

24.

Which of the following commands is a valid Karel command?

a)

move

b)

move;

c)

move();

d)

move()

25.

What makes the following command an invalid Karel command?

turnleft();

a)

It should end in a colon rather than a semicolon

b)

The l should be a capital L

c)

It should start with a capital T

d)

This command is correct

26.

Which of the following is the correct way to define a turnRight function in Karel?

a)

b)

c)

d)

27.

If Karel starts at Street 1 and Avenue 1, facing East, where will Karel be, and what direction will Karel be facing after running the following code? (Assume the world is 10x10 in size)

a)

Street 3, Avenue 1, Facing North

b)

Street 1, Avenue 4, Facing North

c)

Street 1, Avenue 3, Facing South

d)

Street 1, Avenue 3, Facing North

28.

Karel starts at Street 1 and Avenue 1, facing East. After calling the stairStep function twice, where will Karel be and what direction will Karel be facing? (assume this is a SuperKarel program and the world is 10x10 in size)

a)

Street 2, Avenue 2, Facing North

b)

Street 3, Avenue 3, Facing East

c)

Street 3, Avenue 3, Facing West

d)

Street 4, Avenue 4, Facing East

29.

In this code, how many times is the dance function called and how many times is it defined?

a)

Called 1 time, defined 1 time

b)

Called 1 time, defined 3 times

c)

Called 3 times, defined 1 time

d)

Called 3 times, defined 3 times

30.

What's wrong with this code?

a)

The go function is called twice

b)

The go function has a syntax error

c)

The go function has been defined twice

d)

go is not a command that Karel understands

31.

How many total times will Karel move in this program?

a)

1

b)

5

c)

6

d)

7

32.

What is wrong with this for loop?

A. The for loop uses commas instead of semicolons

B. It should say i++ instead of i + 1

a)

A

b)

B

c)

A and B

d)

The for loop is correct

33.

What is the proper format for a single line comment in Karel?

a)

This is a comment

b)

//This is a comment

c)

/*This is a comment

d)

This is a comment();

34.

What does the mystery function do?

a)

Karel moves until it is on a ball

b)

Karel moves once if there is no ball present

c)

Karel moves until it puts down a ball

d)

Karel check if there is no ball on the current spot and then moves once

35.

Which of the following is not a valid condition to go in an if statement for Karel?

a)

ballsPresent()

b)

frontIsClear()

c)

leftisBlocked()

d)

turnLeft()

36.

Say Karel is on a location with one tennis ball. After the following code runs, how many tennis balls will there be at that location?

a)

0

b)

1

c)

2

d)

6

37.

What condition should be used in this while loop to get Karel to pick up all the tennis balls on the current location?

a)

noBallsPresent()

b)

ballsPresent()

c)

frontIsClear()

d)

takeBall()

38.

Why does a programmer indent their code?

a)

Helps show the structure of the code

b)

Easier for other people to understand

c)

A key part of good programming style

d)

Al the above

39.

How can we teach Karel new commands

a)

For loop

b)

While loop

c)

Define a new function

d)

The start function

40.

Say you want to write a program to have Karel put down 300 tennis balls. Which control structure would you use?

a)

If statement

b)

While loop

c)

For loop

d)

Nested while loop

41.

Karel starts at Street 1, Avenue 1, facing East in a 5x5 world. What will happen after this code runs?

a)

Karel ends on street 1, avenue 3

b)

Karel ends on street 2, avenue 3

c)

This code won't run because of a syntax error

d)

Karel will crash into a wall

42.

Karel starts at Street 1, Avenue 1, facing East in a 5x5 world. What will happen after this code runs?

a)

Karel will end on Street 1, Avenue 2

b)

Karel will end on Street 1, Avenue 7

c)

This code won't run because of a syntax error

d)

Karel will crash into a wall

43.

How can we improve the following program?

a)

Break down this program into more functions

b)

Use a for loop to repeat the move command

c)

Use a while loop to repeat the move command

d)

Fix the indentation of this program

44.

In the following code below from the Cleanup Karel example, what is the purpose of If Statement #2?

a)

To move the last time

b)

To pick up the ball that is in the last spot

c)

To pick up the ball that is in the last spot, if there is one

d)

To take the ball from all of the positions that have a ball on them

45.

In the following code, what would be a good Postcondition to write?

a)

Karel is on a spot with a tennis ball facing North

b)

Karel end one spot above a tennis ball facing East

c)

Karel is on the same position but on top of a ball

d)

Karel is facing East

46.

What is the purpose of using a for loop in code?

a)

Todo something if a condition is true

b)

To do something while a condition is true

c)

To repeat something a fixed number of time

d)

To make programs run faster

47.

What is another reason we use functions?

a)

To help make things in programming more complex.

b)

to repeat code more frequently and make it harder to others to know what we are doing.

c)

To avoid repeating code and make it more readable.

d)

To help fight against galactic invaders and keep cats out of Karel's world.

48.

In the following code snippet, how many times is the turnRight function called and how many times is it defined?

a)

Called 1 time, defined 1 time

b)

Called 1 time, defined 3 times

c)

Called 3 times, defined 1 time

d)

Called 3 times, defined 3 times

49.

Which function will allow Karel to spin in circle?

a)
b)
c)
d)
50.
Which of the following is NOT one of Karel's basic commands?
a)

move( );

b)

turnLeft( );

c)

putBall( );

d)

jump( );

51.
What happens when Karel executes the 'turnLeft()' command?
a)
Karel moves one spot to the left
b)
Karel rotates 90 degrees to the left
c)
Karel turns around 180 degrees
d)
Karel picks up a ball on its left
52.
What does the 'putBall()' command do?
a)
Karel picks up a ball
b)
Karel throws a ball
c)
Karel adds a ball to its current spot
d)
Karel moves to the nearest ball
53.

What is a characteristic of Karel's world?

a)
It is circular.
b)
It has walls and boundaries.
c)
It is infinite.
d)
It changes shape.
54.

In Karel's world, what can't Karel cannot move through

a)
Walls
b)
Balls
c)
Boundaries
d)
Other Karels
55.
What term is used to describe the horizontal lines in Karel's world?
a)
Avenues
b)
Streets
c)
Rows
d)
Highways
56.
What does the command 'move()' do?
a)
Makes Karel turn left
b)

Makes Karel move forward one step in the direction he is facing

c)
Makes Karel pick up a ball
d)
Makes Karel face north
57.

Will this code put two balls in the same place and then move one place?

putBall();

move();

putBall();

a)

True

b)

False

58.

_________________ is giving the computer a set of commands.

a)

Debugging

b)

Programming

c)

the Internet

d)

Karel