Computer Science Principles Practice Flashcards

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

1/38

flashcard set

Earn XP

Description and Tags

Practice vocabulary flashcards based on lecture notes covering search algorithms, JavaScript list and string methods, function logic, and cybersecurity fundamentals.

Last updated 2:26 AM on 5/21/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

39 Terms

1
New cards

Binary Search Prerequisite

The requirement that the list must be sorted for the search to function correctly.

2
New cards

Linear Search

A type of search that checks each item in a list one by one.

3
New cards

Linear Search Best Case

The scenario where the target is the first item in the list.

4
New cards

Linear Search Worst Case

The scenario where the target is the last item in the list.

5
New cards

Binary Search Iteration

A single step in binary search where the middle value is checked, resulting in the list being cut in half.

6
New cards

Speedup Formula

Sequential time÷Parallel time\text{Sequential time} \div \text{Parallel time}

7
New cards

JavaScript List Creation

Syntaxes such as var list=[item1, item2, ...];\text{var list} = [\text{item1, item2, ...}];

8
New cards

List Operations

Common tasks performed on lists including Append, Insert, and Remove.

9
New cards

Index Shifting

The process where items shift down and indexes update automatically after an item is removed from a list.

10
New cards

appendItem()

A function that adds an item to the very end of a list.

11
New cards

removeItem()

A function used to remove an item at a specific index from a list.

12
New cards

substring()

A function that returns a specific part of a string.

13
New cards

substring(start, end)

A method where the result includes characters from the start index up to, but not including, the end index.

14
New cards

"HELLO".substring(1, 4)\text{"HELLO".substring(1, 4)}

Returns the string "ELL"\text{"ELL"}.

15
New cards

"APCSP".substring(0, 2)\text{"APCSP".substring(0, 2)}

Returns the string "AP"\text{"AP"}.

16
New cards

Return Statement

A command that serves two purposes: returning a value to the caller and stopping the execution of the function.

17
New cards

Function Return Limit

A function can return a maximum of one\text{one} value.

18
New cards

Function Purpose

Used by programmers to organize and reuse code, as well as to manage complexity within a program.

19
New cards

Function Definition vs. Calling

Defining a function refers to writing its code, while calling a function refers to executing or running that code.

20
New cards

Even Number Check

The boolean expression num%2==0\text{num} \% 2 == 0.

21
New cards

Odd Number Check

The boolean expression num%2!=0\text{num} \% 2 != 0.

22
New cards

Boolean Flag Loop Mistake

A common error where the flag is initialized to true at the start of a loop instead of false.

23
New cards

API Documentation Components

Standard documentation containing a description, parameters, and the return value.

24
New cards

Malware

Software designed specifically to be harmful to a computer or system.

25
New cards

Phishing

A method of tricking users into providing personal information, such as a fake email requesting login credentials.

26
New cards

Keylogging

The malicious practice of recording every keystroke made by a user.

27
New cards

Rogue Access Point

A fake network setup to provide unauthorized access to data.

28
New cards

Multi-factor Authentication

A security method that requires multiple independent ways to verify a user's identity.

29
New cards

Symmetric Encryption

An encryption method that uses the same single key for both the encryption and decryption processes.

30
New cards

Public Key Encryption

A system where a public key is used for encryption and a separate private key is used for decryption.

31
New cards

Caesar Cipher

A basic encryption technique that involves shifting letters of the alphabet by a fixed number.

32
New cards

For Loop Components

The three essential parts of a loop: initialization, condition, and increment.

33
New cards

i++i++

A shorthand command that increases the value of the variable ii by 11.

34
New cards

i<list.lengthi < \text{list.length}

A condition ensuring a loop runs only while the counter is within the valid bounds of the list.

35
New cards

List Start Index

In JavaScript, all lists begin at index 00.

36
New cards

list.length

A property that returns the total count of items currently in a list.

37
New cards

Out of Bounds Error

An error triggered if you attempt to access an index equal to list.length\text{list.length}.

38
New cards

First Letter Extraction

The operation substring(0, 1)\text{substring(0, 1)} used to isolate the first character of a string.

39
New cards

Filtering Criteria Example

Using word.substring(0, 1) == "S"\text{word.substring(0, 1) == "S"} to identify words that begin with the letter S.