10 Questions
Which function is used to read character, string, and numeric data from the keyboard?
scanf()
What will happen if characters in the functions printf() and scanf() are written in uppercase?
They will return an error
In the example program provided, what does the user input get assigned to after entering a character?
ch
What does the printf() function do?
Prints data to the screen
Which function allows you to accept input from standard in, typically the keyboard?
scanf()
If a user enters a numeric value, which variable would typically be used to store this value?
int
What is the purpose of the Scanf() function?
Reads input from the keyboard
What type of data does the scanf() function read?
Characters, strings, and numerics
What happens if characters in Printf() and Scanf() are not all lowercase as required?
Compile error occurs
When user input is assigned to variable 'str', what type of value did the user enter?
String
Learn about the naming conventions for variables in C programming. This includes using lowercase letters, meaningful identifiers, and separating words within identifiers with underscores or mixed upper and lower case.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free