Java Programming Flashcard - unit 1b

Flashcard
•
Information Technology (IT)
•
9th Grade
•
Hard
Quizizz Content
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
16 questions
Lesson 3.5 - If Structures Practice

Flashcard
•
11th Grade
11 questions
Java ArrayLists

Flashcard
•
10th Grade
15 questions
Java - Flow of Control Flashcard

Flashcard
•
9th - 12th Grade
15 questions
Resonance Warm-Up

Flashcard
•
9th Grade
15 questions
CodeHS 3.1 Boolean Expressions-4.2 For Loops Review

Flashcard
•
9th - 12th Grade
16 questions
AP CSA Primitive Types Practice

Flashcard
•
11th Grade
20 questions
Basic Programming Concepts in C++ Language

Flashcard
•
KG
16 questions
Q3-2 Review Questions

Flashcard
•
11th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade