
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
Networking Quiz
Quiz
•
8th - 9th Grade
10 questions
STM BTEC DIT 3- 5. Maintenance, set-up, performance p152
Quiz
•
9th - 11th Grade
15 questions
MS WORD - CLASS IX
Quiz
•
9th Grade
11 questions
ICT - Networks and communication
Quiz
•
9th Grade
10 questions
4Q Week3 Review Quiz (Who missed the Quiz ONLY))
Quiz
•
9th Grade
15 questions
History of Computers
Quiz
•
6th - 12th Grade
16 questions
Python Basics
Quiz
•
KG - University
10 questions
7.2 Knowledge check
Quiz
•
9th 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