100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CMSC 216 EXAM 1 QUESTIONS & ANSWERS 2024/2025 $7.99   Add to cart

Exam (elaborations)

CMSC 216 EXAM 1 QUESTIONS & ANSWERS 2024/2025

 6 views  0 purchase
  • Course
  • CMSC 216
  • Institution
  • CMSC 216

CMSC 216 EXAM 1 QUESTIONS & ANSWERS 2024/2025 format specifier for char - ANSWERS%c format specifier for int - ANSWERS%d format specifier for real - ANSWERS%f What is object code? - ANSWERSits machine code, but it is not executable! When is feof(stdin) true! - ANSWERSwhen you've re...

[Show more]

Preview 2 out of 6  pages

  • November 9, 2024
  • 6
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CMSC 216
  • CMSC 216
avatar-seller
Bensuda
CMSC 216 EXAM 1 QUESTIONS &
ANSWERS 2024/2025

format specifier for char - ANSWERS%c



format specifier for int - ANSWERS%d



format specifier for real - ANSWERS%f



What is object code? - ANSWERSits machine code, but it is not executable!



When is feof(stdin) true! - ANSWERSwhen you've read to the end of the file



What happens if you dont enter enough values as specified by the format control string for scanf? -
ANSWERSscanf will wait unitl as many values as format specifiers have been entered



What happens if you enter too many values as specified by the format control string for scanf? -
ANSWERSthe excess will remain unread, the next scanf will read them



what is scanf's form? - ANSWERSscanf ( format-control-string, &variables )



What does scanf do? - ANSWERSreads in input



what are the two forms of printf? - ANSWERSprintf( "character-string" );

printf ("format-control-string" , list-of-expressions)



What are escape sequences? - ANSWERSThey have special effects when printed

, what is '\n' - ANSWERSescape sequence that prints a new line



what is '\t' - ANSWERSescape sequence that prints a tab



what are format specifiers? - ANSWERSThey are replaced by values of the designated type



What happens to stuff inside quotation marks in printf? - ANSWERStheyre printed exactly as is, except
for format specifiers and escape sequences



are parameter names necessary in function prototypes? - ANSWERSno, but you should use them



Command: touch - ANSWERScreates a new file



Command: -f - ANSWERSflag that means force



What is prepoccessing? - ANSWERSThe first step to compilation in C, makes certain modifications to the
program based on preproccessor directives, and runs the modified code



when do you use "" with #include? - ANSWERSwith files you wrote



when do you use <> with #include? - ANSWERSwith library header files



what are source files? - ANSWERSthey contain code and usually some definitions



what are header files? - ANSWERSthey contain definitions



What are function prototypes? - ANSWERSthey declare functions return type, name, and parameters



What do function prototypes look like? - ANSWERSabstract methods in java

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

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