FGCT4023 Topic 5 - Colour & Text

FGCT4023 Topic 5 - Colour & Text

University

10 Qs

quiz-placeholder

Similar activities

GDSC Android Bootcamp [Kotlin Quiz]

GDSC Android Bootcamp [Kotlin Quiz]

University

10 Qs

Soal SKD

Soal SKD

University - Professional Development

10 Qs

Hackclub

Hackclub

University

14 Qs

2.4 - 2.6

2.4 - 2.6

University

15 Qs

Operating System -Quiz-1

Operating System -Quiz-1

University

10 Qs

Workshop_1

Workshop_1

University

11 Qs

Web-II-Loop and Function

Web-II-Loop and Function

University

10 Qs

Abhyudaya coding class -  Grade 7

Abhyudaya coding class - Grade 7

6th Grade - University

10 Qs

FGCT4023 Topic 5 - Colour & Text

FGCT4023 Topic 5 - Colour & Text

Assessment

Quiz

Computers

University

Medium

Created by

Adila Nordin

Used 5+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of this code?

String one = "Hello";

String two = "Hello";

println(one.equals(two));

one.equals(two)

Hello

Hello
Hello

true

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code?

String one = "Hello";
println(one.toUpperCase());

HELLO

Hello

one.toUpperCase()

hello

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does this code do?

textSize(random(12, 36));

Generate a random text size of 12 to 35

Generate a random location of where the text is placed on the canvas

Generate a random font for the text

Generate a random text

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these functions should be used to display a text on the windows?

println()

print()

text()

display()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code?

text("Hello\nWorld", 20, 100);

Hello\nWorld

Hello\nWorld 20 100

Hello World

Hello
World

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of this code?

text("Value is " + 20 + 24, 0, 20);

Value is 2024

Value is 44

Value is 20 24 0 20

Value is 20 + 24 0 20

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the colour produced from this code?

fill(0, 100);

square(0, 0, 40);

Black

White

Gray

No colour

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?