Java Programming Flashcard - unit 1 c

Flashcard
•
Information Technology (IT)
•
9th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the correct way to enclose a block of code in Java? Options: [ ], { }, ( ), < >
Back
{ }
2.
FLASHCARD QUESTION
Front
Which of the following Java statements is correctly terminated?
Options:
System.out.println("Hello, World!")
System.out.println("Hello, World!");
System.out.println("Hello, World'"
System.out.println("Hello, World'"
Back
System.out.println("Hello, World!");
3.
FLASHCARD QUESTION
Front
What is the value of x after the following statements?
int x = 10;
x = x + 5;
Back
15
4.
FLASHCARD QUESTION
Front
What error will the following code produce?
System.out.println(Hello, World!");
Back
Missing quotations
5.
FLASHCARD QUESTION
Front
What is the difference between print and println in Java?
Back
print does not move to the next line, but println does.
6.
FLASHCARD QUESTION
Front
Which of the following is the correct way to declare a class in Java? a) public Class MyClass, b) class MyClass, c) public class MyClass, d) MyClass public class
Back
class MyClass
7.
FLASHCARD QUESTION
Front
What is the correct header for the main method in Java? Options: a) public void main(String args[]) b) public static void main(String[] args) c) public main(String args) d) void main(String[] args)
Back
public static void main(String[] args)
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Java Basics (Data Types and Variables)

Flashcard
•
6th - 10th Grade
11 questions
Java Boolean Statements

Flashcard
•
11th Grade
14 questions
CodeHS: Unit6 - JavaScript Basics

Flashcard
•
9th Grade
15 questions
Simple Machines and Mechanical Advantage Flashcard

Flashcard
•
9th Grade
15 questions
Taxonomy

Flashcard
•
9th - 10th Grade
15 questions
HR Diagram

Flashcard
•
8th Grade
18 questions
Cars

Flashcard
•
9th Grade
16 questions
Loops Flashcard

Flashcard
•
9th - 12th 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