Java Quiz 1

Java Quiz 1

University

20 Qs

quiz-placeholder

Similar activities

IT 101 - Quiz 3

IT 101 - Quiz 3

University

20 Qs

NACOS Kahoot Session II

NACOS Kahoot Session II

University

20 Qs

Chapter 5 Mid Term Quiz - Computer System -

Chapter 5 Mid Term Quiz - Computer System -

5th Grade - University

20 Qs

COA_QUIZ_UNIT I

COA_QUIZ_UNIT I

University

20 Qs

CPA MS-Office Hotkeys Quiz

CPA MS-Office Hotkeys Quiz

8th Grade - Professional Development

21 Qs

Algo Quiz

Algo Quiz

University

16 Qs

DI (EM24) - Diseño de Contenidos (T8)

DI (EM24) - Diseño de Contenidos (T8)

University - Professional Development

20 Qs

Round 2 for Preplacement Bootcamp

Round 2 for Preplacement Bootcamp

University

15 Qs

Java Quiz 1

Java Quiz 1

Assessment

Quiz

Computers

University

Medium

Created by

Asaithambi Jay

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which statement is true about Java

Java is a sequence-dependent programming language

Java is a code dependent programming language

Java is a platform-dependent programming language

Java is a platform-independent programming language

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which component is used to compile, debug and execute the java programs?

JDK

JRE

JVM

JIT

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these cannot be used for a variable name in Java?

identifier & keyword

identifier

keyword

none

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following Java code?

class increment {

  1. public static void main(String args[])

  2. {

  3. int g = 3;

  4. System.out.print(++g * 8);

  5. }

  6. }

32

24

25

33

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following Java program?

Compiler error

Runtime error

6 6

5 6

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the error in the following Java code?

byte b = 50;

b = b * 50;

b cannot contain value 50

b cannot contain value 100, limited by its range

No error in this code

* operator has converted b 50 into int, which can not be converted to byte without casting

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following Java program?

0 256

0 64

256 0

64 0

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?