Wk12_PASS(11&12)

Wk12_PASS(11&12)

1st - 3rd Grade

40 Qs

quiz-placeholder

Similar activities

Scratch-Loops and conditional statements

Scratch-Loops and conditional statements

2nd - 5th Grade

35 Qs

COMPUTER 1_Q2 LESSONS

COMPUTER 1_Q2 LESSONS

1st Grade

40 Qs

What are you doing?

What are you doing?

3rd Grade

40 Qs

Final Term Exam 2021-Computer-G3

Final Term Exam 2021-Computer-G3

3rd Grade

40 Qs

PAS-KJD-Kelas X TKJ

PAS-KJD-Kelas X TKJ

1st Grade

45 Qs

uses of computer and Parts of Computer Revision

uses of computer and Parts of Computer Revision

1st Grade

42 Qs

ทดสอบปัญญา ป.5

ทดสอบปัญญา ป.5

1st Grade

43 Qs

REVISION QUIZ GRADE 1

REVISION QUIZ GRADE 1

1st Grade

40 Qs

Wk12_PASS(11&12)

Wk12_PASS(11&12)

Assessment

Quiz

Computers

1st - 3rd Grade

Practice Problem

Medium

Created by

Shu Li

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is the output of the code snippet if input = ForLOOP?

fORloop

forloop

ForLoop

Forloop

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is the output of the code snippet?

10 9 8 7 6 5 4 3 2

10 9 8 7 6 5 4 3 2 1

9 8 7 6 5 4 3 2 1 0

9 8 7 6 5 4 3 2 1

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is the output of the code snippet?

Car show() called

Toyota show() called

Compiler Error

Runtime Error

Answer explanation

c is a reference of Car type and refers to an object of Toyota class. Runtime polymorphism happens and Toyota method is called

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is the output of the code snippet?

Car show() called

Toyota show() called

Compiler Error

Runtime Error

Answer explanation

When a function is static, runtime polymorphism doesn't happen.

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Based on the provided code screenshot, what will be the output if you run: System.out.println(CarPark.displayNoOfCar()); ?

2

1

Error occurs

None of the above

Answer explanation

non-static method can access only through object called.

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

How many times will the menu print?

1

0

2

Error happens

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

What is the output of the code snippet if mark = 10?

25, 52

25, 51

15, 51

25, 53

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?

Discover more resources for Computers