Programming Fundamentals (Lab 1)

Quiz
•
Engineering
•
8th Grade
•
Easy
Muhammad Talha
Used 8+ times
FREE Resource
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.
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Engineering
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Figurative Language Review

Quiz
•
8th Grade
18 questions
Identifying Functions Practice

Quiz
•
8th Grade
20 questions
Scientific method and variables

Quiz
•
8th Grade
20 questions
Physical and Chemical Changes

Quiz
•
8th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade