CMSC 216 EXAM 1 ACTUAL UPDATED QUESTIONS AND CORRECT ANSWERS
format specifier for char %c
format specifier for int %d
format specifier for real %f
What is object code? its machine code, but it is not executable!
When is feof(stdin) true! when you've read to the end of the file
What happens if you dont enter enough values as scanf will wait unitl as many values as format specifiers have been entered
specified by the format control string for scanf?
What happens if you enter too many values as specified the excess will remain unread, the next scanf will read them
by the format control string for scanf?
what is scanf's form? scanf ( format-control-string, &variables )
What does scanf do? reads in input
what are the two forms of printf? printf( "character-string" );
printf ("format-control-string" , list-of-expressions)
What are escape sequences? They have special effects when printed
what is '\n' escape sequence that prints a new line
what is '\t' escape sequence that prints a tab
what are format specifiers? They are replaced by values of the designated type
What happens to stuff inside quotation marks in printf? theyre printed exactly as is, except for format specifiers and escape sequences
are parameter names necessary in function prototypes? no, but you should use them
Command: touch creates a new file
Command: -f flag that means force
, What is prepoccessing? The 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? with files you wrote
when do you use <> with #include? with library header files
format specifier for char %c
format specifier for int %d
format specifier for real %f
What is object code? its machine code, but it is not executable!
When is feof(stdin) true! when you've read to the end of the file
What happens if you dont enter enough values as scanf will wait unitl as many values as format specifiers have been entered
specified by the format control string for scanf?
What happens if you enter too many values as specified the excess will remain unread, the next scanf will read them
by the format control string for scanf?
what is scanf's form? scanf ( format-control-string, &variables )
What does scanf do? reads in input
what are the two forms of printf? printf( "character-string" );
printf ("format-control-string" , list-of-expressions)
What are escape sequences? They have special effects when printed
what is '\n' escape sequence that prints a new line
what is '\t' escape sequence that prints a tab
what are format specifiers? They are replaced by values of the designated type
What happens to stuff inside quotation marks in printf? theyre printed exactly as is, except for format specifiers and escape sequences
are parameter names necessary in function prototypes? no, but you should use them
Command: touch creates a new file
Command: -f flag that means force
, What is prepoccessing? The 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? with files you wrote
when do you use <> with #include? with library header files