Java Programming Flashcard - unit 1a
Flashcard
•
Information Technology (IT)
•
9th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

22 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following correctly declares an integer variable in Java? Options: int num = 3;, int num <- 3;, integer num = 3;, int num == 3;
Back
int num = 3;
2.
FLASHCARD QUESTION
Front
Which statement will correctly print "Hello, World!" to the console in Java? Options: print("Hello, World!");, println("Hello, World!");, System.out.println("Hello, World!");, System.print.out("Hello, World!");
Back
System.out.println("Hello, World!");
3.
FLASHCARD QUESTION
Front
What is the correct statement to import the Scanner class in Java?
Back
import java.util.Scanner;
4.
FLASHCARD QUESTION
Front
What is the correct way to create a Scanner object to read user input?
Back
Scanner sc = new Scanner(System.in);
5.
FLASHCARD QUESTION
Front
Which method is used to read an integer input from a Scanner object? Options: nextLine(), nextInt(), getInt(), readInt()
Back
nextInt()
6.
FLASHCARD QUESTION
Front
Which of the following correctly assigns the value 10 to the variable x, in Java? Options: x == 10;, x = 10;, int x <- 10;
Back
x = 10;
7.
FLASHCARD QUESTION
Front
Which of the following correctly concatenates two strings str1 and str2? Options: str3 = str1.concat(str2);, str3 = str1 + str2;, Both a and b, None of the above
Back
str3 = str1 + str2;
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Inglês, Frances e Espanhol
Flashcard
•
9th Grade
18 questions
Python Basics Review
Flashcard
•
10th Grade
16 questions
Vacation Conversation Phrases
Flashcard
•
8th Grade
15 questions
Greetings and Introductions
Flashcard
•
10th Grade
19 questions
Narrative Text
Flashcard
•
10th Grade
15 questions
Year 8 Japanese - Hai!1 Unit 5 Hiragana
Flashcard
•
8th Grade
15 questions
alliteration
Flashcard
•
8th Grade
16 questions
Ingles
Flashcard
•
KG
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Graphing Inequalities on a Number Line
Quiz
•
9th Grade
20 questions
Cell Organelles
Quiz
•
9th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
20 questions
Cell Transport
Quiz
•
9th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade