#3 APCSP Study

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/42

flashcard set

Earn XP

Description and Tags

#3 APCSP Midterm Study

Last updated 11:02 PM on 8/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

43 Terms

1
New cards

What happens if the commands in Scratch are placed in the wrong order in your program? (Choose the best answer)

A. The program will not run.

B. The program will run but will not work as expected since the commands are out of order.

C. The program will work as expected because Scratch will automatically correct the steps.

D. The program will run slow.

B. The program will run but will not work as expected since the commands are out of order.

2
New cards

What should you use in your block command(s) to change the location of a sprite on the stage in Sprite?

 

A. Costumes tab

B. Stage area information

C. Stop sign

D. Coordinates

D. Coordinates

3
New cards

What happens when the green flag is clicked in a Scratch program?

 

A. Nothing unless we program it to do something.

B. The program starts.

C. The program moves faster.

D. The program moves slower.

B. The program starts.

4
New cards

Which term describes the block commands used to control sprites in Scratch?

A. Sprites

B. Backpack

C. Scripts

D. Command

C. Scripts

5
New cards

What happens when the stop sign is clicked in a Scratch program?

 

A. The program is paused.

B. The program moves slower.

C. The program stops.

D. Nothing unless we program it to do something.

C. The program stops.

6
New cards
<p>Consider the code segment below:</p><p>A. equals true.</p><p>B. equals false.&nbsp;</p><p>C. equals true.&nbsp;</p><p>What will be the value of output?&nbsp;</p><p>A. true</p><p>B. false</p><p>C. Cannot be determined</p><p>D. OR gate cannot have double input</p>

Consider the code segment below:

A. equals true.

B. equals false. 

C. equals true. 

What will be the value of output? 

A. true

B. false

C. Cannot be determined

D. OR gate cannot have double input

A. true

7
New cards
<p>Consider the code segment below. What is the output of the program?</p><p>A. true, true</p><p>B. false, false</p><p>C. true, false</p><p>D. x3 will always equal x4</p>

Consider the code segment below. What is the output of the program?

A. true, true

B. false, false

C. true, false

D. x3 will always equal x4

D. x3 will always equal x4

8
New cards
<p>Consider the code segment below. What is the output of the program?&nbsp;</p><p>A. 1200</p><p>B. false</p><p>C. true</p><p>D. admitted</p>

Consider the code segment below. What is the output of the program? 

A. 1200

B. false

C. true

D. admitted

C. true

9
New cards
<p>Consider the code segment below. What is the output of the program?&nbsp;</p><p>A. true, false</p><p>B. false, true</p><p>C. true, true OR false, false</p><p>D. true, true</p>

Consider the code segment below. What is the output of the program? 

A. true, false

B. false, true

C. true, true OR false, false

D. true, true

C. true, true OR false, false

10
New cards
<p>Consider the code segment below. What is the output of the program?</p><p>A. true or false</p><p>B. false</p><p>C. true</p><p>D. Memory overflow error</p>

Consider the code segment below. What is the output of the program?

A. true or false

B. false

C. true

D. Memory overflow error

B. false

11
New cards
<p>Consider the code segment below. What is the output of the program?</p><p>A. true, true</p><p>B. false, false</p><p>C. true, false</p><p>D. x3 will always equal x4</p>

Consider the code segment below. What is the output of the program?

A. true, true

B. false, false

C. true, false

D. x3 will always equal x4

D. x3 will always equal x4

12
New cards
<p>&nbsp;</p><p>Consider the code segment below. What is the output of the program?</p><p>A. true or false</p><p>B. false</p><p>C. true</p><p>D. Memory overflow error</p>

 

Consider the code segment below. What is the output of the program?

A. true or false

B. false

C. true

D. Memory overflow error

C. true

13
New cards
<p>Consider the code segment below. What is the output of the program?&nbsp;</p><p>A. false, false</p><p>B. true, true</p><p>C. true, false</p><p>D. false, true</p>

Consider the code segment below. What is the output of the program? 

A. false, false

B. true, true

C. true, false

D. false, true

B. true, true

14
New cards
<p>Consider the code segment below:</p><ol><li><p>equals true.</p></li><li><p>equals false.&nbsp;</p></li><li><p>equals true.&nbsp;</p></li><li><p>is unknown.&nbsp;</p></li></ol><p>If the output must equal true, what is the required value for D?</p><p>A. Cannot be determined</p><p>B. Does not matter. Can be true or false</p><p>C. Must be false</p><p>D. Must be true</p>

Consider the code segment below:

  1. equals true.

  2. equals false. 

  3. equals true. 

  4. is unknown. 

If the output must equal true, what is the required value for D?

A. Cannot be determined

B. Does not matter. Can be true or false

C. Must be false

D. Must be true

B. Does not matter. Can be true or false

15
New cards
<p>Consider the code segment below:</p><ol><li><p>equals true.</p></li><li><p>equals false.&nbsp;</p></li><li><p>equals unknown.&nbsp;</p></li></ol><p>If the output must equal true, what is the required value for C? </p><p>A. Cannot be determined</p><p>B. Does not matter. Can be true or false</p><p>C. Must be false</p><p>D. Must be true</p>

Consider the code segment below:

  1. equals true.

  2. equals false. 

  3. equals unknown. 

If the output must equal true, what is the required value for C?

A. Cannot be determined

B. Does not matter. Can be true or false

C. Must be false

D. Must be true

D. Must be true

16
New cards
<p>Consider the code segment below:</p><ol><li><p>is unknown</p></li><li><p>equals false.&nbsp;</p></li><li><p>equals true.&nbsp;</p></li><li><p>equals false.&nbsp;</p></li></ol><p>If the output must equal true, what is the required value for A?</p><p>A. Cannot be determined</p><p>B. Does not matter. Can be true or false</p><p>C. Must be false</p><p>D. Must be true</p>

Consider the code segment below:

  1. is unknown

  2. equals false. 

  3. equals true. 

  4. equals false. 

If the output must equal true, what is the required value for A?

A. Cannot be determined

B. Does not matter. Can be true or false

C. Must be false

D. Must be true

B. Does not matter. Can be true or false

17
New cards

When considering the architecture of an app, which of these need to be considered?

 

A. Prospective users

B. Security requirements

C. All of these

D. Deployment

C. All of these

18
New cards

In programming code, which of the following is NOT a user interface component?

 

A. image

B. button

C. variable

D. textarea

C. variable

19
New cards

A variable in programming is _______________________________.

 

A. A certain data type.

B. A placeholder to store information for the program.

C. A set of commands.

D. A user interface component.

B. A placeholder to store information for the program.

20
New cards

A key listener in programming code is required when using which input method?

 

A. keyboard

B. bluetooth

C. mouse

D. touchpad

A. keyboard

21
New cards

What does a key listener do?

 

A. Executes a sequence of commands in its block

B. Sends a message to a button

C. Listens for a click of a button

D. Listens for a keystroke on a keyboard

D. Listens for a keystroke on a keyboard

22
New cards

A student is working on a computer program project for school. He is having a great deal of trouble with the code so he uses another programmer's code to help with a portion of his program. When turning in his finished program, he does not cite the other programmer’s code. What should the consequences be for not citing the other programmer’s code? (Choose the best answer.)

 

A. Suspension from school for plagiarism.

B. A zero. Even if another programmer has given permission for their code to be reused by statement on a web page or just by sharing on the Web, their work should be cited.

C. A warning for plagiarism but no effect to their grade.

D. No consequences. Any programmer who shares their code online is giving it willingly with no expectations of their contribution.

B. A zero. Even if another programmer has given permission for their code to be reused by statement on a web page or just by sharing on the Web, their work should be cited.

23
New cards

The act of illegally making copies of software or enabling others to access software to which they are not entitled is

 

A. copyright infringement

B. software piracy

C. integrity

D. hacking

E. a data breach

B. software piracy

24
New cards

What would be the most credible source for a project on historical fashion?

 

A. A fictional historical novel where the author did extensive research of the fashion of the day

B. A college website

C. A blog from an author whose resume shows they are an expert in historical fashion

D. Scholarly journal from a well-known expert in the field

C. A blog from an author whose resume shows they are an expert in historical fashion

25
New cards

Which of the following the best definition of “intellectual property”?

 

A. The act of taking ownership of a subordinate’s creative works.

B. The right of a business to secure the deliverables generated by its employees.

C. A physical asset that has academic significance

D. Refers to creations of the mind, such as literary works, art, designs, and inventions.

E. The licensing of one’s thoughts.

D. Refers to creations of the mind, such as literary works, art, designs, and inventions.

26
New cards

Which of the following could be a consequence of copying and distributing copyrighted software as your own?

 

A. Community service

B. Civil suit

C. Legal fees

D. Imprisonment

A. Community service

B. Civil suit

C. Legal fees

D. Imprisonment

27
New cards

What is an example of plagiarism?

 

A. Rewriting someone else's essay but using your own word and noting the author's name at the end

B. Borrowing code from another programmer without giving credit

C. Borrowing someone else’s work and citing the author

D. Paraphrasing a paragraph you found online and adding just the website address.

B. Borrowing code from another programmer without giving credit

28
New cards

It is illegal to open and read someone else's email without permission even if you have their password.

 

A. True

B. False

A. True

29
New cards

Which of the following is considered an unethical use of computer resources?

 

A. Downloading file sharing software on your home computer

B. Searching online for an electronic version of a textbook

C. Purchasing an app from an app store and downloading it directly to a mobile device

D. Searching online for the answers to exercises and quizzes

D. Searching online for the answers to exercises and quizzes

30
New cards

What is Agile Design?

 

A. A software development cycle that includes long development cycles which allow for frequent feedback

B. A software development cycle that includes short development cycles which allow for frequent feedback

C. A software development cycle that includes long development cycles which allow for infrequent feedback

D. A software development cycle that includes short development cycles which allow for feedback at the end of the process

B. A software development cycle that includes short development cycles which allow for frequent feedback

31
New cards

Look at the list below:

var myNumbers = [32, 64, 33, 0 , 15, 26, 3]

Based on the CollegeBoard requirements of lists what is the index value for: myNumbers[3]

 

A. 15

B. 3

C. 0

D. 33

D. 33

32
New cards

Look at the list below:

var myNumbers = [32, 64, 33, 0 , 15, 26, 3]

Based on the CollegeBoard requirements of lists what is the index value for: myNumbers[6]

 

A. 64

B. 32

C. 26

D. 3

C. 26

33
New cards

Look at the list below:

var myNumbers = [32, 64, 33, 0 , 15, 26, 3]

What is the index value for: myNumbers[0]

 

A. 3

B. 0

C. 32

D. 33

C. 32

34
New cards

Look at the list below:

var myNumbers = [32, 64, 33, 0 , 15, 26, 3]

What is the index value for: myNumbers[2]

 

A. 0

B. 64

C. 26

D. 33

D. 33

35
New cards
<p><span>Based on the CollegeBoard requirements of traversals, what will be stored in updatedScores after this code segment is run?</span></p><p></p><p>A. [5, 0, 0, 5, 5]</p><p>B. [77, 37, 50, 92, 86]</p><p>C. [0, 37, 50, 0, 0]</p><p>D. [82, 0, 0, 97, 91]</p>

Based on the CollegeBoard requirements of traversals, what will be stored in updatedScores after this code segment is run?

A. [5, 0, 0, 5, 5]

B. [77, 37, 50, 92, 86]

C. [0, 37, 50, 0, 0]

D. [82, 0, 0, 97, 91]

D. [82, 0, 0, 97, 91]

36
New cards
<p><span>Based on the CollegeBoard requirements of lists, what will be displayed after this code segment is run?</span></p><p></p><p>A. 3</p><p>B. 2</p><p>C. 1</p><p>D. 4</p>

Based on the CollegeBoard requirements of lists, what will be displayed after this code segment is run?

A. 3

B. 2

C. 1

D. 4

D. 4

37
New cards
<p><span>Based on the CollegeBoard requirements of loops, what will be displayed after this code segment is run? </span></p><p></p><p>A. "1 3 5"</p><p>B. "1 3 6"</p><p>C. "2 4 6"</p><p>D. "1 2 3"</p>

Based on the CollegeBoard requirements of loops, what will be displayed after this code segment is run?

A. "1 3 5"

B. "1 3 6"

C. "2 4 6"

D. "1 2 3"

A. "1 3 5"

38
New cards
<p><span>Based on the CollegeBoard requirements of loops, what will be displayed after this code segment is run? </span></p><p></p><p>A. "and 0 and 1 and 2"</p><p>B. "and 1 and 2 and 3"</p><p>C. "0 and 1 and 2"</p><p>D. "1 and 2 and 3"</p>

Based on the CollegeBoard requirements of loops, what will be displayed after this code segment is run?

A. "and 0 and 1 and 2"

B. "and 1 and 2 and 3"

C. "0 and 1 and 2"

D. "1 and 2 and 3"

B. "and 1 and 2 and 3"

39
New cards
<p><span>Based on the CollegeBoard requirements of lists, what will be displayed after this code segment is run? </span></p><p></p><p>A. emerald</p><p>B. garnet</p><p>C. opal</p><p>D. sapphire</p>

Based on the CollegeBoard requirements of lists, what will be displayed after this code segment is run?

A. emerald

B. garnet

C. opal

D. sapphire

A. emerald

40
New cards

#1: Which area on the Scratch interface allows you to change the background of a Scratch screen?

 

A. Backpack

B. Scripts area

C. Help area

D. Stage information box

D. Stage information box

41
New cards

#1: Which user interface component does NOT usually need an event handler?

 

A. Button

B. Checkbox

C. Textfield

D. Label

D. Label

42
New cards

#1: Before planning the logic of the program, a programmer must ___________________________________.

 

A. test the program.

B. write the program code.

C. maintain the program.

D. understand the problem.

D. understand the problem.

43
New cards

What does the event handler do in programming code?

 

A. Sends a message to a button

B. Listens for a keystroke

C. Listens for a click of a button

D. executes a sequence of commands in its block

D. executes a sequence of commands in its block