Java Programming Flashcard - unit 1b
Flashcard
•
Information Technology (IT)
•
9th Grade
•
Practice Problem
•
Medium
Wayground Content
Used 1+ times
FREE Resource
Student preview

22 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following correctly declares a string variable in Java? Options: String name = "Alice"; string name = "Alice"; String name == "Alice"; String name: "Alice";
Back
String name = "Alice";
2.
FLASHCARD QUESTION
Front
What will the statement System.out.print("Java "); System.out.print("Programming"); output?
Back
JavaProgramming
3.
FLASHCARD QUESTION
Front
Where should the import java.util.Scanner; statement be placed in a Java program?
Back
At the beginning of the program before the class declaration
4.
FLASHCARD QUESTION
Front
If you create a Scanner object as follows,
Scanner sc = new Scanner(System.in);
How can you read an integer input?
Back
int num = sc.nextInt();
5.
FLASHCARD QUESTION
Front
What will the value of x be after the following statements?
int x = 5;
x = x + 3;
Back
8
6.
FLASHCARD QUESTION
Front
What is the value of y after the following statements?
int y = 4;
y *= 2;
Back
8
7.
FLASHCARD QUESTION
Front
What will the following code output?
String text = "Hello, Java!";
int index = text.indexOf("Java");
System.out.println(index);
Back
7
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
15 questions
Beginner Baseline Reading Comprehension Flashcard
Flashcard
•
8th Grade
15 questions
Forces & Free Body Diagrams
Flashcard
•
8th Grade
15 questions
kinetic and potential energy
Flashcard
•
8th Grade
15 questions
digraphs and blends
Flashcard
•
KG
15 questions
Universal Gravitation & Uniform Circular Motion
Flashcard
•
9th Grade
15 questions
CVC short /e/
Flashcard
•
KG
15 questions
Free Body Diagrams Flashcard G
Flashcard
•
9th Grade
15 questions
Potential/Kinetic at diff. points
Flashcard
•
8th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
10 questions
Exploring Christmas Traditions Through Cartoons
Interactive video
•
6th - 10th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
20 questions
Name That Tune Christmas Edition
Quiz
•
6th - 9th Grade