
ict5_mt_w2_sw2

Quiz
•
Computers
•
12th Grade
•
Easy
JB Presa
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A program needs to store the number of students in a class. What is the most appropriate data type?
double
int
String
char
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You need to store the average grade of a student (e.g., 91.5). Which data type should you use?
int
double
char
boolean
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You want to store whether a student is enrolled or not. What data type is best?
boolean
char
String
int
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a primitive data type in Java?
String
Array
boolean
Scanner
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You want to store a person’s middle initial. Which is the correct data type?
String
char
int
double
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are writing a program that stores the message “Welcome to Java!”. Which data type will you use?
char
boolean
String
int
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You declared: float price = 12.99; — What is wrong with this code?
Float cannot store decimals
Missing f after the value
price is a reserved word
Value must be in quotes
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
Java Method

Quiz
•
12th Grade
15 questions
Java Level 1 - D

Quiz
•
12th Grade
18 questions
STATIC KEYWORD IN JAVA

Quiz
•
9th - 12th Grade
15 questions
Python Basics

Quiz
•
KG - University
18 questions
Java Como Programar - Deitel - Cap 1 e 2

Quiz
•
University
24 questions
Javascript Basics

Quiz
•
7th Grade - University
20 questions
Python Strings

Quiz
•
University
15 questions
Java Method

Quiz
•
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