AP Computer Science A Quiz
8 questions · no time limit
0:00
USING OBJECTS AND METHODS
Question 1 of 8
No time limit
Current
Answered
Flagged
Not seen
What is the final value of score after execution of the game score code below? public class GameScoreTotal { public static void main(String[] args) { int score = 7; // starting score /* Earn points for actions */ score += 9; // bonus points score *= 3; // triple score // Penalty for mistake score -= 5; // subtract 5 // Convert to points per level (2 levels) score /= 2; // integer division // Keep only remainder when split into 4 teams score %= 4; // remainder System.out.println("Final score: " + score); } }
YOUR PROGRESS
8
QUESTIONS
Ready when you are
Answer in any order. Your progress shows here as you go.
QUESTIONS
KEYBOARD
Pick an answer ABCD
Next question ↵→
Previous ←
Flag for review F