Java Unit 1

Java Unit 1

University

10 Qs

quiz-placeholder

Similar activities

Java Programming Basics

Java Programming Basics

University

12 Qs

CMP128 Java Ch. 01 Intro PC & Java

CMP128 Java Ch. 01 Intro PC & Java

University

10 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

CODE ZENITH

CODE ZENITH

University

15 Qs

Java Iteration

Java Iteration

University

9 Qs

Loops-2

Loops-2

University

15 Qs

Quiz de Java

Quiz de Java

University

10 Qs

Object Oriented Programming

Object Oriented Programming

University

13 Qs

Java Unit 1

Java Unit 1

Assessment

Quiz

Computers

University

Medium

Created by

POOMANI M

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many bits is the long data type in Java?

16

32

64

128

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of an integer in Java Programming?

1 byte

2 bytes

4 bytes

8 bytes

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the smallest primitive data type in Java?

short

int

long

byte

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of a char in Java?

0

'\0'

' '

null

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a primitive data type in Java?

void

float

char

short

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the expression true || false?

true

false

null

0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop construct in Java is best suited when the number of iterations is known?

while

Do... while

for

for each

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?