Java Programming Flashcard - unit 1b

Flashcard
•
Information Technology (IT)
•
9th Grade
•
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
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
Variables and their Data Types in JAVA

Flashcard
•
9th Grade
15 questions
Waves Review

Flashcard
•
8th Grade
16 questions
centripetal acceleration

Flashcard
•
10th Grade
16 questions
Алгоритмы ветвления

Flashcard
•
8th Grade
13 questions
Recordando concepto JS

Flashcard
•
10th Grade
15 questions
GEO #7 Circles B Arcs and Angles

Flashcard
•
10th Grade
19 questions
Basics Python

Flashcard
•
8th - 10th Grade
13 questions
Java ArrayLists

Flashcard
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
12 questions
Graphing Inequalities on a Number Line

Quiz
•
9th Grade
20 questions
Cell Organelles

Quiz
•
9th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
15 questions
Two Step Equations

Quiz
•
9th Grade
17 questions
Continents and Oceans

Lesson
•
5th - 9th Grade