
Programming Fundamentals (Lab 1)
Authored by Muhammad Talha
Engineering
8th Grade
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the function of the 'dir' command in the command prompt?
Deletes a file
Lists files and directories in the current location
Opens a folder
Copies files
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the command 'cd ..' do in the command line?
Creates a new directory
Changes file type
Moves to the parent directory
Clears the screen
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
When saving a Java program file, what should the file extension be?
.txt
.class
.java
.exe
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What command is used to compile a Java program in the terminal?
javac
compile
java
exec
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
After compiling a Java file, which command is used to execute it?
compile
javac
java
run
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In a basic Java program, which statement is used to display text on the screen?
echo
print()
display()
System.out.println()
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the main rule for creating a Java file.
Class Name must be same as the File Name (Exactly Same)
Class Name can be different.
Class Name must be same but in Lower Case Letters all.
Class Name must be same but in Upper Case Letters all.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Engineering
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
14 questions
finding slope from a graph
Quiz
•
8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Laws of Exponents
Quiz
•
8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
12 questions
8th U5L9 Linear Models
Quiz
•
8th Grade
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade