AP Computer Science A Unit 1

0.0(0)
studied byStudied by 33 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/21

flashcard set

Earn XP

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

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 flashcards

HIS 102 Midterm
Updated 912d ago
flashcards Flashcards (108)
LGBTQ Vocabulary
Updated 1057d ago
flashcards Flashcards (53)
3.4 (woordenlijst)
Updated 1001d ago
flashcards Flashcards (20)
biology
Updated 547d ago
flashcards Flashcards (30)
Bio Lab Exam 1
Updated 59m ago
flashcards Flashcards (81)
HIS 102 Midterm
Updated 912d ago
flashcards Flashcards (108)
LGBTQ Vocabulary
Updated 1057d ago
flashcards Flashcards (53)
3.4 (woordenlijst)
Updated 1001d ago
flashcards Flashcards (20)
biology
Updated 547d ago
flashcards Flashcards (30)
Bio Lab Exam 1
Updated 59m ago
flashcards Flashcards (81)