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 1 out of 4 pages
Exam (elaborations)

Code C Review Study Guide Test.

Document preview thumbnail
Preview 1 out of 4 pages

Code C Review Study Guide Test. #include cs50.h #include stdio.h - CORRECT ANSWER in all c50 code [data type] [variable] = get_[variable type]("[display]") - CORRECT ANSWER input syntax [data type] [variable] = [variable] - CORRECT ANSWER assigning variable syntax in all statements - CORRECT ANSWER ; printf("%[data type letter]", [variable]) - CORRECT ANSWER display variable int main(void){[all code]} - CORRECT ANSWER in all c programs if ([boolean statement]){[code]} else if {[code]} else{[code]} - CORRECT ANSWER boolean syntax code [fileName].c - CORRECT ANSWER open new file in terminal(other option is to add file in GUI) make [fileName] - CORRECT ANSWER used for compiling & recompiling by terminal command(import code language to machine code) ./fileName - CORRECT ANSWER execute code by terminal command '[char]' - CORRECT ANSWER what used if boolean compare char || - CORRECT ANSWER or boolean operator in boolean condition(repeat comparing variable) && - CORRECT ANSWER and boolean operator in boolean condition(repeat comparing variable) [variable] += 1;(subtract is self explanatory) - CORRECT ANSWER syntactic sugar for add 1(interchangable) while ([boolean]){[code]}(there is usually add/subtract variable in [code] and [boolean]// do while can introduce code before check) - CORRECT ANSWER while syntax for (int [variable]; [variable] [(in)equality symbol]; [variable(++/--/+=/-=)]) - CORRECT ANSWER for syntax (float) [int#] - CORRECT ANSWER converting int to float(type casting method//other method substitute int with float in operation) [dataType] [variable][[#ofItums]]; [variable][[0 to #-1]](repeated//can use for if # asked for) - CORRECT ANSWER array storage(call array with ex. variable[#]//form of abstraction)


Document information

Uploaded on
May 26, 2024
Number of pages
4
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$10.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 exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT 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.