
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
25 questions
DNA Introduction
Flashcard
•
KG - University
25 questions
Excel Exam
Flashcard
•
10th Grade
19 questions
Types of Chemical Reactions Review
Flashcard
•
10th - 11th Grade
25 questions
Coding Relay MCQ
Flashcard
•
University
15 questions
Costandi EOC Biology Exam Review
Flashcard
•
KG - University
20 questions
Microprocessor
Flashcard
•
University
25 questions
ACT Reading Prep
Flashcard
•
12th Grade
20 questions
DNA Replication and Structure
Flashcard
•
KG - University
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