
Data types and type conversions
Authored by RAVINDRA INDURTHI
Computers
9th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is not a primitive data type?
Boolean
Character
Arrays
Integer
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of boolean?
true
false
'1'
'0'
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this program?
public class TestMain {
public static void main(String[] args) {
int abc;
System.out.println(abc+" default value");
}
}
0 default value
Compile time error - Local variable may not have been initialized
Run time error - Local variable may not have been initialized
None of Above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this program?
public class TestMain {
static int abc;
public static void main(String[] args) {
System.out.println(abc+" default value");
}}
0 default value
Compile time error - Class variable may not have been initialized
Run time error - Class variable may not have been initialized
None of Above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following can be a valid value for a char data type?
"A"
'A'
65
Both b and c
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a primitive data type in Java?
float
void
char
short
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type would be most suitable for storing the price of an item in a store?
int
double
boolean
char
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
15 questions
CIW
Quiz
•
9th - 12th Grade
10 questions
Word basics
Quiz
•
8th - 12th Grade
10 questions
Online Databases vs. Search Engines
Quiz
•
6th - 10th Grade
15 questions
Systems Architecture
Quiz
•
KG - 9th Grade
10 questions
Microsoft Publisher
Quiz
•
7th - 10th Grade
10 questions
Internet
Quiz
•
7th - 10th Grade
17 questions
Basic Docs
Quiz
•
8th - 9th Grade
10 questions
Logic Gates
Quiz
•
9th - 12th Grade
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