Search Header Logo

AP COMP SCI A - CodeHs Unit 3 Vocab

Authored by Kelsey Borys

Instructional Technology

12th Grade

AP COMP SCI A - CodeHs Unit 3 Vocab
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What are relational operators in Java?

a) ==, !=, <, >, <=, >=

b) +, -, *, /

c) &&, ||, !

2.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Fill in the blank: An if statement lets you ask a question to the program and only run code if the answer is ____.

true

false

maybe

unknown

3.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What is a control structure?

A way to store data

A method to change the flow of the code

A type of variable

4.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Fill in the blank: A conditional statement evaluates to ____ or ____.

true, false

yes, no

1, 0

positive, negative

5.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What does an if-else statement do?

Executes code only if all conditions are false

Lets us run either one section of code or another depending on a test

Stores data in a variable

6.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Fill in the blank: An else statement executes code only if all conditions are ____.

false

true

met

checked

7.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What is a condition in programming?

A type of loop

Code inside an if statement or while-loop

A method to store data

Access all questions and much more by creating a free account

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

Already have an account?