Thursday, November 9, 2017

C Language One Mark Question For BCA and PGDCA Students


--------------------------------------------------------------------------------------------------------------------------
Prepared By : Uday Shah - HOD(IT)
Mobile No : 7600044051
Email : rupareleducation@gmail.com

C Language One Mark Question 


1.         In C, the control is first  transferred to ________ function and from here  rest of the  operation are carried out.
Ans :    main()        Function
2.         How many predefine words are supported by ANSI C standard?.
Ans :    32 Keyword
3.         What is the maximum length of variable name as per ANSI standar is ______  character.
Ans :    32 Character Long
4.         The function of translating one language to another is called_______.
Ans :    Translation         
5.         ________ is a preprocessor directive.
Ans :    #include  ,  #define
6.         By whom C language is created.
Ans :    Dennis M. Ritchie
7.         main() is ________ function.
Ans :    user defined
8.         mark_1 variable name is true?
Ans :    Yes
9.         ‘C’ basically identifies ______ type s of tokens.
Ans:     six
10.       How Many Types of Constant.
Ans:     4
11.       In ‘C’  language , character can be divided into ______ categories.
Ans:     4
12.       The string always end with _______.
Ans:     ‘\0’
13.       a++ +a=b; statement is wrong or Not?
Ans:     Yes
14.       ‘C’ provides a special data type identified by keyword ____, known   as Empty Data set.            
Ans:     void


15.       A type of value that can be assigned to identifier is known as its____.
Ans:  Variable
16.       Which keyword is used in C to to create a new data type ?
Ans:     enum
17.       How many bytes of the memory space dose a float data type use?
Ans:     4 Bytes
18.       By  combination of which two symbol conditional operator is used?
Ans:     ? and  :
19.       Explain arithmetic operators provide by C.
Ans:     Plus , Minus  , Multiply , Divide , Module
20.       Explain Special Operators.
Ans:     sizeof( )  , & , * , -> etc…
21.       C program is  a set of blocks called______.
Ans:    function
22.       ______ is a preprocessor directive.
Ans:    #include  and  #define
23.       C provides a facility of breaking a single program into set of small pieces known as ______
Ans:    function       
24.       A word in C is known as a _______ of C.
Ans:    token 
25.       How many bytes is occupied by “x” character?
Ans:    1
26.       The value passed to the function are known as _____ of function.
Ans:    Parameter
27.       What is the  ASCII value of \0 character ?
Ans:    0                     
28.       Which function key is used to open the saved program ?
Ans:    F3
29.       C language is born in 1972, was standardized in _____ by ANSI.
Ans:    1975
30.       Identifier consists of _______
Ans:    All of these
31.       ‘C’ language has ______ types of attributes [character set].
Ans:    4         

32.       char sub[]=”C language”;  In the above statement the length of the array is ______.
Ans: 11
33.       C   language uses set of _____ to relate a data with its value.
Ans:    blocks
34.       Hoe many byte are used by “double” data type?
Ans:    8
35.       How many bytes are used if ‘int’ is prefixed with a keyword long?
Ans:    4
36.       The function will not return any type of value if function is prefixed by  _____
Ans:    void
37.       What is the significant digit for float data type?
Ans:    6
38.       Which of the following is a data type in C?
Ans:    char
39.       What is the range for a long integer ? 
Ans:    -214783638 to214783637
40.       How many bytes required for unsigned long integer  datatype?
Ans:    4
41.     ______ data has no value
Ans : void
42.     Which of the operator is known as assignment operator?
Ans: =                
43.     Which is used for checking equality of two operator?
Ans:  ==   
44.     In C _____ relational operator is to check for smaller value or equality between two operands.
Ans:  <=    
45.     In the statement, “to_cost=qty + cost_item;” the right hand side if this statement is called a ______
Ans:  C expression                            
46.     Which operator represent Bitwise NOT?  
Ans: ^
47.     When “--“ is suffix then it is known as ______ 
Ans:  per decrement     
48.     Which operator is used to return size of bytes require to store an entry?
Ans:  sizeof()

49.     Which operator are used to change the flow of execution of
program?
Ans:  Logical
50.     Which operator are used to  checking non-equality between two
operands in ‘C’ ?
Ans:  !=
51.     In  “3+2” , which of the following is an operand?
Ans:  3 and 2
52.   In C, there are  _____ logical operator
Ans:  3       
53.     In real arithmetic, we can use all the operators except ____ operator.
Ans:  % (Modular)
54      And, or, not, etc the _____ operator
Ans:  Logical Operator
55.     By what character in C, string always end ?
Ans:  Null ‘\0’




1.     In C, the control is first  transferred to ________ function and from here  rest of the  operation are carried out.
          a) main()              b) void()               c)clrscr()               d) {}
    2.  How many predefine words are supported by ANSI C standard?.
          a) 57                     b) 64                     c)32                      d) 31
    3.  What is the maximum length of variable name as per ANSI standar is   
           ______  character.
          a) 31                    b) 32                    c)30                      d) 64
    4.  The function of translating one language to another is called_______.
          a) compilation      b) Translation     c) Programming    d) Syntax
    5.   ________ is a preprocessor directive.
          a) #include            b) #define             c)#typedef      d) All of these
    6.   By whom C language is created.
          a) Dennis R. Ritchie                b) Dennis M. Ritchie              
c) Dennis F. Ritchie                 d) Dennis A. Ritchie
    7.   main() is ________ function.
          a) user defined     b) inbuilt               c)library               d) exit
    8.   _______ variable name is true..
          a) Total and Oty   b) mark_1.            c) _File                 d) total cost
    9.   C basically identifies ______ type s of tokens.
          a) one                             b) three                 c)six                     d) eight
   10.   Constant is of _______ type.
          a) 4                       b) 3                       c)2                        d) 4
   11.  In ‘C’  language , character can be divided into ______ categories.
          a) 1                       b) 2                       c) 3                       d) 4
    12.   The string always end with _______.
          a) \n                      b) \b                      c) \0                      d) none
    13.   Which of the following C statement is wrong?
          a) mes=123.56;    b) con=”Spe”        c) a++ +a=b;        d) d=a/d
    14.   ‘C’ provides a special data type identified by keyword ____, known 
          as Empty Data set.
          a) void                  b) main                 c)sruct                  d) enum
   15.   A type of value that can be assigned to identifier is known as its____.
          a) function            b) variable           c)data type           d) keyword
   

16.   Which keyword is used in C to to create a new data type ?
          a) enum                b) int                     c)char                             d) string
17.   How many bytes of the memory space dose a float data type use?
          a) 4                       b) 32                     c)8                        d)6
18.   By  combination of which two symbol conditional operator?
          a) ? :                     b) ? ,                     c)? ?                     d) ? ;
19.   Which of the following not an arithmetic operators provide by C ?
          a) Plus                  b) Minus               c)Product    d) Exponent
20.   Which of the following is part of Special Operators?
          a) sizeof( )             b) ,                        c)&                    d) All of them
21.  What is the value of ‘val’ after the  execution of “val = sizeof(int);” ?
          a) 2                       b) 1                       c)4                        d) 16
22.   Which operators are used for comparison?
          a) Arithmetic        b) Relational        c)Comparison      d) Logical
23.   What is the another name of conditional operator ?
          a) Unary               b) Operands                   c)Ternary            d) Toner
24.   Which of the following symbol has higher priority?
          a) +                       b)*                        c)( )                       d) [ ]
25.  The function ______ writes a single character, one at a time to the
standard  output device.
          a) puts()                b) putc()                c)put()           d) putchar()
26.  Which function accepts the character but dose not display screen
          a) getche()             b) getchar()           c)getc()                 d) getch()
27.  Which corresponding character is used  for input unsigned positive
integer?
          a) u                       b) h                       c) d                       d) ud
28. In C, the _____ string specifies the format in which the values of the
variable s are to be store .
          a) Control           b) Input                c) Output              d) Null
29. What dose  p  indicate in % lp ?
          a) length                b) type of data     c) print        d) None of them
30.  “C” compiler identifies memory location by _________   
          a) Name                b) Address            c) a) and b)   d) None of them
31.  What will be the value of “no” variable in scanf(“%c %3d
%d”,&code,&no,&marks); if input is b 1234 23 ?
          a) b                        b) 1234                 c) 123                             d) 23
32. In %lmp, the number of character that will be printed depends on ____
          a) l                         b) m                      c) p                       d) %
33.  _______ is used for Formatted Input.
          a) scanf()              b) printf()              c) getc()                 d) getche()
34.  Which of the following is the corret syntax of gets() ?
          a) gets(variable_name);                              b) get(variable_name);                       c) get variable;                                   d) None of the given
35.  ______ character can be used for inputting a real value in the scanf() function
          a) f                        b) e                        c) a) or b) or d)    d) g
36.To increase the scope of if statement ________ is helpful
          a) [ ]                      b) ( )                      c) { }                     d) {( )}
37.  According to the ANSI ‘C’ in switch statement one can use upto a
maximum of ______case
          a) 257                   b) 255                   c) 259                             d) 261
38.  C has a built-in multi – way decision statement known as a ______
          a) while                 b) for                     c) simple if            d) switch
39.  In C , statement is terminated by _________ symbol
          a) semicolon         b) colon                c) coma                 d) Quotation
40.   How many argument dose  switch statement required ?
          a) 1                       b) 10                     c) 2                 d) None of them
41.  The conditions are evaluated from else if ladder.
          a) Up                    b) Down               c) Left                   d) Right
42.  The last statement in each case in switch statement is ________
          a) next                  b) break               c) stop                  d) exit
43.  In the ‘Switch’ statement, all the option of question ‘case’ is at the end
of _____
          a) ;                        b)  ”                       c) :               d) ‘
44.  The _________ loop is an entry – control loop.
          a) for                              b) do…while        c) while                 d) a) & c)
45.  Which of the following is used for Jumping statement ?
          a) continue;                   b) break                c) jump                 d) exit
46.  The _______ statement is usually used when the statement are to be
executed repeatedly for a fixed number of times
          a) for                     b) if                      c) switch               d) while
47.  The _______ statement is used to terminate  the execution of program
itself
          a) break;              b) escape ( );         c) quit( );               d) exit( );
48.  In ‘for’ loop ,_______ is terminating criteria.
          a) expression1      b) expression2      c) expression3      d)expression4
49.  Loop is finished by ________ sentence itself.
          a) continue;           b) a) & d)              c) end                              d) break
50.  When statement are in _____ thy are called Compound statement.
          a) {}                      b) ( )                      c) [ ]                      d) “ “
51.  The character array in C is consider as __________
          a) character                    b) float                  c) string                d) integer
52.  What is used to represent tabular data?
          a) Array               b) Integer              c) a) & b)       d) None of them
53.  Each array element is accessed by using a subscripted variable known as          
        _______.
          a) value                b) index                c) function            d) a) & b)
54.  At what time array can be initialized ?.
          a) compile time     b) run time           c) a) & b)        d) None of these
55.  Index in a subscripted variable should return ________ value.
          a) real                             b) integer              c) character                    d) float
56.  In int a[2][3] ________ values can be stored.
          a) 5                       b) 6                       c) 4                       d) 8
57.  First element of Array is -
          a) 0                       b) 1                       c) 0.0          d) None of these
58.  In C, how many types of an array?
          a) 2                       b) 3                       c) 4                       d) 5
59.   If int X[5]={28,30,35,40,14}; then X[3]=______
          a) 35                     b) 40                     c) 14                     d) 30
60.  Which corresponding file is necessary to include for the use of every
function?
          a) library               b) header              c) object         d) None of these
61.  Which header file includes function such as isupper(), isdigit()?
          a)  <stdio.h>                  b) <ctype.h>                  c) <math.h>                   d)<conio.h>
62.  ________ is the process of isolating and correcting the  errors.
          a) Formatting       b) Debugging      c) Void                  d) double
63.  If the function does not return any value , but it returns only control,
then the data type is _____
          a) integer          b) void             c) prototype                   d) double
64.  Function prototype is needed when the function is defined after______.
          a) main()              b) sqrt()                c) cos()                  d) void()
65.  How many type of function are there?
          a) 2                       b) 1                       c) 3                       d) 4
66.   Function with no argument and no return values transfer ______
          a) information      b) data                  c) control    d) all of these
67.  ______ is an example of user defined function
          a) time()                b) strcmp()            c) log()                  d) main()
68.  Special data in ‘C’ known as void denotes.
          a) string                b) full                             c) valid                  d) empty
69. If the function has no argument , it dose not receive any data from the
_______ function
      a) calling                 b) called                c) inbuilt               d) a) & b)
70.  The argument used at the time of function definition are known as
arguments.
          a) single                b) multiple            c) no            d) formal
71.  Once the function is defined in the program, it can be used by the
_____function
          a) library              b) calling              c) inbuilt               d) a) & b)
72.  In which type of function there is one way communication?
          a) No argument, No return value      b) Argument, No return value
          c) a) & b)                                           d) None of them
73.  Each ____ in C implement a small task or particular aspect of a large
program.
          a) library             b) header              c) object          d) None of them
74.  Sometime, control variable is known is _______
a) expression 1     b) expression 2  c) expression 3 d) Statement block
75.  Which header file include function such as memory allocation routines,
random number generator?
a) <stdlib.h>        b)  <stdio.h>        c) <math.h>                   d) <ctype.h>
76. A word that a user form by making use of C  character set is known as _
a) program           b)  keyword                   c) identifier           d) function
77. What is made up of one or more statements used for performing
predefined tasks?
a) function           b)  translator                  c) compiler           d) converter
78.   Which of the following is an extension of executable code?
a) .bat                            b)  .exe                 c) .obj                             d) .c
79. For what , escape sequence  is used?
a) formatting       b)  linking             c) coding        d) None of these
80. Which inbuilt function is used to read a value from user?
a) scanf                b)  printf               c) disply               d) putchar
81. C program is  a set of blocks called______.
a) variable            b) compiler           c) function           d) comment
82. ______ is a preprocessor directive.
a) #include            b) #define            c) #function          d) a) & b)
83. C provides a facility of breaking a single program into set of small pieces
known as ______
a) function           b) compiler           c) variable            d) comment
84. A word in C is known as a _______ of C.
a) object               b)  token              c) class                 d) compiler
85. How many bytes is occupied by “x” character?
a) 2                       b)  3                      c) 4                       d) 1
86. The value passed to the function are known as _____ of function.
a) parameter        b) array                c) procedure                   d) library
87. What is the  ASCII value of \0 character ?
a) 0                       b) 7                       c) 8                       d) 9
88. Which function key is used to open the saved program ?
a) F6                     b) F8                    c) F3                     d) F2
89. C language is born in 1972, was standardized in _____ by ANSI.
a) 1987                 b) 1989                c) 1991                 d) 1975
90. Identifier consists of _______
a) Letters              b) Digits               c) Underscore     d) All of these
91. ‘C’ language has ______ types of attributes [character set].
a) 4                       b) 3                       c) 2                       d) 5
92.  char sub[]=”C language”;  In the above statement the length of the array is ______.
a) 11                     b) 10                     c) 9                       d) 12



92.  C   language uses set of _____ to relate a data with its value.
a) translator                   b) compiler                    c) blocks               d)keywords
93.  Hoe many byte are used by “double” data type?
a)16                      b) 24                     c) 8                       d)6
94.  How many bytes are used if ‘int’ is prefixed with a keyword long?
a) b                       b)1024                  c) 4                      d) 16
95.  The function will not return any type of value if function is prefixed by
_____
a) void                 b)main                  c) NULL               d) int
96. What is the significant digit for float data type?
a) 5                       b) 4                      c) 6                      d) 7
97. Which of the following is a data type in C?
a) char                           b) integer              c)string                 d)flot
98.  What is the range for a long integer ? 
a) -32768 To 32767       b) -214783638 to214783637
c) 0 to 65535                  d) 0 to 4294967295
99.  How many bytes required for unsigned long integer  datatype?
a) 1                       b)2                        c) 4                      d) 8
100.  ______ data has no value
a) char                  b) int                     c) float                  d) void
101.  Which of the following operator is known as assignment operator?
a) ++                    b) ==                    c) =                      d) !=
102.   Which of the following is used for checking equality of two operator?
a) ==                   b)=                        c) !=              d) None of these
103.   In C _____ relational operator is to check for smaller value or equality
between two operands.
a) >=                    b) <=                     c) =                       d) !=
104.  In the statement, “to_cost=qty + cost_item;” the right hand side if this
statement is called a ______
a) C expression                       b) C calculation 
 c) C operator                          d) C expression builder

 105.  In real arithmetic, all the operands used in an expression are _____.
a) array                b)float          c)char                  d)string
106.   Which is the operator represent Bitwise NOT?  
a) &                     b) |              c) ~                      d) ^
108.   When “--“ is suffix then it is known as ______ 
a) pre increment                      b) per decrement 
c)post increment                      d) post decrement
109.  Which operator is used to return size of bytes require to store an entry?
a)sizeof()              b)sizeofbytes()      c) bitysize()           d)size()
110.   Which operator are used to change the flow of execution os
program?
a) Relational        b) Logical              c)Bitwise     d)Non of these
111.  Which operator are used to  checking non-equality between two
operands in ‘C’ ?
a) =!                     b)< >                    c) #             d) !=
112.  In  “3+2” , which of the following is an operand?
a) 3                      b) 2                      c) +              d) a) & b)
113.   In C language, _____ is required to work at byte level.  
a) size of ()           b) bitwise operator  c) * operator  d) Non of these
114.   In C, there are  _____ logical operator
a) 1                       b)2                        c)3              d) 4
115.   ‘C’ provides an additional operator as_______
a) *                       b) %                     c)  /             d) \
116.   In real arithmetic, we can use all the operators except ____ operator.
a) -                        b)*                        c) \              d)%
117    And, or, not, etc the _____ operator
a) Comparison     b) Special              c)Logical    d) Non of these
118    The number in exponent from will occupy at least _____ positions.
a) 7                       b) 8                       c)2               d) 1
119    By what character in C, string always end ?
a) null                  b)new line             c) white space       d)non of these
120    Which corresponding character is use for inputting a short integer?
a) ld                      b)si                       c)h               d)L 
121    Which of the following function is used to find square root of the
given number?
a) sqr()                 b) pow()                c)root()       d) sqrt()
122    A word in C is known as a ______ of C.
a) object               b) token                c) class        d)Non of these

123    How many bytes is occupied by ‘A’ character ?
a) 1                     b) 2                      c) 65           d) 8
124    Which of the following is the part of white space?
a) Blank space      b) Form feed     c) Horizontal tab  d) All of themes
 125   Which  of the following is valid identifier?
a) 1total                b) 1_total              c) total_mark   d) tot mark
126    Which constant  refers to decimal numbers that have fraction part?
a) Integer              b)fraction              c)Real         d)Non of these
127    ______ function are the function that a user cerate as per requirement
a) In-built             b) Library     c) User-define    d)sum()
 128   Which of the following program load executable code in to memory ?
a) linker                b) loader               c) C             d) None of them
129    The origin of C has been dated back to 1972 in _____ laboratory.
a) Sun                   b)Turbo                c)Microsoft           d)Bell
130    The variables which are available to all  the function is known as ____
variable.
a) local                 b) permanent        c) global     d) static
131    Which is not predefined word in C language ?
a) volatile             b) static                 c) default     d) Non of these
132    Which of these is a type of integer constant ?
a) Decimal            b) Hexadecimal    c) Octal       d) All of them
133    How many space  is allocated by character “Aa”?
a) 3             b) 2             c) 4             d) None of them
134    Which backslash character is used to insert backspace?
a) \a            b) \b            c) \r            d) \?
135    What is the ASCII value of \t character?
a) 7             b) 8             c) 9             d) 10
136    The object code is linked if needed with the library function giving _____ program.
a) Object               b) Source      c) Executable      d) Access
137    The functions already available in C that a user can use in program are 
          known as_____ functions.
a) inbuilt              b) user                    c) main               d) array
138    An entity in C that is capable of storing different values is known as _____.
a) variable           b) function             c) program                   d) object
139    Which of the following is not a programming language?
a) Paint                b) Fortran              c) Cobol             d) Java
140    Which type of language is C?
a) Structured                  b) High Level or Middle Level                     c) Portable                             d) All of them
141.   How many data types are there in ‘C’ language ?
a) 4                      b) 3                        c) 2                    d) 1
142.   The _____ header file for standard input output
a) conio.h             b)  math.h              c)stdio.h             d) ctype.h
143.   A string in C is enclosed within ______ quote.
a) single                b) Double               c) without                    d) All of them
144.   The ______ statement will display the content of the string
a) Printf()             b) Putchar()                      c) getc()              d) read()
145.   The control string, %d refers to a _____ data.
a) character                    b) integer                c) float                d) double
146.   Which function display formatted output?
a) printf()             b) display()                       c) print               d)  format()
147.   What can be assigned to a variable with the help of assignment operator?
a)  Value              b) Software                     c) Data type           d)  None of them
148.   To assign the values to the variables during the execution of a program is called_____ operation.
a) Output    b) Input                  c) Data               d)  Information
149.   Which corresponding character is used for inputting a double decimal?
a) lf                      b) L                       c) c                       d)  s
150.   ______ is used for Formatted Output.
a) scanf()              b)  printf()             c) getc       d)  getche