AP CSA Variables and Operators

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Sara Kazemi
Used 48+ 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
11 questions
#124 Unit 2 Lesson 6 Variables

Quiz
•
11th Grade
10 questions
Programming Basics

Quiz
•
11th - 12th Grade
15 questions
Recursion in Java

Quiz
•
11th - 12th Grade
15 questions
Microbit (python)

Quiz
•
8th - 10th Grade
11 questions
J277 Programming - Data Types

Quiz
•
9th - 11th Grade
15 questions
Java Level 1 - A

Quiz
•
12th Grade
19 questions
AP CSA 1.2 Variables and Data Types

Quiz
•
11th - 12th Grade
15 questions
Data Types

Quiz
•
7th - 9th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
40 questions
Algebra Review Topics

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

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade