This type of memory is volatile and loses data when power is off.
What is RAM (Random Access Memory) or Main Memory?
This function is used to display content on the screen during execution of a program.
What is:
prinf?
int x = 7
semicolon
The number of bytes allocated for an integer.
What is:
4 bytes.
This command in the debugger prints 4 bytes as hexadecimal values starting from the stack pointer (esp).
What is:
x/4xb $esp?
A DVD is an example of this computer architecture hardware.
What is:
Secondary Memory?
DAILY DOUBLE!!!
This function is used to allow for user input during execution of a program.
What is:
scanf?
#include<studio.h>
#include<stdio.h>
"Standard input/output library"
The number of bytes allocated for a character.
What is:
1 byte?
This debugger command allows you to show the source code while in the debugger
What is:
"list"?
This is how the CPU executes an instruction.
What is the Fetch-Decode-Execute cycle?
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?
char school = "Navy";
char school[5] = "Navy";
character arrays ("strings") require size allocation using the brackets ([ ]).
This term is used to describe the order that integers are stored in main memory.
What is:
"little endian order"?
DAILY DOUBLE!!!
This debugger command allows you to print a string stored at ebp-10.
What is:
x/s $ebp-10?
An Intel x86 chip is an example of this computer architecture hardware.
What is:
A CPU?
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!!!
scanf("%d", x);
scanf("%d", &x);
& is required to for scanf
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.
This debugger command allows you to view the current address stored in the instruction pointer.
What is:
i r eip?
Linux is an example of this computer architecture software.
What is:
An Operating System?
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?
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.
This is the location where instructions of a program are stored in main memory.
What is:
The Text Segment?
This debugger command allows you to view the decimal value of an integer stored at ebp-4.
What is:
x/dw $ebp-4