Semester Exam - CS2 (2024)

Semester Exam - CS2 (2024)

Assessment

Flashcard

Computers

12th Grade

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

49 questions

Show all answers

1.

FLASHCARD QUESTION

Front

When we want to print in Java, we use the code ....

Back

System.out.println();

2.

FLASHCARD QUESTION

Front

What does a comment look like in Java?

Back

//comment

3.

FLASHCARD QUESTION

Front

Which of the following is incorrect? Options: int count = 50.0;, double salary = 50;

Back

int count = 50.0;

4.

FLASHCARD QUESTION

Front

What would the new value of A be? A=10; A--;

Back

9

5.

FLASHCARD QUESTION

Front

What symbol represents the and operator in Java?

Back

&&

6.

FLASHCARD QUESTION

Front

What symbol represents the or operator in Java?

Back

||

7.

FLASHCARD QUESTION

Front

Which one of the following is NOT a logical operator? Options: ||, &&, $$, !

Back

$$

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?