CS Unit 2 Quiz

CS Unit 2 Quiz

12th Grade

24 Qs

quiz-placeholder

Similar activities

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

9th - 12th Grade

20 Qs

AP Computer Science A Unit 1

AP Computer Science A Unit 1

9th - 12th Grade

19 Qs

SAINS KOMPUTER TINGKATAN 4 (BAB1)

SAINS KOMPUTER TINGKATAN 4 (BAB1)

KG - University

21 Qs

APCSA Arrays

APCSA Arrays

9th - 12th Grade

20 Qs

Ch 3 Java Review-Strings and Math

Ch 3 Java Review-Strings and Math

9th - 12th Grade

21 Qs

Week 6 - CP1

Week 6 - CP1

12th Grade

20 Qs

Java, part I

Java, part I

11th Grade - University

20 Qs

Arrays in Java

Arrays in Java

9th - 12th Grade

20 Qs

CS Unit 2 Quiz

CS Unit 2 Quiz

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Chandra Batzel

Used 2+ times

FREE Resource

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the name of the method to print out text in Java?


System.out.println()

System.out.printline()

System.output()

System.out.PRINTLN()

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the output of the following lines?

int x = 24;

System.out.println("The total is " + x + x);

The total is 24

The total is 2424

The total is 48


The total is x + x

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is not a primitive type?

int

double

String

boolean

char

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the value of x after this code?

int x = 5;

x = 10;

x = 4;

5

10

4

true

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the proper syntax to initialize a double called temperature to have the value 70.4?

int temperature = 70.4;

double temperature = 70.4;


temperature = 70.4;


float temperature = 70.4;

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the result of this expression?

5 + 2 / 3 + 1

5

6

6.67

0

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which expression returns the 1’s place of an integer x?

x % 10

x / 10

x % 100


x + 1

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?