Question #2
Answer: variable
Ex: int a = 2; //Here the integer value of 2 is stored in RAM and is referenced by the variable "a"
Question #3
Answer: Keywords
Keywords have special significance in programming languague. Ex: "while" is a keyword and is used for iteration. These words cannot be used for other uses - variable or function names
Question #4
Answer: "struct"
Ex:
struct employee {
char * name;
int age;
float salary;
};
A "struct" (structure) allows the programmer to include different data types in a cohesive format.
This is for C language QUESTION 2 Data stored in computer's random access memory referenced by...
Please create a program to simulate Random Access Memory using PYTHON language: Create an array at least 12K long Set up a word length (8 bits) Fill the Array with Random Data. (8bits each) Read and Return(display) the data from the 100th record Read and Return(display) the data from the 1000th record overwrite the 99th record and the 999th record with zero’s Again Read and Return(display) the data from the 100th record Read and Return(display) the data from the 1000th...
Random access memory is _________________ . a. Persistent c. permanent b. Volatile d. sequential 2. Which of the following is not permanent storage? a. RAM c. A USB drive b. a hard disk d. all of these 3. Which of the following is not a File class method? a. Create() c. Exists() b. Delete() ...
C++ Implement Random Access Binary Files. Do Not use Arrays instead write the data directly to Random Access Binary File. New program should be modified to display a menu for the user to do the following: 1. Replace Employee and Department classes with Employee and Department Structures. 2. Inside each structure, replace all string variables with array of characters. 3. Make Employee and Department editable. That means, the user should be able to edit a given Employee and Department. 4....
C++ Implement Random Access Binary Files. Do Not use Arrays instead write the data directly to Random Access Binary File. New program should be modified to display a menu for the user to do the following: 1. Replace Employee and Department classes with Employee and Department Structures. 2. Inside each structure, replace all string variables with array of characters. 3. Make Employee and Department editable. That means, the user should be able to edit a given Employee and Department. 4....
Data Structures & Algorithms . Solve this problem in java(not C language) . Question 1(Queue) Write a program that display list of choices for the user to interact with the program as follow: Queue Operations Menu: 1.Add a new item 2.Delete the first item 3.Show number of items in the Queue 4.Find an item 5.Show all items 6.Exit
(f) and (g) please
f and g please
letters Question 2 Indirect addressing mode in assembly language is sanilar to pointers in C. Answer the following questions: (1 point) a) How many 8-bit registers can a FSR access in the PICI8F452 MCU? b) Write the assembly language command to load the address of the variable with name: PVal into one of the FSR? (2 points) (2 points) (2 points) c) What is the meaning of: movf PREINC2, F? d) What...
In this assignment, you will implement a Memory Management System(MMS). Using C Programming Language..... MAKE SURE YOU USE C PROGRAMMING Your MMS will handle all requests of allocation of memory space by different users (one thread per user) …. HINT(You will use Pthreads and Semaphores). Your MMS will provide the user with an interface for making memory requests and also for freeing up memory that is no longer needed by the user. One of the jobs of your memory management...
T F Xilinx's SDK assembler supports both FOR statements, but not wHILE statements T F In the ARM processor, immediate operands are stored in data memory, and not in the opcode T F In ARM processor instructions, one but not both operands can come from main T F In the ARM processor, a single load/store instruction T F It is possible for a microprocessor to use a virtual TCache memory is typically much faster and much larger than main memory...
Question 1: Pointers You are given the following C code and memory diagram. The “contents” column of the memory diagram shows the value of the variable. Update the “contents” column of the memory diagram for each assignment in main(). long *pt; long data; long buffer[4]; void main(void){ pt = &buffer[1]; *pt = 1234; data = *pt; } address contents variable 0x20000000 0x00000000 pt 0x20000004 0x00000000 data 0x20000008 0x00000000 buffer[0] 0x2000000C 0x00000000 buffer[1] 0x20000010 0x00000000 buffer[2] 0x20000014 0x00000000 buffer[3]...
c++ question, i put the txt attachment picture for this
question... please include comments on calculations and
varibles
Description In this program, you will write a program to emulate a vending machine (somewhat). In this version of the program, you will use a struct type defined below struct snackType string name; string code; double price; int remaining; Where name contains the snack's name, code contains the 2 digit code for the item, price holds the item's price, and remaining holds...