Sem 1 MKPD 3 - T: AP CSP  Unit 1 Test (UTeach)

Sem 1 MKPD 3 - T: AP CSP Unit 1 Test (UTeach)

9th - 12th Grade

22 Qs

quiz-placeholder

Similar activities

Search & Sort Algorithms

Search & Sort Algorithms

7th - 11th Grade

18 Qs

AP CSP 1.1.6 - 1.1.9 Vocabulary

AP CSP 1.1.6 - 1.1.9 Vocabulary

9th - 12th Grade

19 Qs

Grade4Term3-Shj

Grade4Term3-Shj

4th Grade - University

18 Qs

T-Level DPDD: Algorithms Quiz

T-Level DPDD: Algorithms Quiz

11th Grade

20 Qs

2.1 Algorithms

2.1 Algorithms

10th - 12th Grade

20 Qs

Introduction to Programming Vocabulary Test

Introduction to Programming Vocabulary Test

6th Grade - University

20 Qs

Exercise 1

Exercise 1

9th Grade

18 Qs

Algorithms & Pseudocodes

Algorithms & Pseudocodes

9th Grade

17 Qs

Sem 1 MKPD 3 - T: AP CSP  Unit 1 Test (UTeach)

Sem 1 MKPD 3 - T: AP CSP Unit 1 Test (UTeach)

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Natalie King

Used 23+ times

FREE Resource

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following two algorithms for determining the tallest person in a group.


Algorithm A

Step 1: Everybody stands and lines up against the wall.

Step 2: One person from those who are standing steps forward.

Step 3: One person from those who are standing steps forward.

Step 4: The shorter of these two people who stepped forward sits down.

Step 5: Repeat steps 3 and 4 until only one person is standing.

Step 6: The last person standing is the tallest in the group.


Algorithm B

Step 1: Everybody stands and lines up against the wall.

Step 2: Each standing person pairs up with one other standing person.

Step 3: The shorter member of each pair sits down.

Step 4: Repeat steps 2 and 3 until only one person is standing.

Step 5: The last person standing is the tallest in the group.


Which of the following statements about these two algorithms is true when applied to a group of 32 people?

Algorithm A is never faster than Algorithm B

Algorithm A is rarely faster than Algorithm B

Algorithm A is usually faster than Algorithm B

Algorithm A is always faster than Algorithm B

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

. Which of the following is a key factor in determining the efficiency of an algorithm?

The machine on which the algorithm is running

The length of the algorithm

The required number of computations required in the algorithm

The amount of computational resources used by the algorithm and the number of times a statement or group of statement executes

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following types of languages is optimized for machine processing and maybe written and expressed as a series of binary digits (e.g., ones and zeros), making it difficult for humans to read and write?

Natural language

Pseudocode

High-level programming language

Low-level programming language – machine language

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The local government for a newly developed community would like to begin conducting an annual census to make an accurate count of its current population and gather other relevant demographic information about its residents. The community is currently relatively small and consists of around 500 homes. However, it is growing quickly and expects to have more than 100,000 homes in the next few years.


Which of the following plans would be the most practical and most efficient solution for computing an accurate population count, no matter how large the community grows?

Hire one person to go door-to-door conducting the census. This person will visit

all of the homes in the community once each year.

Hire 100 people to go door-to-door conducting the census. Each of these people

will visit 1% of the homes in the community once each year.

Every year, mail a copy of the census form to every home in the community and

require that each household complete the form themselves and mail it back to a

central office for processing. Then follow up with those that did not.

Conduct the census once for only 100 homes and then estimate the annual

population for all later years based on the relative increase in the number of homes.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Using a Vigenere Cipher with a keyphrase code of BEG, decipher the given hidden message:


kirmc hfet

happy days

knives jump

jelly bean

jumpy jack

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Using a Caesar Cipher with an offset of 13, decode the following ciphertext back to plaintext:


znyjner

malware

viruses

cyphers

scratch

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Using a Caesar cipher of shift -3, encode the following message:


elevens bench

bibsbkp ybkze

hohyhqv ehqfk

elevens bench

None of the above

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?