
FGCT4023 Topic 6 - Interactivity
Authored by Adila Nordin
Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output from this code?
print(nf(123, 4));
1234
123
4
0123
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the function that can be used to read a file?
readFile()
loadStrings()
saveStrings()
file()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?