AP CSA Variables and Operators

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Sara Kazemi
Used 49+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which variable type is NOT a primitive variable type?
boolean
String
int
double
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a logic error?
An mistyped statement that causes the compiler to throw an exception.
An illegal operation that causes the compiler to throw an exception.
An illegal operation that causes the program to have a run-time error.
An error a programmer makes that causes the program to behave differently than expected.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to instantiate a Finch object with its default constructor?
Finch(f);
Finch f;
Finch f = Finch();
Finch f = new Finch();
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of 3/2 in Java?
1.5
1.0
1
0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of 3.0/2 in Java?
1.5
1.0
1
0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the % operator in Java?
percentage
homonculus
modulus
modulator
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of 3%2?
1
1.5
1.0
0
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
AP CSA Unit 1 & 2 Review

Quiz
•
9th - 12th Grade
10 questions
Strings & Integers

Quiz
•
6th - 9th Grade
12 questions
Java Code

Quiz
•
10th - 12th Grade
10 questions
Pseudocode Input

Quiz
•
9th - 12th Grade
16 questions
Loops

Quiz
•
5th - 12th Grade
10 questions
Recursion Practice, Recursion Practice, Recursion Practice...

Quiz
•
10th Grade - University
16 questions
Javascript Basics

Quiz
•
9th - 12th Grade
19 questions
Comp Qrtr 2

Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade