Java Programming Flashcard - unit 1b

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 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
19 questions
Fundamentals of CS Review

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

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

Flashcard
•
8th Grade
18 questions
AP CSA Unit 1 Review

Flashcard
•
10th - 12th Grade
11 questions
Java ArrayLists

Flashcard
•
10th Grade
21 questions
Java if and case statements

Flashcard
•
10th Grade
21 questions
Java Loops

Flashcard
•
KG
16 questions
Java Basics (Data Types and Variables)

Flashcard
•
6th - 10th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

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

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
13 questions
25-26 Behavior Expectations Matrix

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

Interactive video
•
6th - 10th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade