
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
18 questions
Chapter 1 - 2 Review -- 4-8-2024

Quiz
•
University
20 questions
Algoritma + Pascal

Quiz
•
University
16 questions
Sains Komputer Tingkatan 4 - 1.3.1 Menjelaskan hubungan

Quiz
•
10th - 12th Grade
15 questions
MM - JavaScript

Quiz
•
12th Grade
18 questions
Java Wiederholung

Quiz
•
12th Grade
20 questions
Java Values and datatypes

Quiz
•
9th - 12th Grade
20 questions
Java Objects - Real world Scenarios - Practice Quiz

Quiz
•
University
25 questions
UAS DPK

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade