Programming Fundamentals: Exam One Study Guide

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

1/66

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:23 AM on 9/21/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

67 Terms

1
New cards
<p>From a High-Level Program to an Executable File: Fill in the chart:</p>

From a High-Level Program to an Executable File: Fill in the chart:

<p></p>
2
New cards

Does Primary Memory hold information after the computer has been turned off? (T/F)

False

3
New cards

Primary Memory is fast and volatile. (T/F)

True

4
New cards

Secondary Memory is RAM. (T/F)

False

5
New cards

Secondary memory hold information after the program is terminated, but it is slow. (T/F)

True

6
New cards

List the five radices (specifically the one’s mention in class)

Binary, Decimal, Hexadecimal, Octal, and Base 64.

7
New cards

A byte is

8 bits

8
New cards

A nybble is

4 bits

9
New cards

What is the binary prefix?

0b

10
New cards

What is the octal prefix?

0

11
New cards

What is the hexadecimal prefix?

0x

12
New cards

What is the long suffix?

l or L

13
New cards

What is the long long suffix

ll or LL

14
New cards

What is the float suffix?

f or F

15
New cards

Name the fifteen “primative” data types from GREATEST to SMALLEST

A. long long double ,long double, float, signed long long int, unsigned long long int, signed long int, unsigned long int, signed int, unsigned int, signed short, unsigned int, signed short, unsigned short, signed char, unsigned char, bool, string (not a primitive)

B. long double, double, float, signed long long int, unsigned long long int, signed long int, unsigned long int, signed int, unsigned int, signed short, unsigned int, signed short, unsigned short, signed char, unsigned char, bool, string (not a primitive)

C. long double, double, float, unsigned long long int, signed long long int, unsigned long int, signed long int, unsigned int, signed int, unsigned short, signed int, unsigned short, signed short, unsigned char, signed char, bool, string (not a primitive)

D. long long double ,long double, double, float, unsigned long long int, signed long long int, unsigned long int, signed long int, unsigned int, signed int, unsigned short, signed int, unsigned short, signed short, unsigned char, signed char, bool, string (not a primitive)

C.

16
New cards

What is missing in this code? (Write the term)

[a]

[b] int main()

[c] {

[d] std::cout<<"Hello World";

[e] return 0;

[f] }

Missing preprocessor directive [a]

17
New cards

What is missing in this code? (Write the term)

[a] #include <iostream>

[b] int main()

[c] {

[d] std::cout<<"Hello World"

[e] return 0;

[f] }

Missing Punctuation [d]

18
New cards

What is missing in this code?

[a] #include <iostream>

[b] int main()

[c] {

[d] cout<<"Hello World";

[e] return 0;

[f] }

std::

19
New cards

Inputting in 2.3.5.1

Code:

int main()

{

int larry;

double bob;

char phil;

std::cin >> bob >> phil >> larry;

std::cout << std:: endl;

std::cout<< “larry:” << larry << std:: endl;

std::cout << cout << “bob:” << bob<< std:: endl;

std::cout << cout << “phil:” << phil<< std:: endl;

}

What will larry output? (ignoring the name)

5

20
New cards

Inputting in 2.3.5.1

Code:

int main()

{

int larry;

double bob;

char phil;

std::cin >> bob >> phil >> larry;

std::cout << std:: endl;

std::cout << “larry:” << larry << std:: endl;

std::cout << “bob:” << bob<< std:: endl;

std::cout << “phil:” << phil<< std:: endl;

}

What will bob output? (ignoring the name)

2.3

21
New cards

Inputting in 2.3.5.1

Code:

int main()

{

int larry;

double bob;

char phil;

std::cin >> bob >> phil >> larry;

std::cout << std:: endl;

std::cout << “larry:” << larry << std:: endl;

std::cout << “bob:” << bob<< std:: endl;

std::cout << “phil:” << phil<< std:: endl;

}

What will phil output? (ignoring the name)

.

22
New cards

What is the identifier rule? List ALL FOUR.

  1. Must start with a alphabetical character or underscore

  2. After the first character, you may use a number

  3. It can be a keyword

  4. Upper and lower are different

23
New cards

What is this << ?

Stream Assertion

24
New cards

What is this >> ?

Stream Extraction

25
New cards

To access and use log() function what will you need to add before?

#include <cmath>

26
New cards

To access and use setprecision() function what will you need to add before?

#include <iomanip>

27
New cards

What will setprecision(2) do to 2.954?

3

28
New cards

What will setprecision(2) when FIXED do to 2.954?

2.95

29
New cards

What will setprecision(1) do to 6.78?

7

30
New cards

What will setprecision(1) when FIXED do to 6.78?

6.8

31
New cards

What is 98 shifted << 2? (Show in binary)

136

32
New cards

What is 120 shifted >> 3? (Show in decimal)

15

33
New cards

What is base 10? Its goes from (0 to ?)

Decimal; (0-9)

34
New cards

What is base 8? Its goes from (0 to ?)

Octal; (0-7)

35
New cards

What is base 2? Its goes from (0 to ?)

Binary; (0-1)

36
New cards

What is base 16? Its goes from (0 to ?)

Hexadecimal; (0-9) (A-F)

37
New cards

What is 28?

256

38
New cards

What is 210?

1,024

39
New cards

Two Compliments: What is 1111 1111?

-1

40
New cards

Two Compliments: What is 0000 0000?

0

41
New cards

What is 10110110 unsigned char?

182

42
New cards

What is 10110110 signed char?

-74

43
New cards

What is 11010101 signed char?

-43

44
New cards

What is 11010110 unsigned char?

214

45
New cards

What is 11010110 unsigned char?

214

46
New cards

What is 11010110 signed char?

-42

47
New cards

What is 01100101 in decimal?

101

48
New cards

What is 011101 in decimal?

29

49
New cards

What is 111101 in decimal?

61

50
New cards

What is 98 in binary?

1100010

51
New cards

What is 579 in binary?

1001000011

52
New cards

What is 242 in binary?

11110010

53
New cards

What is 1AC in binary?

110101100

54
New cards

What is 1AC in decimal?

428

55
New cards

What is 1AC in octal?

654

56
New cards

What is 654 hexadecimal in octal?

3142

57
New cards

What is 654 hexadecimal in binary?

11001010100

58
New cards

What is 654 hexadecimal in decimal?

1620

59
New cards

What is the opposite of > ?

<=

60
New cards

What is the opposite of >= ?

<

61
New cards

What is the opposite of = ?

!=

62
New cards

What is the operator for AND?

&&

63
New cards

What is the operator for OR?

||

64
New cards

What is the operator for EQUALS?

==

65
New cards

What is the operator for NOT EQUALS?

!=

66
New cards

Given 5 is stored in a 1 bit signed variable x. What is the value of x << 6? (Write in decimal form)

64

67
New cards

Given 89 is stored in a 1 bit signed variable x. What is the value of x >> 3? (Write in decimal form)

11

Explore top notes

note
Hygiene - A Key to Healthy Life
Updated 527d ago
0.0(0)
note
Biodiversity: Evolution
Updated 1259d ago
0.0(0)
note
Colons
Updated 1152d ago
0.0(0)
note
Nervous System
Updated 1151d ago
0.0(0)
note
Russian
Updated 283d ago
0.0(0)
note
LESSON 2:HUMAN RESOURCE PLANNING
Updated 857d ago
0.0(0)
note
Hygiene - A Key to Healthy Life
Updated 527d ago
0.0(0)
note
Biodiversity: Evolution
Updated 1259d ago
0.0(0)
note
Colons
Updated 1152d ago
0.0(0)
note
Nervous System
Updated 1151d ago
0.0(0)
note
Russian
Updated 283d ago
0.0(0)
note
LESSON 2:HUMAN RESOURCE PLANNING
Updated 857d ago
0.0(0)

Explore top flashcards

flashcards
Chapter 7 8SS
24
Updated 1136d ago
0.0(0)
flashcards
TFN 3 - ORPEZA
161
Updated 683d ago
0.0(0)
flashcards
Test 3- chapter 9-13
82
Updated 854d ago
0.0(0)
flashcards
Realidades 2, 1A
73
Updated 157d ago
0.0(0)
flashcards
Latin 3 Unit 3 2025
24
Updated 50d ago
0.0(0)
flashcards
Petrone BLAW Exam 2
152
Updated 379d ago
0.0(0)
flashcards
Chapter 7 8SS
24
Updated 1136d ago
0.0(0)
flashcards
TFN 3 - ORPEZA
161
Updated 683d ago
0.0(0)
flashcards
Test 3- chapter 9-13
82
Updated 854d ago
0.0(0)
flashcards
Realidades 2, 1A
73
Updated 157d ago
0.0(0)
flashcards
Latin 3 Unit 3 2025
24
Updated 50d ago
0.0(0)
flashcards
Petrone BLAW Exam 2
152
Updated 379d ago
0.0(0)