wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

FGCT4023 Topic 6 - Interactivity

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What does the function hour() return?

a)

Current hour as a value from 0 to 23

b)

Current hour as a value from 1 to 12

c)

Current hour as a value of AM or PM

d)

Current hour as a value from 0 to any values

2.

What is the output from this code?

print(nf(123, 4));

a)

1234

b)

123

c)

4

d)

0123

3.

What does this code do?

float s = map(second(), 0, 60, 0, TWO_PI);

a)

Convert from a value in the range of 0 to 60 into 0 to 2 PI

b)

Map the value of second to float

c)

Convert from a value in the range of 0 to 2 PI into 0 to 60

d)

Map the value of float to second

4.

What does the function millis() do?

a)

Milliseconds since the program started

b)

The current time in hours, mins, seconds and milliseconds

c)

The frame rate of the program

d)

Calculates the number of time draw() is executed

5.

What does the function month() return?

a)

The current month as value from 1 to 12

b)

The current month as value from January to December

c)

The current month as value from 1 to any numbers

d)

The number of days within the current month

6.

What does noLoop() do?

a)

Stops Processing from continuously executing the code within draw()

b)

Causes Processing to continuously execute the code within draw()

c)

Redraw the code within draw() once

d)

Exits Processing

7.

What is the function that can be used to read a file?

a)

readFile()

b)

loadStrings()

c)

saveStrings()

d)

file()

8.

What does the function noCursor() do?

a)

Sets the cursor to a predefined symbol

b)

Makes the cursor visible

c)

Hides the cursor from view

d)

Sets the number of cursor that should appear in the program

9.

What is the difference of print() and text()?

a)

text() draws text to the screen

b)

text() displays text to the console area

c)

print() draws text to the screen

d)

text() and print() are the same function

10.

What does the function printArray() do?

a)

Displays the array data on the windows

b)

Combines variables into an array

c)

Checks if a variable is an array

d)

Displays the array data on the console area