Thursday, 14 June 2018

Match the following

1. 


1.        
Identifiers
A.       
Enter a character from the standard input device
2.        
String constant
B.       
Send a character to standard output device
3.        
Rand()
C.       
Used to terminate loops or to exit from switch
4.        
getchar()
D.       
Names that are given to various program elements, such as variables.
5.        
putchar()
E.        
Used to bypass the remainder of the current pass through a loop
6.        
break()
F.        
three
7.        
continue
G.      
Return a random positive integer
8.        
A necessary function
H.       
Any number of consecutive characters, enclosed in double quotation marks
9.        
Number of operators
required in ?: operators
I.         
(float)
10.    
Pre-decrement
J.         
~
11.    
Scope of a variable is
K.       
A macro that represent null pointer
12.    
Null macros is
L.        
Unending loop if no break statement inside the body
13.    
While(1)
M.     
main()
14.    
Typecasting
N.      
The region over which the variable declaration has effect
15.    
bitwise
O.      
--m





























(B)
1.        
Do-while loop is   
       a)       
Main()
2.        
This loop control structure takes you to the beginning of the loop
        b)       
Case control structure
3.        
If you have to use many if-else conditions, they can be usually implemented by
      c)        
Directives
4.        
This is a mandatory function in every     ‘C’ program. Execution starts from this function
     d)       
declaration
5.        
statement ends the loop
      e)       
Executed at least once
6.        
extern int i; is a
      f)        
break
7.        
Preprocessor commands are also known as
      g)       
Will be there if start== is true.















(c)

1)       
For(;;)
      a.        
extern
2)       
Only this symbol is allowed in a valid variable name
      b.       
Do…while
3)       
Keyword used to indicate global variable
      c.        
Menu Selection
4)       
To insert the comments in the  program this symbol is used
     d.       
Scope till the end of the function
5)       
Formatted print is used to
     e.       
Unending loop if no break statement inside the body
6)       
To declare unsigned long integer variable this suffix is used with value
     f.         
When the values of the condition is true
7)       
It is the exit controlled looping statement
     g.        
Take printout in special format
8)       
The statement block in while is executed
     h.       
Integer value
9)       
Used when we want to test more than one condition and make decision
      i.          
/*
10)    
Automatic variable
      j.         
Logical operator
11)    
By default functions return
      k.        
underscore
12)    
The switch statement is often used for
      l.          
UL

No comments:

Post a Comment

ch-12 File Handling

Mcq 1. What does fp point to in the program?   #include<stdio.h> int main() {   FILE *fp;   fp=fopen("trial",...