
AP Computer Science A - Quiz 1 Variables and Data Types
Interactive Video
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Christopher Dunn
Used 1+ times
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a string variable in Java?
string var = "This is a string";
string var = 'This is a string';
String var = 'This is a string';
String var = "This is a string";
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct declaration of an integer variable?
int num1 = 10.5;
int num1 = 10;
boolean num1 = 10;
double num1 = 10;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a double variable with a value of 11?
double num1 = 11;
double num1 = 11.0;
int num1 = 11.0;
boolean num1 = 11.0;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'final' keyword do when declaring a variable?
It allows the variable to be changed later.
It makes the variable accessible only within the class.
It makes the variable a global variable.
It prevents the variable from being reassigned.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid boolean declaration?
boolean isTrue = 'true';
boolean isTrue = TRUE;
boolean isTrue = True;
boolean isTrue = true;
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
T_4.2 Identifier, Data Types, Operators & Expressions
Quiz
•
12th Grade - University
10 questions
Podstawy Pythona
Quiz
•
9th - 12th Grade
10 questions
Evolution of Web
Quiz
•
11th - 12th Grade
10 questions
DL Refresher
Quiz
•
KG - Professional Dev...
10 questions
FUNDAMENTOS DE ESTADÍSTICA
Quiz
•
9th - 12th Grade
10 questions
Pseudocode WHILE Loops
Quiz
•
10th - 12th Grade
11 questions
Unit 2, 1.3 Types of information access and storage devices
Quiz
•
12th Grade
10 questions
SDD HSC Quiz 5A Q1-10
Quiz
•
12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
