Quiz 1 OOPs Group A Variable Data Type

Quiz
•
Computers
•
University
•
Medium
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
Similar Resources on Wayground
20 questions
TALENT-NEXT-JAVA-QUIZ1

Quiz
•
University
15 questions
Test de Programación en JAVA EPLP123-1

Quiz
•
University
18 questions
Chapter 1 - 2 Review -- 4-8-2024

Quiz
•
University
20 questions
JAVA Basics Quiz

Quiz
•
University
20 questions
Quiz PBO SIA

Quiz
•
University
20 questions
Geeks for Geeks PCCOER Info Session CP Quiz

Quiz
•
University
20 questions
Quiz 2 PBO

Quiz
•
University
18 questions
js basics

Quiz
•
4th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University