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 choiceMultiple Choice
call kaiCall Kai
Supplemental Materials
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
Gases and Solutions
Updated 1206d ago
0.0(0)
note
Chapter 3: Federalism
Updated 1019d ago
0.0(0)
note
apush 5.1-5.3
Updated 464d ago
0.0(0)
note
Español 3H Repaso vocabulario
Updated 1060d ago
0.0(0)
note
Cranial Nerves
Updated 392d ago
0.0(0)
note
Gases and Solutions
Updated 1206d ago
0.0(0)
note
Chapter 3: Federalism
Updated 1019d ago
0.0(0)
note
apush 5.1-5.3
Updated 464d ago
0.0(0)
note
Español 3H Repaso vocabulario
Updated 1060d ago
0.0(0)
note
Cranial Nerves
Updated 392d ago
0.0(0)

Explore top flashcards

flashcards
Bio Lecture Final
276
Updated 690d ago
0.0(0)
flashcards
Microbiology Exam 4 Part 2
108
Updated 1062d ago
0.0(0)
flashcards
industrialization study guide
20
Updated 913d ago
0.0(0)
flashcards
Mesopotamia vocab
37
Updated 123d ago
0.0(0)
flashcards
bio practical 3
82
Updated 1077d ago
0.0(0)
flashcards
AD 227 Exam 3 Key Works
33
Updated 315d ago
0.0(0)
flashcards
Bio Lecture Final
276
Updated 690d ago
0.0(0)
flashcards
Microbiology Exam 4 Part 2
108
Updated 1062d ago
0.0(0)
flashcards
industrialization study guide
20
Updated 913d ago
0.0(0)
flashcards
Mesopotamia vocab
37
Updated 123d ago
0.0(0)
flashcards
bio practical 3
82
Updated 1077d ago
0.0(0)
flashcards
AD 227 Exam 3 Key Works
33
Updated 315d ago
0.0(0)