Thursday, 14 June 2018

Fill in the blanks




         
 
    A.    
     ampersand                                              
     B.       
      ++


    C.    
    AND


     D.    
      Unsigned integer


    E.                 

     Relation
     F.     
      condition


    G.    
     Stdio.h


     H.    
     Bit


    I.       
     Single quotes 
     J.      
     %.10s


    K.    
     exit         


    L.     
     Ctype




1.  Diamond shape is used to show ________in a flowchart.
2.  Data type of address of a variable is always _________
3.  _______ symbol is used to indicate address of a variable.
4.  NULL is macro constant which has been defined in the header file._________
5.  The smallest data item a computer can process is called a(n)._____.
6.  Name the header file to be included for the use of built in function isalnum() is ________.
7.  Format code in printf to print exactly 10 characters is ________.
8.  An operator which can change the value of a variable on the right hand side of an expression is ________.
9.  A library function ________ causes an exit from the program in which it occurs.
10.           ________ operator is used to compare two entities.
11.           The ________ operator is true only when both the operands are true.
12.           Character constants should be enclosed between ________.



2. 
 
    A.    
      *
     F  
      logical operators
    B.     
     1 byte
    G
     String
    C.    
     flowchart
    H
     void   
    D.       
     preprocessor
    I 
     stdout
    E.     
     Left to right
    J
      0's and 1's







1)     Pictorial representation of an algorithm is ________.
2)     The operator && is an example for ________ operator
3)     p++ has associativity ________.
4)     The standard file, in ‘C’, ________ is connected to screen.
5)     Ultimately, all data items processed by a computer are reduced to combinations of ________.
6)     If a function return type is declared as ________ it cannot return a value.
7)     A group of related characters that conveys meaning is called a ________.
8)     The ________ is a program that is executed before the source code is compiled.
9)     The operator i << 2 is equivalent to ________ i by 4.
10)           Size of char data type is ________.

3.
      A.    
65
     B.     
Main()
      C.    
\b
     D.    
false
      E.     
4
     F.     
max
      G.    
Array of characters
     H.    
void
      I.       
macro
     J.      
2
     K.    
Logical operator
     L.     
Header file
     M.  
macro  
     N.    



A.   In ‘C’, strings are stored in the form of ________.
B.    Escape sequence for backspace is ________.
C.    The ASCII value, in decimal, of character ‘A’ is ________.
D.   ________ are used when we want to test more than one condition and make decision.
E.    The only operator that contains three operands is ________ operator.
F.     fPreprocessor directives are placed in the source program before the function ________.
G.   #define statement calls for simplest type of ________ substitution
H.   printf(“%.*s”, max, s) can be used to print at most ________ characters from a string s.
I.       The expression 11%3 evaluates to __________.
J.       In a 32 bit system float data type will occupy __________ bytes
K.   A function that does not return anything has return type __________.
L.    An identifier defined in a #define preprocessor directive to represent another series of character is called __________.
M.  .           In expression ((j + k > 10) || (n > -3)), (n > -3) will be evaluated if (j + k > 10) is ________.


4. 


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",...