
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
20 questions
Intro to CS Semester 1 Unit 1 flashcard

Flashcard
•
12th Grade
25 questions
Java temas 1-4

Flashcard
•
University
26 questions
Python программалау тілі бойынша тест тапсырмалары

Flashcard
•
University
20 questions
Intro to Classes C++

Flashcard
•
KG
21 questions
Tuần 26- Ôn tập Python - Trắc nghiệm

Flashcard
•
10th Grade
20 questions
Python

Flashcard
•
11th Grade
25 questions
Debugging Round 1

Flashcard
•
University
24 questions
Ch. 2 Data Types 1

Flashcard
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade