
Quiz 1 OOPs Group A Variable Data Type
Authored by Kundan Kumar
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
Processing- The CPU Quiz
Quiz
•
10th Grade - University
15 questions
GK Quiz
Quiz
•
University
18 questions
The Rise of Intelligent Machines
Quiz
•
8th Grade - University
20 questions
Skill Competition Quiz 2024
Quiz
•
10th Grade - University
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
20 questions
Spreadsheet Fundamentals - Quiz2
Quiz
•
University
20 questions
Algoritma Remedial RPL
Quiz
•
University
15 questions
Chapter 8 - Memory Management Strategies
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade