
Data types and type conversions

Quiz
•
Computers
•
9th Grade
•
Medium
RAVINDRA INDURTHI
Used 2+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Project STEM AP CS A Unit 1 Quiz Review

Quiz
•
9th - 12th Grade
15 questions
Control statements in C++

Quiz
•
9th - 12th Grade
15 questions
Java Arrays Prt 1Quiz

Quiz
•
9th - 12th Grade
10 questions
C++ Basics Quiz

Quiz
•
9th - 12th Grade
14 questions
CMU Academy 1.2

Quiz
•
9th - 12th Grade
11 questions
Learning Variables

Quiz
•
9th - 12th Grade
11 questions
Python Variables

Quiz
•
9th Grade
10 questions
Delphi Arguments/Returns

Quiz
•
8th - 10th Grade
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
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade