CSP exam review

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/39

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

40 Terms

1
New cards

x = 3

y = 4

print(x * y - y)

12

2
New cards

Which of the following is an example of abstraction in programming?

Using Variables instead of hardcoded values

3
New cards

def mystery(a, b):

return a + b * 2

print(mystery(2, 3))

8

4
New cards

In a loop that says for i in range(4):, how many times will the loop run?

4

5
New cards

What is the main purpose of using functions in programs?

To organize and reuse code

6
New cards

What is a Boolean expression?

An expression that evaluates to True or False

7
New cards

Which of the following is a correct logical operator

NOT

8
New cards

What is an event-driven program

A program that responds to the user's interactions

9
New cards

What does the modulus operator (%) do?

Returns the remainder

10
New cards

Which statement properly defines a list in Python?

List [” apple”, “banana”, “oranges”]

11
New cards

What is the purpose of an algorithm?

Solve a problem or complete a task

12
New cards

Which of these sorting algorithms is most efficient for large data sets?

Merge sort

13
New cards

What is the best reason to use data visualization?

To easily identify patterns or trends

14
New cards

Which of these data types is used to represent text in most programming languages?

String

15
New cards

What does it mean to traverse a list?

Go through each item one by one

16
New cards

What is a good reason to compress data?

To reduce the file size and transmission time

17
New cards

3

18
New cards

An algorithm has a run time of O(n^2). What does this mean?

The run time grows quadractically with the size of input

19
New cards

Which tool is used to visually represent an algorithms!

Flowchart

20
New cards

What is metadata?

Data about data

21
New cards

What does DNS stand for

Domain Name System

22
New cards

What is an IP address used for?

To identify devices on a network

23
New cards

Which protocol is responsible for reliable data transmission on the internet?

TCP

24
New cards

What is phishing?

An attack on Steel's info via a fake email/websites

25
New cards

What does HTTP stand for?

hypertext transfer protocol

26
New cards

What is encryption?

Making data unreadable without a key

27
New cards

Which of the following helps ensure data integrity during transmission?

Checksum

28
New cards

What is a digital divide?

A gap between people with and without access to tech

29
New cards

What is a packet switching?

Breaking data into smaller chunks for transmission m

30
New cards

Which of the following best describes a DDoS attack?

Multiple systems are overwhelming a server with traffic

31
New cards

What is the purpose of pseudocode?

To describe a program’s logic without syntax

32
New cards

Which of the following is a computing innovation?

A smart watch

33
New cards

What is the benefit of open-source software?

Anyone can modify or improve it

34
New cards

Which of these is an example of digital divide?

A student in the U.S. does not have access to Wi-Fi

35
New cards

What is a citizen science project?

Science work done by the public using computing tools

36
New cards

What is pair programming

Two people working on two seperate programs

37
New cards

What does scalability in a computing system refer do?

Its ability to handle growth or increased demanded

38
New cards

Which is a bias that can arise from computer models?

Skewed outcomes due to limited data

39
New cards

What is an iteration in programming?

A single repetition of a process or loop

40
New cards

What does an event handler do?

Runs code in response to an event like a click