• 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 7 pages
Exam (elaborations)

Advanced Programming Midterm 2 Review exam with verified answers. stdin incoming character stream, normally from keyboard, line-buffered Practice questions for this set Terms in this set (62) stdout outgoing character stream, normally to terminal s

Document preview thumbnail
Preview 2 out of 7 pages

Advanced Programming Midterm 2 Review exam with verified answers. stdin incoming character stream, normally from keyboard, line-buffered Practice questions for this set Terms in this set (62) stdout outgoing character stream, normally to terminal screen, buffered until newline comes or buffer is filled stderr outgoing character stream, normally to terminal screen, unbuffered Redirect stdin Redirect stdout Redirect stderr 2 Append Link stderr and stdout 2&1 Pipeline connects stdout of one program to stdin of another program, prog1 input_file | prog2 | prog3 output_file == cat input_file | prog2 | prog3 output_file scanf most conversions skip leading white space, takes variable number of parameters, stores formatted input in a variable printf takes variable number of arguments, prints formatted string to stdout sscanf read from a string rather than stdin sprintf write to output_buffer rather than stdout, make sure output_buffer is big enough, snprintf is a safer version EOF special value indicating end-of-file, usually defined to be -1, getchar() returns int to represent this fopen() opens a file, returns a pointer so it can be passed, 'r', 'w+' , 'rb', must pass mode for the file, returns NULL if file can't be opened

Content preview

Advanced Programming Midterm 2
Review exam with verified answers.



stdin incoming character stream, normally from keyboard, line-buffered


Practice questions for this set

, Learn 1/ 7 Study with Learn




outgoing character stream, normally to terminal screen, buffered until newline
comes or buffer is filled



Choose matching term




1 Copy Constructor 2 stdout




3 Unix I/O 4 stderr



Don't know?




Terms in this set (62)

stdout outgoing character stream, normally to terminal screen,
buffered until newline comes or buffer is filled

stderr outgoing character stream, normally to terminal screen,
unbuffered

Redirect stdin <

Redirect stdout >

Redirect stderr 2>

Append >>

Document information

Uploaded on
February 23, 2025
Number of pages
7
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$16.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
Quizlettt
5.0
(1)
Sold
1
Followers
0
Items
319
Last sold
6 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