Java Programming Quiz

Java Programming Quiz

University

10 Qs

quiz-placeholder

Similar activities

Variables y constantes

Variables y constantes

University

15 Qs

Variables y constantes

Variables y constantes

University

15 Qs

Computer Science Workshop Quiz

Computer Science Workshop Quiz

University

10 Qs

Java Array Mastery

Java Array Mastery

University

10 Qs

Alpro 2 Mg 1 - Understanding C++ Basics

Alpro 2 Mg 1 - Understanding C++ Basics

University

10 Qs

java1

java1

University

10 Qs

C++ Y apuntadores

C++ Y apuntadores

University

10 Qs

OOP_1

OOP_1

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?