A program needs to store the number of students in a class. What is the most appropriate data type?

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
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
20 questions
PEMBOLEHUBAH,PEMALAR DAN JENIS DATA

Quiz
•
7th - 12th Grade
17 questions
Variables

Quiz
•
9th - 12th Grade
19 questions
Data Types Java Concepts

Quiz
•
University
15 questions
Java Programming

Quiz
•
University
18 questions
GCSE Computer Science Data types

Quiz
•
10th - 12th Grade
19 questions
AP CSA 1.2 Variables and Data Types

Quiz
•
11th - 12th Grade
20 questions
Array

Quiz
•
10th - 12th Grade
15 questions
Java Variables, Input and Output

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade