Search Header Logo

AP CSP Unit 5 Part 1

Authored by Brea Colagross

Computers

10th - 12th Grade

Used 33+ times

AP CSP Unit 5 Part 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is an event-driven program?

A program that does not implement algorithms

A program in which all portions of the code will always be executed while it is running

A program written to respond to specified events by executing a block of code of function associated with the event

A program that can only be run once and only have one possible outcome, regardless of the user interactions.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not an action a programmer should take when debugging a segment of code?

Display the value of variables at various points during the program

Ask a friend or collaborator to look over the code segment to see if they are able to find any errors

Delete all the code and re-type it

Check the names of each variable for spelling and capitalization errors

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider the following code:

var a = 0

var b = 2

var c = 6

a = a+b

b=a+c

c=a+b

What are the values of a, b, and c after this code segment has been run?

a= 0 b=2 c=6

a=2 b=6 c=2

a=2 b=2 c=8

a= 2 b=8 c=10

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An action that causes something to happen.

Event
Action
Call
Program

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An overarching term for the coding tasks involved in making a program respond to events by triggering functions.

Event Handling
Programming
Action Handling
Triggering

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

On-screen objects, like buttons, images, text boxes, pull down menus, screens and so on.

UI Elements
Design Studio
Images
CSS Code

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A placeholder for a piece of information that can change

Variable
Proxy
Element
Condition

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?