wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Software Tech. MidTerm

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

Which function will turn Karel around?

a)

function turnAround()

turnLeft();

turnLeft();

turnLeft();

}

b)

function turnAround(){

turnLeft();

turnLeft();

turnLeft();

}

c)

function turnAround(){

turnLeft();

turnLeft();

turnleft();

}

2.

How do we get a function to run in our program?

a)

We write it when we want to use it in a program

b)

We call it when we want to use it in a program

c)

We can set a time for it to run

d)

It runs automatically

3.

Which is the correct code?

a)

turnLeft();

putBall();

move():

putBall();

move();

b)

turnLeft();

putBall()

move()

putBall:

move();

c)

turnLeft();

putBall();

move():

putall:

move();

4.

Karel is stood at position (dot) 0,0. What position is the dot 2 places after Karel and 1 up?

a)

2,1

b)

1,2

c)

0,2

d)

2,0

5.

I want Karel to move, drop a ball and move once again. Which is the correct code?

a)

function dropball(){

move();

putball();

move();

}

b)

function dropball(){

putBall);

putBall();

move();

}

c)

function dropball(){

move();

putBall();

move();

}

6.

What is the least number of times Karel needs to move forward (East) to complete this program? she starts at 0,0

a)

2

b)

3

c)

4

d)

5

7.

Why do we use functions in a program?

a)

Easier to find bugs/problems in a program

b)

The program reads functions at a faster pace

c)

Functions take less time to write

d)

Organises the program more efficiently

8.

Which is the correct program?

a)

move();

turnLeft();

putBall();

move();

b)

move();

putBall();

move(0;

turnLeft()

c)

move();

putBall();

move();

turnLeft();

9.

2 of the functions have bugs in them...which is correct

a)

function move(){

turnLeft();

turnLeft();

turnLeft();

}

b)

function move(){

turnLeft();

turnLeft();

turnLeft();

c)

function move(){

turnleft();

turnLeft();

turnLeft();

}

10.

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

move();

How many times will Karel move?

a)

5

b)

6

c)

7

d)

8

11.

Why do we use a for loop in programming

a)

Easier to read

b)

It's more efficient

c)

To repeat an action a number of times

d)

It helps with sequencing

12.

Which code is correct? Karel starts at 0,0.

a)

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

move();

}

putBall();

b)

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

move();

}

putBall();

c)

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

move();

}

putBall();

13.

Which of the following is a basic rule for naming functions

a)

Using single letters like X, Y, or Z is a good name

b)

Names should start with a number

c)

Multiple words in a name should be separated by spaces

d)

The name should describe what the function does

14.

For the function:

def turn_around():

turn_left()

turn_left()

We tell Karel to perform the function by the following command:

a)

my turn_around():

b)

turn_around():

c)

turn_left():

d)

run turn_around():

15.

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

16.
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)
All of the above
17.

What do you call it when you don't use spaces but instead capitalize each word in a Java command?

a)

camel case

b)

cow case

c)

kookaburra case

d)

cucumber case

18.
Click on the screw bit
a)
b)
c)
d)
19.
Click on the drill bit
a)
b)
c)
d)
20.
Ventilation when welding is important, why?
a)
Welding is a smelly job.
b)
Because of the bright light.
c)
There is a lot of electrical current flowing.
d)
Welding can produce harmful toxic fumes dangerous to humans.
21.
What is used to complete the welding circuit?
a)
Mars clamp
b)
Vice clamp
c)
G-clamp
d)
(Ground) Earth clamp
22.
What kind of Screwdriver is this?
a)
Pin head
b)
Phillips head
c)
Flat head
d)
Tri-wing
23.
What does a welder do?
a)
Works with electricity
b)
Works on plumbing
c)
Works with wood
d)
Bonds pieces of metal together
24.

Tape measure

a)
b)
c)
25.

What item of machinery is this?

a)

Planer Thicknesser

b)

Band Saw

c)

Table Saw

d)

Router

26.

What is the power tool in the image?

a)

Planer

b)

Router

c)

Sander

d)

Power Drill

27.

Which among the image is the CLAW HAMMER

a)
b)
c)
d)
28.

Which among the tools is the PowerDrill?

a)
b)
c)
d)
29.

Which among the tools are the Mallets?

a)
b)
c)
d)
30.

identify tool / machine

a)

belt sander

b)

snow cone machine

c)

bender

d)

cnc table

31.

identify tool / machine

a)

band saw

b)

fork

c)

welpers

d)

adjustable wrench

32.

identify tool / machine

a)

vice clamp

b)

fuel pump

c)

sanding rod

d)

angle grinder

33.
Measure this line using inches.
a)
5 in.
b)
5 ¼ in.
c)
5 ½ in.
d)
5 ¾ in.
34.

What is the length of the black line?

a)

2382\frac{3}{8} inches

b)

22 inches

c)

2122\frac{1}{2} inches

d)

33 inches

35.

This is made of metal used for fastening.

a)

nail

b)

claw hammer

c)

ripsaw

36.

Identify this tool.

a)

Portable Circular Saw

b)

Cordless Drill

c)

Hack Saw

d)

Circular Saw Blade

37.

Name this tool

a)

Disc Sander

b)

Spindle Grinder

c)

Pedestal Grinder

d)

Drill Press

38.

Name this tool

a)

Disc Sander

b)

Spindle Grinder

c)

Pedestal Grinder

d)

Miter Saw

39.

NAME THE TOOL

a)

NEEDLE NOSE PLIERS

b)

OPEN END WRENCH

c)

ADJUSTABLE WRENCH

d)

LOCKING PLIERS

40.

a)

phillips (cross) screwdriver

b)

stanley (straight) screwdriver

c)

standard (flathead) screwdriver

d)

paint can opener