Java Programming Quiz

Java Programming Quiz

University

10 Qs

quiz-placeholder

Similar activities

Mastering Java Arithmetic Operators

Mastering Java Arithmetic Operators

10th Grade - University

10 Qs

The oops moment/3

The oops moment/3

University

10 Qs

SESSIONAL EXAM(Programmin Lab)

SESSIONAL EXAM(Programmin Lab)

University

15 Qs

Go Quiz

Go Quiz

University

15 Qs

Are you Ready???

Are you Ready???

University

15 Qs

TECH WHIZ

TECH WHIZ

University

15 Qs

LENG_PROG_AVAN_II_PRUEBA DIAGNOSTICA

LENG_PROG_AVAN_II_PRUEBA DIAGNOSTICA

University

10 Qs

BugBlitz

BugBlitz

University

15 Qs

Java Programming Quiz

Java Programming Quiz

Assessment

Quiz

Engineering

University

Medium

Created by

Gouthami Reddy

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who developed Java and when?

James Gosling, 1991

Bjarne Stroustrup, 1985

Guido van Rossum, 1995

Dennis Ritchie, 1972

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is not a Java buzzword?

Robust

Secure

Platform Dependent

Object-Oriented

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of an int in Java?

2 bytes

4 bytes

8 bytes

Depends on OS

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Output of the code below? int a = 5, b = 2; System.out.println(a / b);

2.5

2

3

Compilation Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Correct way to declare an array in Java?

int arr[] = new int[5];

int arr = int[5];

arr[] = new int[5];

array int arr[5];

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this print? int[] nums = {1, 2, 3}; System.out.println(nums[1]);

1

2

3

Compilation Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Output of this code? int x = 10; x += 5 * 2; System.out.println(x);

20

30

25

15

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?