Unit 4 Advanced AP CSP

Unit 4 Advanced AP CSP

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Elements, Paths, and Entities

Elements, Paths, and Entities

9th - 12th Grade

15 Qs

11th Class Python Basics

11th Class Python Basics

11th Grade

10 Qs

AP Java 9-15-2023 (just functions1)

AP Java 9-15-2023 (just functions1)

9th - 12th Grade

10 Qs

Text formatting tags

Text formatting tags

9th Grade

10 Qs

Arrays += Chan

Arrays += Chan

9th - 12th Grade

12 Qs

Python Strings

Python Strings

12th Grade

10 Qs

Python Revision Tour - I

Python Revision Tour - I

12th Grade

15 Qs

Java Basics #2

Java Basics #2

10th - 12th Grade

7 Qs

 Unit 4 Advanced AP CSP

Unit 4 Advanced AP CSP

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Mister Swagner

Used 11+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

1. Which of the following scenarios would require the use of a function?
A. Storing a user's name
B. Evaluating an arithmetic expression
C. Repeating a set of instructions for different inputs
D. Comparing two values

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

2. How would you modify the value of an existing variable named "age" to 25?

A. age == 25

B. age = 25

C. 25 += age

D. age(25)

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

3. Which of the following is not a comparison operator?

A. !=

B. ==

C. <=

D. &&

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

4. In a conditional statement, which type of value determines which code block is executed?
A. Integer
B. String
C. Boolean
D. Float

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

5. If a function is designed to calculate the square of a number, what would be the result of the function call for the value 5?
A. 10
B. 25
C. 30
D. 35

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

6. How would you code the NOT logical operator to reverse the truth value of the expression (a > b)?

A. !(a > b)

B. (a > b) NOT

C. (a > b) !=

D. NOT (a > b)

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

7. Analyze the following expression: (x > 10) AND (y < 20). What type of value does this expression return?
A. Integer
B. Float
C. String
D. Boolean

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?