Search Header Logo

FontysVenlo - PRC1 - W02

Authored by Frank van Gennip

Education, Computers

1st - 3rd Grade

Used 8+ times

FontysVenlo - PRC1 - W02
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

How do you correctly define a main-method in a Java class?

static public main(String[] args) { // some content }

public void static main(String[] args) { // some content }

public static void main(String[] args) { // some content }

static main void(String[] args) { // some content }

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is NOT a reserved keyword in Java?

void

main

public

static

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which would be the BEST data type choice for the following value: 9.732

Integer

double

int

String

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What is the output of the following code (see image)

5.5

1

2

10

5.

MULTIPLE SELECT QUESTION

45 sec • 5 pts

How do you end a loop?

break

continue

when the loop condition is false

6.

MULTIPLE SELECT QUESTION

45 sec • 5 pts

Which of the following for loops are valid?

for(;;){}

for(int i=0;i < 5;i++){}

int i = 0;

for(;i < 5;i = i + 2){}

for(int i = 5;i >= 0;i--){}

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

5

7

12

Error

Access all questions and much more by creating a free account

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

Already have an account?