Java Programming Quiz

Java Programming Quiz

Professional Development

15 Qs

quiz-placeholder

Similar activities

Understanding BOM in JavaScript(14R)

Understanding BOM in JavaScript(14R)

Professional Development

15 Qs

[FE] Ice Breaking - Mastering CSS

[FE] Ice Breaking - Mastering CSS

Professional Development

10 Qs

Time machine - Week 05

Time machine - Week 05

Professional Development

12 Qs

Uji Pemahaman Algoritma dan Pemrograman

Uji Pemahaman Algoritma dan Pemrograman

Professional Development

20 Qs

10211CS204 -OOPS using Java

10211CS204 -OOPS using Java

Professional Development

15 Qs

Java 總複習

Java 總複習

Professional Development

18 Qs

JavaScript Variables & Hoisting Quiz

JavaScript Variables & Hoisting Quiz

Professional Development

10 Qs

Ficha Iniciação à Linguagem C#

Ficha Iniciação à Linguagem C#

Professional Development

14 Qs

Java Programming Quiz

Java Programming Quiz

Assessment

Quiz

Information Technology (IT)

Professional Development

Medium

Created by

Aswana Lal

Used 1+ times

FREE Resource

AI

Enhance your content

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which component is responsible to optimize reusable byte code conversion to machine code?

Class Loader

Interpreter

JIT Compiler

Byte Code Verifier

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Predict the output: public static void main(String args[]) { int age; System.out.println(age); }

0

garbage value

compilation error : variable needs to be initialized before use

2147483647

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of these values can a boolean variable contain?

true

false

0

1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

identifiers cannot start with __________

character

digit

_

$

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Predict the output: public class Demo{ public static void main (string args[]){ int a =10,b=9; System.out.println(a

true

false

10

9

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

public static void main(String args[]){ int i=10; if(i) System.out.println("Hello"); else System.out.println("Bye"); }

Hello

Compilation error: incompatible types: int cannot be converted to boolean

Bye

runtime error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If an arithmetic expression contains variables of int , byte , and short data types , what will be the data type of its result?

int

byte

float

short

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?