AP CSA Unit 1: Lesson 4 Questions

0.0(0)
Studied by 29 people
0%Unit Mastery
0%Exam Mastery
Build your Mastery score
multiple choiceMultiple Choice
call kaiCall Kai
Supplemental Materials
Card Sorting

1/9

flashcard set

Earn XP

Last updated 9:40 PM on 9/24/22
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

10 Terms

1
New cards
Assume the following has been typed in:
Scanner scan = new Scanner(System.in);
Which line of code declares a double y and sets it equal to input from the user?
double y = scan.nextDouble();
2
New cards
Which line of code declares a double variable z and sets it equal to 3.5?
double z = 3.5;
3
New cards
Is an int smaller in memory than a double?
True
4
New cards
What is printed by the following code?
int y = (13 - 7) / 4;
System.out.println(y);
1
5
New cards
What is output when the following code is executed?
double num = 2.0 * (26.75 - 20);
System.out.println(num);
13.5
6
New cards
What is output when the following code is executed?
double num = (0 - 3) * 5;
System.out.println(num);
-15.0
7
New cards
What is output when the following code is executed?
int x = -7;
x++;
x++;
x--;
System.out.println(x);
-6
8
New cards
What is output when the following code is executed?
int x = 13;
x++;
x++;
x -= 7;
x *= 3;
x--;
System.out.println(x);
23
9
New cards
Which of the following is a primitive data type?
"hello"
5.6
a7878
5.6
10
New cards
What data type takes the least memory?
boolean

Explore top notes

note
English ARWAV Notes (unfinished)
Updated 1234d ago
0.0(0)
note
Chapter 9: Chemical Equilibrium
Updated 1075d ago
0.0(0)
note
3D Bioprinting
Updated 1309d ago
0.0(0)
note
Economic Vocabulary
Updated 1240d ago
0.0(0)
note
Chapter 27: Credit and the Law
Updated 1331d ago
0.0(0)
note
Unit 2 - Supply and Demand Guide
Updated 1068d ago
0.0(0)
note
Upper Extremity Bones
Updated 1147d ago
0.0(0)
note
English ARWAV Notes (unfinished)
Updated 1234d ago
0.0(0)
note
Chapter 9: Chemical Equilibrium
Updated 1075d ago
0.0(0)
note
3D Bioprinting
Updated 1309d ago
0.0(0)
note
Economic Vocabulary
Updated 1240d ago
0.0(0)
note
Chapter 27: Credit and the Law
Updated 1331d ago
0.0(0)
note
Unit 2 - Supply and Demand Guide
Updated 1068d ago
0.0(0)
note
Upper Extremity Bones
Updated 1147d ago
0.0(0)

Explore top flashcards

flashcards
Unit 6: Plate Tectonics
79
Updated 1013d ago
0.0(0)
flashcards
units 22-24
30
Updated 335d ago
0.0(0)
flashcards
Vocab 4A Flashcards
35
Updated 504d ago
0.0(0)
flashcards
Practice Questions
250
Updated 483d ago
0.0(0)
flashcards
APUSH Unit 2 Terms list #1
26
Updated 193d ago
0.0(0)
flashcards
Science midterm Vocab
49
Updated 1191d ago
0.0(0)
flashcards
Crucible Acts 1 and 2
35
Updated 1142d ago
0.0(0)
flashcards
Adjectives 1 - Russian
62
Updated 759d ago
0.0(0)
flashcards
Unit 6: Plate Tectonics
79
Updated 1013d ago
0.0(0)
flashcards
units 22-24
30
Updated 335d ago
0.0(0)
flashcards
Vocab 4A Flashcards
35
Updated 504d ago
0.0(0)
flashcards
Practice Questions
250
Updated 483d ago
0.0(0)
flashcards
APUSH Unit 2 Terms list #1
26
Updated 193d ago
0.0(0)
flashcards
Science midterm Vocab
49
Updated 1191d ago
0.0(0)
flashcards
Crucible Acts 1 and 2
35
Updated 1142d ago
0.0(0)
flashcards
Adjectives 1 - Russian
62
Updated 759d ago
0.0(0)