Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 5 pages
Exam (elaborations)

CS50, lecture 2: Arrays Questions And Answers.

Document preview thumbnail
Preview 2 out of 5 pages

CS50, lecture 2: Arrays Questions And Answers. command line argument an input to a program on the command-line as extra words after the program's name in the command itself (run in terminal) Preprocessing Compiling step 1 of 4; a text substitution tool that instructs the compiler to do required __________ before the actual compilation; commands start with hash symbol (#) Compiling Compiling step 2 of 4; takes our source code (e.g. human-written code in C), and converts it to another type of source code called assembly code. assembling Compiling step 3 of 4; takes the assembly code and translates it to instructions in binary. The instructions in binary are called machine code, which a computer's CPU can run directly. Assembly Code These instructions are lower-level and is closer to the binary instructions that a computer's processor can directly understand. They generally operate on bytes themselves, as opposed to abstractions like variable names. Linking Compiling step 4 of 4; combines previously compiled versions of libraries, that are included in the main program, with the binary of the program; We end up with one binary file, that is the combined (program's and included libraries') machine code. bugs mistakes or problems in programs that cause them to behave differently than intended Debugging Finding and fixing problems in an algorithm or program. Debuggers programs that will run programs step-by-step and let us look at variables and other information while the program is running. Breakpoint indicator for a line of code where the debugger should pause the program. call stack a special type of stack used to store information about active subroutines and functions within a program step into debugging command; brings us into the function called on that line step over Debugging command; executes each statement in the main procedure but does not show statements in called procedures. step out debugging command; duck debugger debugging technique, where we explain what we're trying to do to a rubber duck, and oftentimes we'll realize our own mistake in logic or implementation as we're explaining it. data type (type) All values in a programming language have a ________ - such as Integer, Boolean, or String - that dictates how the computer will interpret it, what values it can take, and what operations may be performed upon it. For example 7+5 is interpreted differently from "7"+"5" data types and space bool == 1 byte char == 1 byte double == 8 bytes float == 4 bytes int == 4 bytes long == 8 bytes string == ? bytes RAM (Random Access Memory)


Document information

Uploaded on
May 26, 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.
Nursewendo
3.7
(22)
Sold
71
Followers
19
Items
4976
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.