Data Abstraction
Variables & Assignments
Strings
Vocabulary
100

What result do you receive when you use a print or display command?

Display the value of the variable or constant

100

What is CamelCase? Give me an example of naming a variable using the words 'first' & 'last'.

CamelCase is where two words are combined and the first word has no capital while the first letter of the 2nd word is capital. Example: firstLast

100

What is a string?

A string is a list or array of sequential characters. 

100

What is a linear search?

An algorithm that iterates through each value in a list until it finds the target value.

200

When is Abstraction used?

When you store and access data information.

200

What are variables?

Variables are basically “Containers” which can hold values, you can name it anything you want. These variables can hold both strings and numbers.

200

What is the "+" operator used for?

It is used to add variables or stings together.

200

What is a heuristic solution?

A technique that helps an algorithm find a good solution to a hard problem. Ex: always walking toward the north star when you are stuck in a forest

300

What is the minimum number of values a list has?

0 (Empty List)

300

What data types would these be (think of string, boolean, integer, float):

Highscore

getName

isRaining

Highscore would be an integer, getName would be a string, and isRaining (a little tricky) would be a boolean (yes/no)

300

How are two strings added together?

By placing the second string at the end of the first string with the "+" operator in the middle.

300

What is an API and what is it used for?

An API is an Application Programming Interface used as a pathway for the user and other computers/programs to communicate and interact with each other.

400

T or F? A car is an example of Data Abstraction.

T

400

Other than Camel/SnakeCase, what are the rules for naming a variable? (List 3)

All possible answers are

1. Variable names are never in quotation marks even if they are words 

2. Always starts with lowercase 

3. Must start with a letter 

4. Variable can never have spaces

400

What is a substring?

A subset or part of another string or a contiguous sequence of characters within a string. (part of an existing string)

400

How are binary searches and linear searches different?

While a linear search can look through any type of list by examining each value 1 by 1, a binary search can only be used on sorted lists and splits the list in half until it reaches the target value. Binary lists may be faster but face the constraint of only working on sorted lists.