Computer Science 12th Chapter 10 - Input and Output Questions Bank

Computer Science 12th Chapter 10 - Input and Output Questions Bank
Computer Science 12th Chapter 10 - Input and Output Questions Bank

Computer Science 2nd Year Chapter 10 - Input and Output Solved MCQs, Important Short Questions and Long Questions Bank

MCQs

Please select the right answer.

1. The function getch() is defined in : 






2. _____ is used to get input from user into any types of variables during the  execution of program : 





3. ___ format specifiers is used for float type data :






4. ___ is a correct statement to input value to a variable ‘x’ of float data type : 





5. ___ is a correct statement to print “Pakistan” in double quotes : 





6. ___ is not used in control or format string in a printf() function : 






7. ___can be used to begin a new line in C : 





8. ___format specifiers is used for integer type data :





9. ___function is used to display output on screen : 





10. ___is control string in the statement printf(“Result = %d”,r); : 





11. ___is the general form of format specifier for real value :





12. ___is used for flag : 





13. ___is used to get input from user during program execution : 






14. ___is used to move the cursor at the beginning of current line : 





15. ___is used with format specifier to display output left-justified :





16. 26___characters indicates the beginning of escape sequence :





17. A format specifier always begins with the __ symbol 





18. Escape sequence characters always begins with a ___ character





19. getch() function is used to input ____ character 





20. getche() function is used to input ____ character 





21. How many digits are printed to the right of the decimal point in real number :





22. How many variables can be used in one printf() function : 






23. Instead of the variable name the scanf() requires _________ of the variable to  store the input value into it 





24. scanf() function is used to get data from the 





25. The %x is a format specifier for :





26. The ampersand (&) used in “scanf()” function is called :






27. The escape sequence for backslash is :





28. The escape sequence for carriage return is 





29. The escape sequence to insert horizontal tab is 






30. The escape sequence to insert tab in C is :





31. The escape sequence to produce beep from computer speaker is :





32. The field width will automatically _________ if the specified space is not  sufficient to accommodate the value 





33. The format specifier %u is used for :





34. The function getche() is defined in :






35. The functions used for input and output are stored in header file : 






36. The printf() function is used to display : 





37. What will be the output of printf(“%d”, ‘A’);  : 





38. What will be the output of printf(“%d”,’a’);  : 





39. Which character is used as address of operator






40. Which characters cause an escape from the normal interpretation of a string so  that the next character is recognized as having a special meaning.






41. Which escape sequence is used for backspace 





42. Which input function will not print the entered character on the screen





43. Which of the following forma specifier is used for character type data 





44. Which of the following format specifier is used for string type data : 





45. Which will be the output of printf(“%c”, ‘A’);  : 






Short Questions

1. Define character input?
2. Compare getch and getche functions?
3. Define conio.h?
4. Define field-width specifier for integers?
5. Define field-width specifier?
6. Define scanf ( ) function?
7. Define standard input.
8. Define the general form of format specifier for floating-point numbers?
9. Define the signature of function?
10. Describe the \ddd escape sequence?
11. Differentiate between (\b) and (\f) escape sequences?
12. Differentiate between getch ( ) and getche ( ) functions?
13. Differentiate between gets and puts functions.
14. Differentiate between printf and scanf functions.
15. List some important functions for input.
16. List the format specifiers for character values.
17. List three names of functions used for character input.
18. What are is printf() function?
19. What are standard input functions?
20. What are standard output functions?
21. What is a format specifier?
22. What is an escape sequence?
23. What is control string in printf function?
24. What is getch() function?
25. What is getche() function?
26. What is input statement?
27. What is meant by standard output?
28. What is output statement?
29. What is printf ( ) function?
30. What is the escape sequence?
31. What is the function of & in scanf  statement?
32. What is the problem with scanf function for character input?
33. What is the purpose of %d format specifier?
34. What is the use of "getch" function?
35. What is the use of "getche function?
36. What is the use of "printf" function? Write its syntax
37. What is the use of "scanf" function? Write its syntax.
38. What is the use of field width specifiers in C language?
39. Which characters are used to modify the format of output?
40. Which function is used to clear the screen in C?
41. Which library header file is used to access the standard input output functions? 
42. Why is the ampersand (&) used in scanf function?
43. Write names of two output functions. Where are they stored?
44. Write the purpose of %c format specifier?
45. Write the purpose of using \n escape sequence?
46. Write the purpose of using \t escape sequence

Long Questions

1. What is an output statement? Explain the printf() function of C language.
2. What are format specifier? Also write down the associated data types.
3. What are field width specifiers? Explain with the help of examples.
4. What is an input statement? Also discuss its different types.
5. What are getch() and getche() functions?
6. What are escape sequences?

Post a Comment (0)
Previous Post Next Post