CSP - Unit 6

CSP - Unit 6

9th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

Data

Data

9th Grade - University

11 Qs

Comp Sci Unit 3 #9

Comp Sci Unit 3 #9

11th Grade

10 Qs

Searching Algorithms

Searching Algorithms

9th - 11th Grade

16 Qs

Assessment - Binary Linear Search and Bubble Sort

Assessment - Binary Linear Search and Bubble Sort

9th Grade

15 Qs

FLOWCHART REVIEW

FLOWCHART REVIEW

10th Grade

13 Qs

Coding Vocab Fab!!

Coding Vocab Fab!!

3rd - 9th Grade

13 Qs

 Computing Revision JCG

Computing Revision JCG

KG - University

14 Qs

Python - Loops & Lists

Python - Loops & Lists

7th - 11th Grade

15 Qs

CSP - Unit 6

CSP - Unit 6

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Jake Oertle

Used 6+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A school is developing a program to keep track of information about students and their class schedules. In which of the following instances would a data abstraction be most helpful?

The program includes individual variables to store the names of each student rather than a single list of students.

A program includes multiple comments that could be combined into a single comment

A program includes repeated programming statements that could be moved inside a loop

A program includes repeated code that could be moved inside a function.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following will result in ONLY all the items in list being printed to the console if placed where the program reads <INSERT CODE> and the program is run?

i < list[list.length]

i < list.length

i < list[0]

i < list.length-1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

wordList is a list of words that currently contains the values ["ball", "rock", "stick"]

Which of the following lines will result in the list containing the values ["stick", "rock", "stick"]

wordList[2] = wordList[0]

wordList[0] = wordList[2]

insertItem(wordList, 0, "air")

removeItem(wordList,0)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be displayed in the console when this program runs?

A

B

C

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be displayed when this program finishes running?

3

6

7

5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image


What will be displayed in the console when the following program runs?

0 2 4 6

0 2 4

2 4 6

The program will result in an infinite loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following program display in the console?

TEST TEST TEST TEST TEST

TEST TEST

TEST TEST TEST TEST

ERROR

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?