
Java Programming Concepts and Expressions
Flashcard
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

29 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following data types is used to store a whole number in Java? Options: double, int, boolean, String
Back
int
2.
FLASHCARD QUESTION
Front
Given int x = 7; int y = 3; double z = x / y;, what is the value of z after this code executes?
Back
2.0
3.
FLASHCARD QUESTION
Front
Which of the following best describes the purpose of a variable in a Java program? Options: To perform arithmetic calculations only, To store data values that can be used and modified later, To display values on the screen, To hold comments and documentation for the code
Back
To store data values that can be used and modified later
4.
FLASHCARD QUESTION
Front
What is the value of c after executing the following code:
int a = 10;
int b = 3;
int c = a % b;
Back
1
5.
FLASHCARD QUESTION
Front
Which of the following correctly represents a boolean value in Java? YES, True, true, 1
Back
true
6.
FLASHCARD QUESTION
Front
If int n = 5;, which expression correctly casts n to a double? Options: double x = n;, double x = (int)n;, double x = (n)double;, double x = (double)n;
Back
double x = (double)n;
7.
FLASHCARD QUESTION
Front
Which of the following is not a primitive data type in Java? Options: int, double, boolean, String
Back
String
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
20 questions
AP Human Geography Urban Unit Test
Flashcard
•
11th - 12th Grade
26 questions
AP Brainrot Flashcard
Flashcard
•
12th Grade - University
17 questions
Fabrics Types
Flashcard
•
12th Grade
20 questions
Understanding Data Types and Modelling
Flashcard
•
12th Grade
20 questions
Procedures and Functions
Flashcard
•
10th Grade
17 questions
Electromagnetic Waves
Flashcard
•
11th Grade
20 questions
Python Programming Basics
Flashcard
•
11th Grade
22 questions
AC1:1 Describe processes used for law making
Flashcard
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade