COMP101 Midterm Terms

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

1/38

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

39 Terms

1
New cards

Boolean

A true or false statement

2
New cards

Character (char)

Datatype for characters, typographic symbols such as A, d, and $

3
New cards

Byte

8 bits of information storing numerical values from 127 to -128

4
New cards

Color

Datatype for storing color values

5
New cards

Double

Datatype for floating-point numbers larger than those that can be stored in a float

6
New cards

Float

Data type for floating-point numbers, e

7
New cards

Integer (int)

Datatype for integers, numbers without a decimal point

8
New cards

Long

Datatype for large integers

9
New cards

Array

a list of data

10
New cards

String

a sequence of characters

11
New cards
<

Less than

12
New cards

>

Greater than

13
New cards

Less than or equal to

14
New cards

=

Greater than or equal to

15
New cards

==

The equality operator (sometimes read: "equal equal") is used to compare two values, and returns a Boolean (true/false). Avoid confusion with the assignment operator "=",

16
New cards

!=

Does not equal to

17
New cards

&&

Returns true if both operands are true and returns false otherwise.

18
New cards

||

or

19
New cards

!

Does not

20
New cards

What is an algorithm

An ordered set of unambiguous steps that describes a process.

21
New cards

What does setup() do?

Use it to initialize variables, pin modes, start using libraries, etc. The setup() function will only run once.

22
New cards

What does draw() do?

continuously executes the lines of code contained inside its block until the program is stopped. Draw is called automatically and should never be called explicitly.

23
New cards

What is Ada?

A form of information representation that is used to communicate between people.

24
New cards

What is RGB?

an additive color model in which red, green, and blue light are added together in various ways to reproduce a broad array of colors.

25
New cards

What is Type-Casting?

Treating a variable of one type as though it is another type.

26
New cards

What is Type-Checking?

Testing for type errors in a given program

27
New cards

Variable Scope

dictates what portions of the code can "see" or use a variable, typically derived from where the variable was first created.

28
New cards

What is a Loop?

When you repeat a section of code according to certain conditions.

29
New cards

What is a for Loop?

It repeats things like other programming statements and blocks of code automatically.

30
New cards

What is a While Loop?

This code is repeated until the condition becomes false.

31
New cards

What is a do-while loop?

Condition controlled loop, Condition checked after execution

32
New cards

What is an if statement?

The command that allows you to make a decision based on true or false conditions

33
New cards

What is an if/else statement?

Gives the command that if something happens then, something else could also happen.

34
New cards

What is Modularity?

Having several smaller segments of code that can be executed in different orders, like functions

35
New cards

What is Abstraction?

Showing only essential information while hiding certain details.

36
New cards

What is Global Scope?

Variables declared outside of any function can be accessed from anywhere in your code.

37
New cards

What is local scope?

variables defined in one function cannot be accessed in another function.

38
New cards

What is a function?

a group of statements that exist within a program for the purpose of performing a specific task.

39
New cards

What is Cnt?

A local loop variable that maintains a count of the iterations of the loop.