AP CSA | U2_L1 Variables

AP CSA | U2_L1 Variables

12th Grade

25 Qs

quiz-placeholder

Similar activities

CÂU HỎI ÔN TAP HKI

CÂU HỎI ÔN TAP HKI

5th Grade - University

21 Qs

Tech Trivia, Part III

Tech Trivia, Part III

7th - 12th Grade

20 Qs

To meet the horizon

To meet the horizon

11th - 12th Grade

20 Qs

Quizz SO

Quizz SO

12th Grade

20 Qs

3C - ¡Y AHORA!

3C - ¡Y AHORA!

12th Grade

20 Qs

PROGRAMMING LANGUAGE QUIZ#1

PROGRAMMING LANGUAGE QUIZ#1

12th Grade

20 Qs

Globalhood B2 L48 Revision

Globalhood B2 L48 Revision

5th Grade - University

20 Qs

Microsoft Excel

Microsoft Excel

KG - Professional Development

20 Qs

AP CSA | U2_L1 Variables

AP CSA | U2_L1 Variables

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Cyber Professor - Mr. B

Used 3+ 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 SELECT QUESTION

1 min • 2 pts

What are the references for three basic data types?

string

int

flt

str

float

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What data type should we use to hold if you have a pet?

int

double

boolean

String

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What type of data is the following?: X = "195.67"

Float

String

Boolean

integer

4.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

True or false:

This is a correct initialization of a variable.


boolean happy = true;

true

false

5.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

True or false:

This is a correct initialization of a variable.


String favoriteDay = "Saturday";

true

false

6.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

What are the final values of x and y in the following code segment?


int x = 3;

int y = ++x * 5 / 2;

x = 3, y = 10

x = 4, y =7

x = 4, y = 10

x = 3, y = 7

This code segment will not compile.

7.

MULTIPLE CHOICE QUESTION

3 mins • 3 pts

What does the following Python program print?

X = "Hello World!"

Y = "I can code "

Z = " In Python"

print( X + Y + Z)

Hello World! I can code In Python

Hello World!I can code In Python

Hello World! I can codeIn Python

Hello World!I can code In Python

Answer explanation

There is a space after the word "code" and before the word "In".

Access all questions and much more by creating a free account

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?