AP CSP code.org Unit 4 Flashcard

AP CSP code.org Unit 4 Flashcard

Assessment

Flashcard

Computers

12th Grade

Practice Problem

Easy

Created by

Wayground Content

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

8 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What are variables used for in programming?

Back

To store and manipulate data

2.

FLASHCARD QUESTION

Front

Which of the following is NOT a valid data type in programming? number, boolean, string, person

Back

person

3.

FLASHCARD QUESTION

Front

What is the purpose of functions in programming?

Back

To group a set of repeated instructions together

4.

FLASHCARD QUESTION

Front

What is debugging in programming?

Back

Identifying and fixing errors or bugs in a program

5.

FLASHCARD QUESTION

Front

Which of the following is NOT a common debugging technique? Adding console log statements, Reviewing error logs, Using a watcher

Back

Randomly adding semi-colons

6.

FLASHCARD QUESTION

Front

What is the purpose of comments in programming?

Back

To provide explanations or notes within the code

7.

FLASHCARD QUESTION

Front

What is the correct syntax for declaring a variable to show that the current number of dogs is 2?

Back

var numOfDogs = 2

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?