Programming Fundamentals (Lab 1)

Programming Fundamentals (Lab 1)

8th Grade

7 Qs

quiz-placeholder

Similar activities

Thinkbook Review

Thinkbook Review

6th - 8th Grade

7 Qs

Robotics Terms 20-30

Robotics Terms 20-30

8th Grade

10 Qs

Engineering Design Process & Innovation EOY

Engineering Design Process & Innovation EOY

8th Grade

10 Qs

Knife Safety

Knife Safety

7th Grade - University

12 Qs

Worm and Wheel

Worm and Wheel

6th - 8th Grade

8 Qs

CAD Design 1

CAD Design 1

6th - 8th Grade

9 Qs

Ruler Fraction - Decimal Equivalents

Ruler Fraction - Decimal Equivalents

6th - 8th Grade

7 Qs

Programming Fundamentals (Lab 1)

Programming Fundamentals (Lab 1)

Assessment

Quiz

Engineering

8th Grade

Easy

Created by

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.