Java Programming Quiz

Java Programming Quiz

University

10 Qs

quiz-placeholder

Similar activities

Conceptos C++

Conceptos C++

University

10 Qs

Preguntas sobre Punteros en C/C++

Preguntas sobre Punteros en C/C++

University

14 Qs

Python programming

Python programming

University

15 Qs

LinkedLists

LinkedLists

University

12 Qs

Prueba Diagnóstica POO - 2025-2

Prueba Diagnóstica POO - 2025-2

University

15 Qs

Module 1_Introduction to C Programming

Module 1_Introduction to C Programming

University

10 Qs

Test de Conocimientos en Programación

Test de Conocimientos en Programación

University

10 Qs

Loops & Operator

Loops & Operator

University

10 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?