Podcast
Questions and Answers
Which function is used to read character, string, and numeric data from the keyboard?
Which function is used to read character, string, and numeric data from the keyboard?
- printf()
- Printf()
- Scanf()
- scanf() (correct)
What will happen if characters in the functions printf() and scanf() are written in uppercase?
What will happen if characters in the functions printf() and scanf() are written in uppercase?
- They will work like usual
- They will print the input prompt multiple times
- They will return an error (correct)
- They will not display any output
In the example program provided, what does the user input get assigned to after entering a character?
In the example program provided, what does the user input get assigned to after entering a character?
- ch (correct)
- char
- str
- int
What does the printf() function do?
What does the printf() function do?
Which function allows you to accept input from standard in, typically the keyboard?
Which function allows you to accept input from standard in, typically the keyboard?
If a user enters a numeric value, which variable would typically be used to store this value?
If a user enters a numeric value, which variable would typically be used to store this value?
What is the purpose of the Scanf() function?
What is the purpose of the Scanf() function?
What type of data does the scanf() function read?
What type of data does the scanf() function read?
What happens if characters in Printf() and Scanf() are not all lowercase as required?
What happens if characters in Printf() and Scanf() are not all lowercase as required?
When user input is assigned to variable 'str', what type of value did the user enter?
When user input is assigned to variable 'str', what type of value did the user enter?