
Java Basics

Flashcard
•
Computers
•
6th - 8th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

9 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the keyword to run a java file?
Back
java
2.
FLASHCARD QUESTION
Front
If you have a syntax error in a line of code, but you have not compiled the part of the code that includes the error, what is the outcome of running of the code?
Back
The code runs without errors but only the part that was compiled produces an output (the error is not read/run)
3.
FLASHCARD QUESTION
Front
You can have multiple classes within the same file
Back
True
4.
FLASHCARD QUESTION
Front
When you have multiple classes within the same file, which of the following occurs when the file is compiled? The computer throws an error, you cannot have multiple classes within the same file, It creates the class file for the first class, but not the rest, It creates multiple class files (one for each class), Nothing occurs
Back
It creates multiple class files (one for each class)
5.
FLASHCARD QUESTION
Front
What is the command for compiling a file with multiple classes?
Back
file_name javac
6.
FLASHCARD QUESTION
Front
What is generally the problem when the system says 'file not found' -- what should you check for before running a java file? Options: Make sure all the words are in all caps, Make sure that the file is in the right path (the terminal path is where the file is located), The file name MUST match the class name
Back
Make sure that the file is in the right path (the terminal path is where the file is located)
7.
FLASHCARD QUESTION
Front
What is the extension of the file that is created after compilation?
Back
.class
8.
FLASHCARD QUESTION
Front
Which data structure applies to the following: 'a'
Back
char
9.
FLASHCARD QUESTION
Front
What happens when running this?
public void static main(String[]args) {
double a = 1.0;
double b = 2.0;
int c = a + b;
System.out.println(c);
}
Back
The system throws an error because the sum of two doubles cannot be assigned to an integer
Similar Resources on Wayground
10 questions
8.10 Flashcard Review

Flashcard
•
6th - 8th Grade
8 questions
Python

Flashcard
•
KG - 9th Grade
8 questions
Python

Flashcard
•
KG - 9th Grade
9 questions
How to in PowerPoint

Flashcard
•
6th - 8th Grade
10 questions
Python Flashcard 15 (Exception Handling)

Flashcard
•
6th - 8th Grade
9 questions
Reading Strategies

Flashcard
•
6th - 8th Grade
8 questions
Gallopade 7th Grade Chapter 9

Flashcard
•
7th Grade
10 questions
Divvy day 1

Flashcard
•
KG
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
13 questions
Primary and Secondary Sources

Quiz
•
6th Grade
15 questions
Decimal Operations

Quiz
•
6th Grade
10 questions
Plotting Points on the Coordinate Plane

Quiz
•
7th - 8th Grade