100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CPSC 1110 Exam 1 Questions And Answers | Guaranteed Pass $12.99   Add to cart

Exam (elaborations)

CPSC 1110 Exam 1 Questions And Answers | Guaranteed Pass

 3 views  0 purchase
  • Course
  • CPSC 1110
  • Institution
  • CPSC 1110

CPSC 1110 Exam 1 Questions And Answers | Guaranteed Pass

Preview 2 out of 10  pages

  • November 7, 2024
  • 10
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CPSC 1110
  • CPSC 1110
avatar-seller
ElevatedExcellence
CPSC 1110 Exam 1 Questions And
Answers | Guaranteed Pass
Procedural CORRECT ANSWERS Has instructions that can be carried out, functions
called at any point

C++ (3) CORRECT ANSWERS Superset of C developed by Bjarne Stroustrup at Bell
Labs
Object-oriented (10-100% increase in productivity)
Dominant language in industry in academia

Incremental development CORRECT ANSWERS Idea that programs should be
compiled, run, and tested as new functions/features are added

2 types of errors CORRECT ANSWERS Syntax errors (breaks language-specific rules)
or semantic errors (logical errors, problem no matter what language)

Compilation process CORRECT ANSWERS Turning a high level language into low-
level assembly language, then object code/machine language (binary)

gcc o flag CORRECT ANSWERS gcc-6 prog.c -o prog
Will change the executable named a.out to the file named prog (doesn't automatically
add extension)

gcc S flag CORRECT ANSWERS gcc-6 -S prog.c
Will create .s file (assembly code) instead of executable

gcc c flag CORRECT ANSWERS gcc-6 -c prog.c
Will create .o file (object code) but doesn't link

gcc E flag CORRECT ANSWERS gcc-6 -E prog.c > ppf
Will create file called ppf containing preprocessor results (will be a .i file), but won't
actually compile

gcc save temps flag CORRECT ANSWERS gcc-6 -save-temps prog.c will create .i, .s,
& .o files

Algorithm CORRECT ANSWERS Shows logic and steps for a program

5 phases of C programs CORRECT ANSWERS 1. Edit - Program is created in the
editor and stored on disk.
2. Compile
a. Preprocessor - Preprocessor program processes the code.

, b. Assembler - Assembler creates assembly language version and then the object code
(machine language, final result of compiler) & stores it on disk.
c. Link - Linker links the object code with the libraries.
3. Debug - syntax and semantic errors
4. Load - Loader puts program in memory.
5. Execute - CPU takes eachinstruction and executes it, possibly storing new data
values in memory as the program executes.

Unix CORRECT ANSWERS Operating system developed at Bell Labs in the late 60s,
written in assembly then C

Computer system CORRECT ANSWERS Hardware and software

3 types of software CORRECT ANSWERS System software - controls and coordinates
the interaction of all the hardware devices while in the process of running the application
programs
Utility software - provides additional functionality to your operating system software
Application software

3 types of system software CORRECT ANSWERS Operating system
Language translators
Device drivers

Operating system (3) CORRECT ANSWERS Software that:
Manages software (allows running other applications, handles program execution)
Manages hardware
Facilitates efficient execution and management of, mediates access by processes to:
CPU, memory, and storage

3 types of hardware CORRECT ANSWERS I/O devices
Network devices
Storage devices

Memory (2) CORRECT ANSWERS Short term, can be accessed by CPU
Volatile - in use while computer is on

Storage (3) CORRECT ANSWERS Long term
HDD or secondary storage devices (another HDD or flash drive)
Persistent - stays when computer is off

Unix philosophy (3) CORRECT ANSWERS Create small, modular utilities that do one
thing well
Combine them in powerful ways
Single file system (no separate drives) - "everything is a file"

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 ElevatedExcellence. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77254 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
$12.99
  • (0)
  Add to cart