NEW
Font size
WorksheetsFGCT4023 Topic 6 - Interactivity
Total questions: 10
Worksheet time: 5mins
What does the function hour() return?
Current hour as a value from 0 to 23
Current hour as a value from 1 to 12
Current hour as a value of AM or PM
Current hour as a value from 0 to any values
What is the output from this code?
print(nf(123, 4));
1234
123
4
0123
What does this code do?
float s = map(second(), 0, 60, 0, TWO_PI);
Convert from a value in the range of 0 to 60 into 0 to 2 PI
Map the value of second to float
Convert from a value in the range of 0 to 2 PI into 0 to 60
Map the value of float to second
What does the function millis() do?
Milliseconds since the program started
The current time in hours, mins, seconds and milliseconds
The frame rate of the program
Calculates the number of time draw() is executed
What does the function month() return?
The current month as value from 1 to 12
The current month as value from January to December
The current month as value from 1 to any numbers
The number of days within the current month
What does noLoop() do?
Stops Processing from continuously executing the code within draw()
Causes Processing to continuously execute the code within draw()
Redraw the code within draw() once
Exits Processing
What is the function that can be used to read a file?
readFile()
loadStrings()
saveStrings()
file()
What does the function noCursor() do?
Sets the cursor to a predefined symbol
Makes the cursor visible
Hides the cursor from view
Sets the number of cursor that should appear in the program
What is the difference of print() and text()?
text() draws text to the screen
text() displays text to the console area
print() draws text to the screen
text() and print() are the same function
What does the function printArray() do?
Displays the array data on the windows
Combines variables into an array
Checks if a variable is an array
Displays the array data on the console area
