Java part 1 outputs and variables

Java part 1 outputs and variables

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

week 1 basic java coding language

week 1 basic java coding language

9th - 12th Grade

12 Qs

Sains Komputer (Java) 1: Sintaks Asas & Pembolehubah

Sains Komputer (Java) 1: Sintaks Asas & Pembolehubah

10th Grade - University

10 Qs

CSA Lessons 1 - 4

CSA Lessons 1 - 4

10th - 12th Grade

15 Qs

APCS Printing and objects

APCS Printing and objects

9th Grade - University

10 Qs

APCSU1D5 Compound Assignments

APCSU1D5 Compound Assignments

12th Grade

10 Qs

AP Warm UP 1

AP Warm UP 1

12th Grade

6 Qs

Intro to Java Loops

Intro to Java Loops

9th - 12th Grade

15 Qs

java variables 1

java variables 1

9th - 12th Grade

13 Qs

Java part 1 outputs and variables

Java part 1 outputs and variables

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Alvin Huang

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of data is used to enter the value ("Welcome")?
Text
Characters
String
Boolean

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When we want to print in Java, we use the code ......
system.out.print();
System.out.println();
System.Out.Printf();
System.out.show();

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you state a main method in java?

public static void main(String args)

public void main(String args)

public static void main(String[] args)

public static void main()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement skips a line?

System.out.print("\n");

System.out.print("n\");

System.out.print("n");

System.out.print("nn");

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The arithmetic operator '/' is used to... 
Seperate
Multiply
Divide
Test

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The arithmetic operator '=' is used to...
Assign to variable
Test to see if equal values
create a new variable
add two variables together

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A variable that holds words
String
boolean
int
float

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?