
Java Programming Concepts and Expressions

Flashcard
•
Computers
•
12th Grade
•
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
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
Intro to CS Midterm Exam

Flashcard
•
12th Grade
21 questions
SAINS KOMPUTER TINGKATAN 4 (BAB1)

Flashcard
•
KG - University
18 questions
AP CSA Unit 1 Review

Flashcard
•
10th - 12th Grade
20 questions
python flashcard

Flashcard
•
12th Grade
20 questions
Unit 6 Test Review - Arrays

Flashcard
•
9th - 12th Grade
21 questions
Java Flashcard-1

Flashcard
•
KG - University
25 questions
JavaScript Variables

Flashcard
•
10th - 12th Grade
25 questions
Strategi Algoritmik dan Pemrograman

Flashcard
•
11th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
6 questions
PRIDE in the Hallways and Bathrooms

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

Quiz
•
9th - 12th Grade
7 questions
EAHS PBIS Lesson- Bathroom

Lesson
•
9th - 12th Grade
57 questions
How well do YOU know Neuwirth?

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

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
4 questions
Study Skills

Lesson
•
5th - 12th Grade
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University