AP Computer Science A Unit 1

0.0(0)
Studied by 33 people
0%Unit 1 Mastery
0%Exam Mastery
Build your Mastery score
multiple choiceAP Practice
Supplemental Materials
call kaiCall Kai
Card Sorting

1/21

Last updated 5:11 PM on 2/20/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

22 Terms

1
New cards
skeleton code
the basic starting point of a program
2
New cards
\\”
What is the escape sequence for “
3
New cards
\\\\
What is the escape sequence for \\
4
New cards
backslash
What is this “\\”
5
New cards
forward slash
What is this “/”
6
New cards
\\t
What escape sequence performs a tab
7
New cards
\\n
What escape sequence moves the cursor to the next line
8
New cards
System.out.println();
Which print command prints the supplied text and moves the cursor to the beginning of the next line
9
New cards
System.out.print();
Which print command prints the text without going to the next line?\`
10
New cards
/\*
What symbol starts a multi-line comment
11
New cards
//
What symbol is used for a single line comment
12
New cards
\*/
What symbol ends a multi-line comment
13
New cards
Comment
A(n) BLANK is a section of code that is ignored by the compiler
14
New cards
public static void main(String[] args)

What does skeleton code look like?

15
New cards
Public class Examples
{
public static void main(String[] args)
{
 System.out.println("bobo");
}
}

// What does the code print?

bobo

16
New cards
Public class Examples
{
public static void main(String[] args)
{
 //System.out.println("bobo");
}
}

// what is the result of executing this code?

nothing will print

17
New cards
Public class Examples
{
public static void main(String[] args)
{
 System.out.println(:P);
}
}
// what type of error does this produce

Syntax error

18
New cards
Public class Examples
{
public static void main(String[] args)
{
 System.out.print("bobo\neats\ndc");
}
}
// what does this code execute?

bobo

eats

dc

19
New cards

int count = 57;

how do you declare an integer value named count with the value of 57?

20
New cards

double gpa = 3.9;

how do you declare a decimal value named gpa that holds a students gpa?

21
New cards

String name = “John Harvard”;

how do you create an object called name that holds a students' name?

22
New cards

count = count + 2;

OR

count+=2;

how do you change the value of an int named count up by 2?

Explore top notes

note
Photosynthesis Quiz
Updated 1282d ago
0.0(0)
note
Unit 5: Period 5: 1844-1877
Updated 1063d ago
0.0(0)
note
Dutch
Updated 410d ago
0.0(0)
note
Iteration
Updated 1094d ago
0.0(0)
note
Specific Phobias
Updated 1161d ago
0.0(0)
note
Photosynthesis Quiz
Updated 1282d ago
0.0(0)
note
Unit 5: Period 5: 1844-1877
Updated 1063d ago
0.0(0)
note
Dutch
Updated 410d ago
0.0(0)
note
Iteration
Updated 1094d ago
0.0(0)
note
Specific Phobias
Updated 1161d ago
0.0(0)

Explore top flashcards

flashcards
Unit 2 Health ILSW 7
149
Updated 277d ago
0.0(0)
flashcards
Religion 2 - Kristendom
53
Updated 1146d ago
0.0(0)
flashcards
La Siesta del Martes
55
Updated 928d ago
0.0(0)
flashcards
Piliavin
59
Updated 1105d ago
0.0(0)
flashcards
9
106
Updated 1138d ago
0.0(0)
flashcards
Structures with Hammy
92
Updated 1072d ago
0.0(0)
flashcards
Unit 2 Health ILSW 7
149
Updated 277d ago
0.0(0)
flashcards
Religion 2 - Kristendom
53
Updated 1146d ago
0.0(0)
flashcards
La Siesta del Martes
55
Updated 928d ago
0.0(0)
flashcards
Piliavin
59
Updated 1105d ago
0.0(0)
flashcards
9
106
Updated 1138d ago
0.0(0)
flashcards
Structures with Hammy
92
Updated 1072d ago
0.0(0)