ict5_mt_w2_sw2

ict5_mt_w2_sw2

12th Grade

20 Qs

quiz-placeholder

Similar activities

PEMBOLEHUBAH,PEMALAR DAN JENIS DATA

PEMBOLEHUBAH,PEMALAR DAN JENIS DATA

7th - 12th Grade

20 Qs

[VARIABLES & DATA TYPES]

[VARIABLES & DATA TYPES]

University

15 Qs

SAINS KOMPUTER TINGKATAN 4 (BAB1)

SAINS KOMPUTER TINGKATAN 4 (BAB1)

KG - University

21 Qs

GCSE Computer Science Data types

GCSE Computer Science Data types

10th - 12th Grade

18 Qs

Java datatype

Java datatype

University

22 Qs

Topic 4.5 Method Part 2

Topic 4.5 Method Part 2

12th Grade

19 Qs

PPG 25 Feb 2022

PPG 25 Feb 2022

12th Grade

19 Qs

AP CSA Review Basics

AP CSA Review Basics

9th - 12th Grade

16 Qs

ict5_mt_w2_sw2

ict5_mt_w2_sw2

Assessment

Quiz

Computers

12th Grade

Easy

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?