Comp Sci Primitive Types

Comp Sci Primitive Types

9th - 12th Grade

25 Qs

quiz-placeholder

Similar activities

Soal UTS Informatika X AK

Soal UTS Informatika X AK

10th Grade

25 Qs

Première quiz 1

Première quiz 1

11th Grade

20 Qs

Repaso Tecnologías Informáticas

Repaso Tecnologías Informáticas

9th - 12th Grade

20 Qs

POST-TEST-ChatGPT Arduino

POST-TEST-ChatGPT Arduino

11th Grade

20 Qs

Unit-8 (QB64) Year-6

Unit-8 (QB64) Year-6

6th Grade - University

22 Qs

Information System

Information System

12th Grade

22 Qs

UH 1 KKA 10

UH 1 KKA 10

10th Grade

25 Qs

AKD Ganjil TES

AKD Ganjil TES

12th Grade

25 Qs

Comp Sci Primitive Types

Comp Sci Primitive Types

Assessment

Quiz

Information Technology (IT)

9th - 12th Grade

Hard

CCSS
6.EE.B.6, 6.EE.A.2C, 7.NS.A.2C

Standards-aligned

Created by

CONNOR S

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a primitive type?

int

double

String

boolean

char

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true about variables?

The memory associated with a variable of a primitive type holds an actual primitive value.

When a variable is declared final, its value can only be changed through a direct reassignment.

A variable originally created as an int can be changed to store a double through casting.

All of these choices are true

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of x after this code runs?

int x = 5;

x = 10;

x = 4;

5

10

4

true

Tags

CCSS.6.EE.A.2C

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the proper syntax to declare and initialize a variable called temperature to have the value 70.4?

int temperature = 70.4;

double temperature = 70.4;

temperature = 70.4;

dbl temperature = 70.4;

temperature = (double) 70.4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of this expression?

(int) (5 + 2 / 3 + 1)

5

6

6.67

7

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which expression returns the 1’s place of an integer x?

x % 10

x / 10

x % 100

x + 1

Tags

CCSS.6.EE.B.6

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of myInteger after this line of code is executed?

int myInteger = (int) 5.6;

6

5.6

5

9

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?