Java Program Parts

Java Program Parts

9th Grade

22 Qs

quiz-placeholder

Similar activities

Computer 10 | Introduction to Java

Computer 10 | Introduction to Java

9th - 12th Grade

20 Qs

CodeHS 3.1 Boolean Expressions-4.2 For Loops Review

CodeHS 3.1 Boolean Expressions-4.2 For Loops Review

9th - 12th Grade

21 Qs

CPA Practice 9-21-2021

CPA Practice 9-21-2021

9th - 12th Grade

18 Qs

uCertify Chapter 1 Test

uCertify Chapter 1 Test

9th - 12th Grade

20 Qs

Quarter 3 Final Exam: Functions and Parameters

Quarter 3 Final Exam: Functions and Parameters

9th - 12th Grade

20 Qs

J2 - Review for Exam- Loops and if Statements

J2 - Review for Exam- Loops and if Statements

9th - 12th Grade

27 Qs

CodeHS Functions and Return Values

CodeHS Functions and Return Values

9th - 12th Grade

20 Qs

Unit 5 Review

Unit 5 Review

9th - 12th Grade

18 Qs

Java Program Parts

Java Program Parts

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Ariel Brumfield

Used 10+ times

FREE Resource

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Capitalization does NOT matter with Java.

True!

False!

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When coding with Java,

System.out.println("Go Java!");

is the same code as

system.out.println("Go Java!");

True!

False!

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The semicolon

;

is used like a period at the end of a coding sentence.

True!

False!

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is     {

        System.out.println("This is a literal print.");

        System.out.print("Yea!");

        System.out.println("Go Java!");

    }

the same code as

  { System.out.println("This is a literal print."); System.out.print("Yea!"); System.out.println("Go Java!"); }

Yes

No

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is    {

        System.out.println("This is a literal print.");

        System.out.print("Yea!");

        System.out.println("Go Java!");

    }

"better" coding than

  { System.out.println("This is a literal print."); System.out.print("Yea!"); System.out.println("Go Java!"); }

It is a more efficient use of space

It is much easier to read, change, and debug

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Do the spaces and new lines (enters) in the code change anything about what the program does or looks like?

Yes, the program runs differently because of spaces and enters in the code.

No, Yes, the program completely ignores spaces and enters in the code.

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

/*************************************

 *Project:  Day1Lab

 *Programmer:  Mrs. B.

 *Date:  October 2, 2023

 *Program Name:  Hello.java

**************************************/

What is this?

A change log

A link to the input output Java subfolder

The main method

The name of the program

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?