AP-Computer Science A

Quiz
•
Computers
•
12th Grade
•
Medium
Abdelsalam Bakr
Used 14+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the program below print?
int first = 10;
int second = first + 5;
first = 20;
System.out.println(second);
10
15
20
25
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following program print?
int age = 32;
int height = 178;
height = age + 10;
System.out.println(age);
32
178
188
42
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the program below print?
int dividend = 3;
int divisor = 2;
double result = dividend / divisor * 1.0;
System.out.println(result);
3.0
2.0
1.5
1.0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the program below print?
int second = 32;
int first = 25;
second = 17;
first = second;
System.out.println(second);
32
17
25
49
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following ways are valid method of declaring and initializing a variable of type double, named money, to equal 3.55?
double money,
money = 3.55;
double money = 3.55;
int money = 3.55;
int money = 3-55;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What variable type should be used to represent the number of children in a class?
boolean
double
String
int
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int x = 1;
int y = 2;
int z = 3;
z = x;
x = 0;
y = y + 1;
x = 0, y = 2, z = 1
x = 0, y = 3, z = 3
x = 0, y = 3, z = 1
x = 3, y = 2, z = 3
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Functions With Parameters and Returns

Quiz
•
9th - 12th Grade
15 questions
SIOT - Komunikasi Data Serial UART

Quiz
•
11th - 12th Grade
20 questions
Array

Quiz
•
10th - 12th Grade
16 questions
Java Chapter 1 CS2

Quiz
•
9th - 12th Grade
20 questions
Java Method Quiz

Quiz
•
9th - 12th Grade
20 questions
The String Class

Quiz
•
12th Grade
17 questions
Unit 7 Review 1

Quiz
•
9th - 12th Grade
15 questions
Java Variables, Input and Output

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade