LIST OF ATTEMPTED QUESTIONS AND ANSWERS  
  
 
 Select The Blank 
 Question  When the values are passed to a function as an argument, it is called as ________ 
 Correct Answer  call by value 
 Your Answer  call by value 
  
 
 Multiple Choice Multiple Answer 
 Question  Which of the following are not control instructions in C? 
 Correct Answer  Input/ Output , Arithmetic  
 Your Answer  Input/ Output , Arithmetic  
  
 
 True/False 
 Question  In TSD based client server architecture, the user interface is loosely coupled with the data. 
 Correct Answer  False 
 Your Answer  False 
  
 
 Multiple Choice Multiple Answer 
 Question  What will be the output of the following main(){ int a = 1;float f=1; printf("%d", a * f); printf("%f", a * f); printf(%f",a + f * 100);} 
 Correct Answer  0 , 1.000000 , 101.000000  
 Your Answer  0 , 1.000000 , 101.000000  
  
 
 True/False 
 Question  If the value of a formal argument is changed in the called funciton, the corresponding changes take place in the calling funciton. 
 Correct Answer  False 
 Your Answer  False 
  
 
 True/False 
 Question  Functions are written to avoid rewriting the same section of code which requires oftenly. 
 Correct Answer  True 
 Your Answer  True 
  
 
 Select The Blank 
 Question  When the addresses of variables are passed to a function as an argument, it is called as ________ 
 Correct Answer  call by reference 
 Your Answer  call by reference 
  
 
 Select The Blank 
 Question  There are basically ________ types of instrucitons in C. 
 Correct Answer  4 
 Your Answer  2 
  
 
 Multiple Choice Multiple Answer 
 Question  What will be the output of the following main(){ char c='d';float f=1; printf("%c", c); printf("%f", c * f);} 
 Correct Answer  d , 100.000000  
 Your Answer  d , 100.000000  
  
 
 Multiple Choice Single Answer 
 Question  How many times 'return' statement can be written? 
 Correct Answer  any 
 Your Answer  once 
  
 
 Select The Blank 
 Question  ________ function finds first occurrence of a given character in a string. 
 Correct Answer  strchr 
 Your Answer  strchr 
  
 
 Match The Following 
 Question Correct Answer Your Answer 
 Test Model Stipulates test strategy, test plans, test specifications, test results and test recovary reports. Stipulates test strategy, test plans, test specifications, test results and test recovary reports. 
 Analysis Object Model Presents information how object model will be executed. Presents information how object model will be executed. 
 Use case Model Defines actors inside and outside of use case and their behaviour. Defines actors inside and outside of use case and their behaviour. 
 Implementation Model Converts design object model to implementation model based on reusable component technology. Implements use case data 
  
 
 Select The Blank 
 Question  The address of the zeroth element is also called as ________ 
 Correct Answer  Base address 
 Your Answer  Base address 
  
 
 Select The Blank 
 Question  ________ is a person or device that uses the system. 
 Correct Answer  User 
 Your Answer  Entity 
  
 
 Multiple Choice Multiple Answer 
 Question  What will be the output? main( ) { int a[10],i=0; for( ;i<=10;i++) a[i]=i+1; printf("%d",i); printf("%d",a[i-=2]); } 
 Correct Answer  11 , 10  
 Your Answer  11 , garbage value  
  
 
 Select The Blank 
 Question  ________ could be the alternate for if when it is related to integer / character constant expression only. 
 Correct Answer  switch 
 Your Answer  switch 
  
 
 Match The Following 
 Question Correct Answer Your Answer 
 %c Format specification for a character Format specification for a character 
 gets() To accept a string from keyboard To accept a string from keyboard 
 puts() To display a string on the screen Sets first n characters of a string to a given character. 
 %s Format specification for a string Format specification for a string 
  
 
 Select The Blank 
 Question  Array elements should be accessed using ________ if the elements are to be accessed in a fixed order. 
 Correct Answer  Pointers 
 Your Answer  Subscripts 
  
 
 Multiple Choice Single Answer 
 Question  When array elements are passed to a function with their values, it is called as:- 
 Correct Answer  Call by value 
 Your Answer  Call by value 
  
 
 True/False 
 Question  switch requires an integer expression. 
 Correct Answer  True 
 Your Answer  True 
  
 
 Multiple Choice Multiple Answer 
 Question  Opening a file establishes a link between :- 
 Correct Answer  the program , the operating system  
 Your Answer  the program , the operating system  
  
 
 Multiple Choice Multiple Answer 
 Question  What will be the output of the following main(){ int i = 1; char c='A'; printf("%d",i * c); printf("%f",i * (c+2));} 
 Correct Answer  floating point error , 65  
 Your Answer  65 , 67.000000  
  
 
 Multiple Choice Single Answer 
 Question  Use case defines and describes what happens in the system in logical order. This is termed as :- 
 Correct Answer  System behaviour 
 Your Answer  System analysis 
  
 
 Multiple Choice Single Answer 
 Question  In declaration char name[20]; it can hold 
 Correct Answer  20 characters 
 Your Answer  20 characters 
  
 
 True/False 
 Question  One structure can be nested within another structure. 
 Correct Answer  True 
 Your Answer  True 
  
 
 Multiple Choice Single Answer 
 Question  Any C function by default returns which value? 
 Correct Answer  int 
 Your Answer  int 
  
 
 Multiple Choice Single Answer 
 Question  A function definition is enclosed within :- 
 Correct Answer  { } 
 Your Answer  ( ) 
  
 
 True/False 
 Question  Standard I/O functions are nothing but stream I/O functions. 
 Correct Answer  True 
 Your Answer  True 
  
 
 Multiple Choice Multiple Answer 
 Question  Which of the following are basic data types in C? 
 Correct Answer  int , float , char  
 Your Answer  int , float , char  
  
 
 Multiple Choice Multiple Answer 
 Question  Point out the errors if any struct student{ int roll; int course, char duration; } main(){ struct student s1; int *p; p=&s; p.roll=101; } 
 Correct Answer  Incorrect p.roll=101 , no error but warning for suspicious pointer conversion  
 Your Answer  Incorrect p.roll=101 , address of structure cannot be assigned to an integer pointer  
  
 
 True/False 
 Question  Default statement is optional in switch. 
 Correct Answer  True 
 Your Answer  False 
  
 
 True/False 
 Question  Formal and Actual arguments cannot be same. 
 Correct Answer  False 
 Your Answer  False 
  
 
 Select The Blank 
 Question  ________ should be avoided in programming. 
 Correct Answer  goto 
 Your Answer  goto 
  
 
 Multiple Choice Single Answer 
 Question  Which is the ASCII value of End of file? 
 Correct Answer  26 
 Your Answer  26   
  
   
 Multiple Choice Single Answer    
 Question  if an integer a = 2 and float b =6, the expression a + b evaluates to   
 Correct Answer  8.000000   
 Your Answer  8.000000   
  
   
 Select The Blank    
 Question  ________ is escape sequence for new line.   
 Correct Answer  \n   
 Your Answer  \n   
  
   
 Multiple Choice Single Answer    
 Question  Which of the following is a unformatted console I/O function to display a string?   
 Correct Answer  puts   
 Your Answer  putchar   
  
   
 Multiple Choice Single Answer    
 Question  The language used for modeling and documenting system is :-   
 Correct Answer  UML   
 Your Answer  UML   
  
   
 Multiple Choice Multiple Answer    
 Question  Which of the following statements are valid for C language?   
 Correct Answer  one man language , developed in 1972    
 Your Answer  developed in 1972 , Only Low level language    
  
   
 Multiple Choice Single Answer    
 Question  The simple logic for system specifications is provided by a languages named :-   
 Correct Answer  OCL [ Object Constraint Language ]   
 Your Answer  OOPL [ Object oriented Programming Language ]   
  
   
 True/False    
 Question  Logical operators cannot be used with 'do' loop.   
 Correct Answer  False   
 Your Answer  False   
  
   
 Multiple Choice Single Answer    
 Question  An array is a collection of :-   
 Correct Answer  The same data type placed next to each other in memory   
 Your Answer  The same data type placed next to each other in memory   
  
   
 Multiple Choice Multiple Answer    
 Question  Which of the following operators have 2nd priority in operations?   
 Correct Answer  + , -    
 Your Answer  + , -    
  
   
 Select The Blank    
 Question  After goto, ________ has to be mentioned to pass the control.   
 Correct Answer  label name   
 Your Answer  label name   
  
   
 True/False    
 Question  The sequence diagram shows flow of behaviour and collaboration of objects.   
 Correct Answer  False   
 Your Answer  True   
  
   
 Multiple Choice Single Answer    
 Question  Which of the following is valid statement to declare a string?   
 Correct Answer  char name[20];   
 Your Answer  char name[20];   
  
   
 Multiple Choice Multiple Answer    
 Question  What will be the output? main(){ int a=25, *b, **c; b=&a;c=&b; printf("%d",*c); printf("%u %u",b,c}   
 Correct Answer  garbage value , address of a , address of b    
 Your Answer  address of a , address of b
 4:00 AM
4:00 AM
 Rozim
Rozim
 Posted in:
 Posted in: