• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 5 pages
Exam (elaborations)

CS 424 Test 1(With complete solutions)

Document preview thumbnail
Preview 2 out of 5 pages

Writeability correct answers the ease with which a language can be used to create programs. Simplicity and orthogonality. Support abstraction such as functions to prevent re writing the same code multiple times. Readability correct answers the ease with which programs can be read and understood. Reliability correct answers conformance to specifications (i.e. performs to its specifications). Type checking for errors, exception handling intercepts run-time errors and takes corrective measures. Cost correct answers the ultimate total cost. Execution costs (run time type checking improves reliability but adds execution time cost), compile time costs (can increase compile time but decrease execution time) Reliability vs. cost of execution correct answers Example: Java demands all references to array elements be checked for proper indexing, which leads to increased execution costs Reliability vs. writeability correct answers Example: APL provides many powerful operators (and a large number of new symbols), allowing complex computations to be written in a compact program but at the cost of poor readability Writeability vs reliability correct answers Example: C++ pointers are powerful and very flexible but are unreliable How is an interpreter different from a compiler? correct answers Compiler translates source language into machine language. Slow transition, fast execution. Interpreter executes a program line by line by simulating a computer whose machine language is the language being processed. What are the characteristics of imperative programming languages and how do they model the architecture of the von Neumann computer? correct answers Data and programs stored in memory Memory is seperate from CPU Instructions are transferred from memory to CPU Data is moved from memory to the CPU for processing and back to the memory for storage Imperitive languages: Variables model memory cells Assignment statements model data movement Iteration is efficient What is the von Neumann bottleneck? correct answers it is a primary limiting factor in the speed of computers


Document information

Uploaded on
May 28, 2024
Number of pages
5
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$11.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Sold
23
Followers
6
Items
4026
Last sold
2 months ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.