Sunday, November 11, 2018

Computer Programming Objective and Descriptive for II MID 2018-19


UNIT-III
1.___________is a variable which stores address of another variable.
a)pointer b)static variable c)register variable d)none
2._______________can be defined as assigning an  address of a variable to a pointer
a)pointer initialization b)pointer assignment c)multiple indirection d)pointer arithmetic
3. which of the following are correct syntax to pass array as parameter to function
a)func(&array)    b)func(#array) c)func(*array)   d)none
4)the statement which is used to make a function call is _________
a)functionnameb)fucntionname() c)function(parameters) d)all
5)__________are the arguments which are present in function prototype
a)actual b)formal c)both d)none
6)in________approach the address of the values are passed as an arguments to a function
a)call by value b)call by reference  c)both )none
7)in __________method we pass a value as a parameter to a function
a)call by value b)call by reference  c)both )none
8__________can be defined as length of the time that the variable retains its value
a)scope b)lifetime c)visibility d)all
9._________is th e default storage class for local variables
a)static b)auto c)extern d)none
10.________controles how the variables may be accessed or modified
a)type qualifiers b)storage classes c)both )none
11.________is the type qualifier that only applied to  only pointers
a)volatile b)restrict  c)both d)none
12_______is the value that can be unchanged during the execution  of a program
a)constant b)variable c)constint a d)a and c
13)______________can be defined as the part of the program that the object is visible
a)scope b)visibility  b)lifetime c)program
14)actual code of the function can be called as ____
a)function definition b)function call c)prototype d)all
UNIT-IV
1.                   Structure is a  deriveddatatype[          ]
a)derived    b)self   c)referential    d)array
       2.   structure declaration always starts with struct keyword
                a)tag   b)member   c)struct     d)none
       3. A Structure that itself contains another structure isNested structure
                a) loop b)format structure  c)array structure  d)Nested structure
        4. In array structure  every element  is  of - structure type 
                a)Type def b)structure type  c)object type  d)none
        5. Typedef used to redefineprimitive datatype
a)dataname   b)struct     c)primitive datatype  d)none
         6. Bitfield is a structure members that contains  bits
a)data    b) values    c) members    d) bits
7.By using  enumerated datatypes we can create- owndatatype
                a) tag name b) enum  c) owndatatype d) primitive datatype
8.which have same memory locations Union
                a)Union b) structure c) array d)pointer
9.When main has parameters they are known as  -- commandline arguments
                a)argc    b)argv  c)command  d)commandline arguments
         10.NO.of elements in the command line argument are define in--argc--
                a)argc b)argv c) command  d)typedef
        11.AProtype helps the compiler to check -returntype,argumenttype
                a)returntype,argumenttype    b)argumentlist   c)list,value d) none
        12.Function which call itself is known as Recursive function
                a) recursive function b)structure function c)function prototype d)none
       13.keyword for union is union
a)structure b) union c) typedef d) tag name
14.In arrays Bitfields are not permitted
a)bitfields b) structures c) typedef d) none
15.In structure and functions  structure member variables are passed to a function
a)call by value b)call by reference c) address d)none
UNIT-IV
1.       When preprocessor is to be compiled________                                                                               [      A     ]
(a)Before a program compiled  (b)After a program compiled (c) middle of the program (d) none
2.       What is the symbol is used before preprocessor directive start_______                                [    b        ]
(a)&      (b) #   (c) @    (d) *
3.       What is the full form for ANSI ________                                                                                              [    A       ]
(a)American National Standards Institute (b) American National Standards India
(c) American National Syntax  Institute  (d)          none
4.       Which of the following is formatted I/O statements _________                                               [    C        ]
(a)put()                                (b)puts()             (c) scanf()           (d)get()
5.       Which of the following is unformatted I/O statements  ________                            [       C     ]
(a)scanf()            ()printf()              (c)gets()               (d)none
6.       ______function is used to display information of any type of data to the screen[     a      ]
(a)printf()        (b)scanf()                                (c)sscanf()                           (d)none
7.       ________function is used to read all the type of data from keyboard.                   [   b         ]
(a) printf ()          (b)scanf()            (c) fprintf()         (d) none
8.       A _______ is a sequence of characters                                                                                  [     a       ]
(a)text stream   (b)bit stream  (c) byte stream  (d) string stream
9.       A ______is a sequence of bytes that has a one-to-one correspondence to the bytes in the external device                                                                                                                                         [     d       ]
(a)text stream   (b)bit stream  (c) byte stream  (d) binary stream
10.   The ______function resets the file position indicator to the beginning of the file specified as its argument.                                                                                                                                          [      b      ]
(a)seek()             (b)rewind( )                       (c) fseek()                           (d)close()


UNIT-III 10MARKS
1.       What is a function? Explain about call by value & Call by reference with example?
2.       List and Describe the Dynamic allocation functions?
3.       What are the different Storage classes in ‘C’ explain?
  UNIT-III 2 MARKS
4.       What is function prototype and write the syntax?
5.       Storage Class Specifiers?
6.       Function argument Types? .
7.       List out Dynamic Memory Allocation functions?  
UNIT-IV 10 MARKS
1.       What is command line argument explain with example?
2.       What is a Structure Explain how to declare, initialize, access the structure element?
3.       Write a recursive program to print the factorial value of any given integer?
4.       Give the difference between Structure and Union?
5.       Explain about how to pass structure to function?
6.       Discuss Passing Pointer to a Function with example?
UNIT-IV 2 MARKS
1.       Define pointer and its initialization of pointers?
2.       What is recursion?
3.       What is enumerated data type with example?
4.       what are the Problems with Pointers?
5.       What is multiple indirections?
6.       What is typedef and write the syntax and example
7.       Define nested structure with example?
UNIT-V     10  MARKS

1.       Explain in Detail about various types of unformatted input and output functions with example?
2.       Explain about preprocessor directives?
3.       Write an example program to fprintf(),and fscanf() file handling functions?
4.       explain about file operations in C?
5.       Explain about fseek(),rewind(),ftell() with syntax ?
UNIT-V     2 MARKS
6.       what is file and list out file modes?
7.       List the operations performed on files?
8.       Difference between putchar() and puts()?
9.       List out the Function for formatted Console I/o?

1 Comments:

At February 20, 2019 at 3:57 AM , Blogger sandeep saxena said...

Thanks for sharing a good article. This is very interesting and I like this type of article only. I have always read important article like this.
C C++ Training in Chennai
C Training in Chennai
core java training in chennai
javascript training in chennai
javascript course in chennai
core java training in chennai
core java training

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home