Quiz 1 OOPs Group A Variable Data Type
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Kundan Kumar
Used 1+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
TEST1.PY
Quiz
•
10th Grade - University
18 questions
Fiber Optic
Quiz
•
University
20 questions
ICT Short Quiz
Quiz
•
University
20 questions
Review Quiz (Chapter 3&4)
Quiz
•
University
20 questions
C Programming Unit-1 Test-2
Quiz
•
University
20 questions
Microprocessor
Quiz
•
University
20 questions
Java Quiz 1
Quiz
•
University
15 questions
quiz pertemuan 2 asik ddp
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
