100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CPS 310 EXAM || A+ Guaranteed. $10.89   Add to cart

Exam (elaborations)

CPS 310 EXAM || A+ Guaranteed.

 1 view  0 purchase
  • Course
  • CPS 310
  • Institution
  • CPS 310

LIFO correct answers Last in first out. Stack pointer stores the address of the topmost data in the stack. How code is made correct answers 1. Source code is given to compiler 2. Compiler checks code for syntax errors 3. Compiler converts code to object code 4. Linker makes it into an .exe f...

[Show more]

Preview 2 out of 6  pages

  • October 27, 2024
  • 6
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CPS 310
  • CPS 310
avatar-seller
FullyFocus
CPS 310 EXAM || A+ Guaranteed.
LIFO correct answers Last in first out.
Stack pointer stores the address of the topmost data in the stack.

How code is made correct answers 1. Source code is given to compiler
2. Compiler checks code for syntax errors
3. Compiler converts code to object code
4. Linker makes it into an .exe file
5. Loader puts .exe into RAM.

Linker correct answers Software program that combines together separately assembled object
code into one program.

Loader correct answers A program that loads an executable program into RAM.

Interpreter correct answers Begins execution before converting the entire program. Each line of
code is translated one at a time.

Compiler correct answers Checks code as a block and translates it into machine code.

Syntax error correct answers Occurs when an instruction does not follow the syntax rules or
grammar of the programming language.

Semantic error correct answers (i) Logical error (not the result you expected to get)
(ii) Runtime error (program crashes)

What is the type of error that a compiler has never been able to solve? correct answers
Semantical error

.obj file correct answers Object code file (0 and 1)

Primary memory devices correct answers RAM (Random Access Memory)
ROM (Read Only Memory)
PROM (Programmable Read Only Memory)
EPROM (Erasable Programmable Read Only Memory)

Are faster and smaller compared so secondary memory devices.

Secondary memory devices correct answers Hard drive, floppy disk, CD (Compact Disc), USB
(Universal Serial Bus)

1 nibble correct answers 4 bits

1 byte correct answers 8 bits

, half-word correct answers 16 bits / 2 bytes

word correct answers 32 bits / 4 bytes

double word correct answers 64 bits / 8 bytes

quad word correct answers 128 bits / 16 bytes

What is always added to the end of a string? correct answers a null character

Pointer correct answers Points to the address of a given memory location.

True or false:
Once you delete a variable in a program, the value that was in that memory location is deleted
also. correct answers FALSE
A memory location will stay at it's last value until some other object occupies that memory and
writes a value there.

Deleting a variable in a program simply tells the compiler "I don't need this anymore", but it still
remains until overwritten.

What will the symbols "& x" yield? correct answers Will give the address of x.

= correct answers assignment operator

When you open and close your program, will the address of your variables stay the same or will
they change? correct answers The address will change when you open up the program again.

* correct answers Symbol for Pointer. It is a unary operator (operation with only one operand).

Scalar variable correct answers another name for a simple variable

Pointer variable correct answers A variable that holds an address

True or false:
Pointers take up less space in memory correct answers TRUE
Pointers take up less space in memory.

Endian correct answers Refers to the order of storing bytes in a computer's memory.

Big endian correct answers Least significant byte has highest address (occur last)
Most significant bit has the lowest address.

E.g.
Two bytes Stored: 34 62 → Value: 0x62 34
Four bytes Stored: 56 78 9A BC → Value: 0x56 78 9A BC

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller FullyFocus. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $10.89. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

81989 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$10.89
  • (0)
  Add to cart