Computer Architecture
Programming Basics
Syntax Errors
Main Memory Mechanics
GDB Debugging
100

This type of memory is volatile and loses data when power is off.

What is RAM (Random Access Memory) or Main Memory?

100

This function is used to display content on the screen during execution of a program.

What is:

prinf?

100

int x = 7

semicolon

100

The number of bytes allocated for an integer.

What is:

4 bytes.

100

This command in the debugger prints 4 bytes as hexadecimal values starting from the stack pointer (esp).

What is:

x/4xb $esp?

200

A DVD is an example of this computer architecture hardware.

What is:

Secondary Memory?

DAILY DOUBLE!!!

200

This function is used to allow for user input during execution of a program.

What is:

scanf?

200

#include<studio.h>

#include<stdio.h>

"Standard input/output library"

200

The number of bytes allocated for a character.

What is:

1 byte?

200

This debugger command allows you to show the source code while in the debugger

What is:

"list"?

300

This is how the CPU executes an instruction.

What is the Fetch-Decode-Execute cycle?

300

This is C Language functionality allows you to iterate a snippet of code multiple times as long as a condition is true.

What is:

A for-loop?

300

char school = "Navy";


char school[5] = "Navy";


character arrays ("strings") require size allocation using the brackets ([   ]).

300

This term is used to describe the order that integers are stored in main memory.

What is:

"little endian order"?

DAILY DOUBLE!!!

300

This debugger command allows you to print a string stored at ebp-10.

What is:

x/s $ebp-10?

400

An Intel x86 chip is an example of this computer architecture hardware.

What is:

A CPU?

400

This is the number of times the following for loop will SUCCESSFULLY iterate.


for(x = 1;  x < 10;  x = x + 3)

What is:

4 times


DAILY DOUBLE!!!

400

scanf("%d", x);

scanf("%d", &x);


& is required to for scanf 

400

The order that variables of a program are stored on the stack.

What is:

Bottom up, from ebp, in the order that the variables are declared in the program.

400

This debugger command allows you to view the current address stored in the instruction pointer.

What is:

i r eip?

500

Linux is an example of this computer architecture software.

What is:

An Operating System?

500

This C Language functionality will execute a set of code if a condition is true, and will execute a separate set of code if the condition is false.

What is:

if-else?

500

printf(\nThe sum is equal to %d\n\n, sum);

printf("\nThe sum is equal to %d\n\n", sum);


quotations required before and after the content to be displayed on the screen.

500

This is the location where instructions of a program are stored in main memory.

What is:

The Text Segment?

500

This debugger command allows you to view the decimal value of an integer stored at ebp-4.

What is:

x/dw $ebp-4