Unit 1 APCSA

Unit 1 APCSA

9th Grade - University

32 Qs

quiz-placeholder

Similar activities

CSS g9 2Q 1st Summative

CSS g9 2Q 1st Summative

9th Grade

28 Qs

CH 6 Transforming Data

CH 6 Transforming Data

University

27 Qs

Vamos con PowerPoint 4°

Vamos con PowerPoint 4°

9th Grade

28 Qs

UJIAN MID SEMESTER 1 X RPL SISTEM KOMPUTER

UJIAN MID SEMESTER 1 X RPL SISTEM KOMPUTER

University

35 Qs

Lesson 4 - CMS: How it works?

Lesson 4 - CMS: How it works?

University

28 Qs

PTS GANJIL KELAS X SMAN 1 BAYAH T.A 2024/2025

PTS GANJIL KELAS X SMAN 1 BAYAH T.A 2024/2025

10th Grade

30 Qs

Internet y Redes (Parte II) 1º de Bach

Internet y Redes (Parte II) 1º de Bach

12th Grade

29 Qs

Higher AIT Revision

Higher AIT Revision

11th Grade

37 Qs

Unit 1 APCSA

Unit 1 APCSA

Assessment

Quiz

Computers

9th Grade - University

Practice Problem

Medium

Created by

Thomas Wright

Used 15+ times

FREE Resource

AI

Enhance your content in a minute

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

32 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which of the following is not a primitive type?

int

double

String

boolean

char

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

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

1 min • 5 pts

What is the value of x after this code runs

int x = 5;

x = 10;

x*=2;

x+=3;

23

3

33

13

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What is the value of x after this code runs

int x = 5;

x = 10;

x = 4;

5

10

4

true

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

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

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What is the result of this expression?

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

5

6

6.67

7

0

7.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

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

x % 10

x / 10

x % 100

x + 1

x / 100

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

Already have an account?