English - 6 PDF
English - 6 PDF
Long Question: -
1) Explain Rules of naming variables in C Language.
2) Explain operator and it’s types in C Language.
Chapter # 10 Important Short Questions
1) What is printf function?
Printf() function is used to display text messages and values of variables on monitor screen in a specific
format. It is also called formatted output function. Syntax is printf(“Format String”,Argument List);
2) What is format string?
It is also called control string. It is written in between double quotation marks. It may contain text, format
specifier and escape sequence.
3) What is format specifier?
It represents the format in which value of variable is displayed. It starts with % sign. Example %d, %c, %f.
4) What is Escape Sequence?
It controls the position of output displayed on the screen. Example \n, \t.
5) What is field width specifier?
Field width specifier is a numeric code or rule that specifies the minimum number of columns used to
print a value. It determines the space occupied by a value of the output screen. It is written in printf or
scanf statements between % and f. Example %4d if value is 22 then out put will be ||22.
6) What is the use of scanf () function. Write it’s syntax Or Define Scanf()?
Scanf is used to get input from the user. The input is stored in a variable in a specified form.
Syntax (“format string”, & variable1, & variable 2)
7) What is the use of ampersand (&) sign in scanf function?
The ampersand & refers to the memory location of the variable in which the input is stored. It is placed
before the variable name. It is also called address operator.
8) What will be the output of the following
Printf(“55\t”);
Printf(“555”);
Out put will be 55 555
9) Describe clrscr() function.
This function is used to clear the output screen console.
10) How getch() is different from getche() function?
getch() getche()
This function is used to input single character from user. This function is used to input single character from user.
It is an abbreviation of get character. When user enter a It is an abbreviation of get character with echo. When
character that character is not displayed on screen. user enter a character that character is not displayed on
screen.
11) Define Standard output.
This term refers to the output displayed on monitor. The result of program is standard output of program.
12) List some important function for input.
(1) scanf (2) gets() (3) getch() (4) getche()
13) List out different types of format specifier?
(1) Integer format specifier %d or %i (2) Character format specifier %c (3) Floating point format specifier %f
14) List down the names of escape character provided by c?
(1) \n insert new line (2) \t used to insert multiple space (3) \b generate effect of backspace (4)\’ insert single quote.
15) What is standard input?
Instructions or input provided by the keyboard to computer is called standard input, scanf() function is used to take
standard input from user.
Some Important Programs to practice are here as under