QUIZ For day 2

QUIZ For day 2

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

PYTHON DICTIONARIES

PYTHON DICTIONARIES

11th Grade

14 Qs

Uj1 P3m4h4man

Uj1 P3m4h4man

12th Grade

10 Qs

INFORMATIKA 12 S1 HAL 057 PA3

INFORMATIKA 12 S1 HAL 057 PA3

12th Grade

10 Qs

Fingerprinting H

Fingerprinting H

10th - 12th Grade

10 Qs

Working Memory Model AQA Psychology A Level

Working Memory Model AQA Psychology A Level

12th Grade

13 Qs

Computer Systems Servicing

Computer Systems Servicing

12th Grade

10 Qs

SEAFOOD DISHES

SEAFOOD DISHES

10th Grade

10 Qs

Graph Theory Basics

Graph Theory Basics

10th - 12th Grade

12 Qs

QUIZ For day 2

QUIZ For day 2

Assessment

Quiz

Other

9th - 12th Grade

Hard

Created by

BENYAPORN SANGKHIAO

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following loop print?

A) 0 1 2 3 4 5

B) 0 1 2 3 4

C) 1 2 3 4 5

D) 0 1 2 3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop is best when the number of iterations is not known beforehand?

A) for loop

B) do-while loop

C) while loop

D) None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following method return?

A) The sum of a and b

B) The division of a and b

C) The multiplication of a and b

D) None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

A) 1

B) 2

C) 3

D) 4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods has a void return type?

A) Method that returns an object

B) Method that returns an integer value

C) Method that doesn't return anything

D) Method that returns a boolean value

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the input values called that you pass into a method?

A) Arguments

B) Parameters

C) Variables

D) Both A and B

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the default value of the elements in an array of integers in Java?

A) null

B) 0

C) 1

D) Undefined

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the value of array[3] after executing the following code?

A) 3

B) 4

C) 7

D) 5

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid way to declare an array?

A) int array[];

B) int[] array;

C) int array[5];

D) Both A and B