Circuits Final after midterm

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

1/58

encourage image

There's no tags or description

Looks like no tags are added yet.

59 Terms

1
New cards

Computer program

Sequence of statements whose objective is to accomplish

a task

2
New cards

Programming

Process of planning and creating a program

3
New cards

3 Control structures

A. Sequence, B. Selection, C. Repitition

4
New cards

Sequence

knowt flashcard image
5
New cards

Binary for 15

0000 1111

6
New cards

Decimal for 15

15

7
New cards

Hex for 15

F

8
New cards

Oct for 15

17

9
New cards

selection

knowt flashcard image
10
New cards

Repetition

knowt flashcard image
11
New cards

==

equal to

12
New cards

!=

Not equal to

13
New cards

<

Less than

14
New cards

<=

less than or equal to

15
New cards

>

greater than

16
New cards

>=

Greater than or equal to

17
New cards

!

Not

18
New cards

&&

AND

19
New cards

||

OR

20
New cards

Function or?

subprogram

21
New cards

Function or subprogram

collection of statements;

when executed, accomplishes somethin

22
New cards

Syntax rules

rules that specify which statements

(instructions) are legal or valid

23
New cards

Semantic rules

determine the meaning of the

instructions

24
New cards

Programming language

a set of rules, symbols, and

special words

25
New cards

Semantics

set of rules that gives meaning to a

language

26
New cards

semantics examples

2 + 3 5 and (2 + 3) 5

are both syntactically correct expressions, but have

different meanings

27
New cards

Single line comment

begin with //

28
New cards

Multiple line comment

/*

You can include comments that can

occupy several lines.

*/

29
New cards

Reserved word symbols (or keywords):

*Cannot be used for anything other than their intended use

30
New cards

int

reserved word

31
New cards

float

reserved word

32
New cards

double

reserved word

33
New cards

char

reserved word

34
New cards

const

reserved word

35
New cards

void

reserved word

36
New cards

return

reserved word

37
New cards

Variable

a memory location whose contents can be

changed

38
New cards

Identifiers

unique names assigned to

variables, functions, classes, structs, or

other entities within the program. They

help identify said entities uniquely

within the code

39
New cards

how do you declare the data?

specify the data type it

will store

40
New cards

int counter;

variable declared ex:

41
New cards

double interestRate;

variable declared ex:

42
New cards

char grade;

variable declared ex:

43
New cards

Identifier

the name of something that appears in a

program

44
New cards

What does an identifier consist of?

Consists of letters, digits, and the underscore character (_).

45
New cards

Is C++ case sensitive?

Yes

46
New cards

Illegal identifier in, employee survey

space in between employee and survey

47
New cards

Illegal identifier in, Hello!

Exclamation point

48
New cards

Illegal identifier in, one + two

plus sign

49
New cards

illegal identifier in, 2nd

cannot begin with a degit

50
New cards

can use a comma in an integer?

no, commas are only used for separating items in a list

51
New cards

3 categories of simple data

integers

floating-point or double

enumeration type

52
New cards

integers

numbers without a decimal

53
New cards

floating-point or double

decimal numbers

54
New cards

enumeration type

user-defined data type

55
New cards

cin

is used with >> to gather input

56
New cards

>>

stream extraction operator

57
New cards

cout

The syntax of cout

58
New cards

cout also called

output statement

59
New cards