Quiz 1 OOPs Group A Variable Data Type

Quiz 1 OOPs Group A Variable Data Type

University

20 Qs

quiz-placeholder

Similar activities

java

java

University

24 Qs

Java Basic - Core

Java Basic - Core

University

20 Qs

ARRAY

ARRAY

University

22 Qs

Online Test-3 ( Wipro Talent Next )- 30th July 2020

Online Test-3 ( Wipro Talent Next )- 30th July 2020

University

20 Qs

PROGRAMMING CAMP

PROGRAMMING CAMP

University

20 Qs

Trắc nghiệm kiến thức Java Core - Phần I

Trắc nghiệm kiến thức Java Core - Phần I

University

15 Qs

C++ Quiz-1

C++ Quiz-1

University

15 Qs

4thQuarter Review Comprog 2

4thQuarter Review Comprog 2

11th Grade - University

20 Qs

Quiz 1 OOPs Group A Variable Data Type

Quiz 1 OOPs Group A Variable Data Type

Assessment

Quiz

Computers

University

Medium

Created by

Kundan Kumar

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a valid variable declaration in Java?

int 1num;

float rate = 5.7f;

double value = "10.5";

char letter = "A";

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which data type is used to store a single 16-bit Unicode character in Java?

byte

char

String

boolean

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Java does not support the sizeof operator like C/C++. Which of the following is the correct reason?

Because Java is platform dependent

Because the size of data types in Java is fixed

Because Java is not object-oriented

Because variables in Java have no memory

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which one of the following data types takes the least memory?

byte

short

int

long

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

byte

boolean

String

char

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the range of the short data type in Java?

–128 to 127

–32,768 to 32,767

–2³¹ to 2³¹–1

0 to 65,535

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is not a type of variable in Java?

Local variable

Instance variable

Static variable

Global variable

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?