Select The Blank | ||||
Question | Operation between an integer and real always yields ________ result | |||
Correct Answer | a real | |||
Your Answer | a real | |||
| | |||
Multiple Choice Multiple Answer | ||||
Question | Which operators are used to access the individual structure element. | |||
Correct Answer | . , -> | |||
Your Answer | . , -> | |||
| | |||
Multiple Choice Multiple Answer | ||||
Question | Which of the following fuctions require a single string as a parameter? | |||
Correct Answer | strlen , strlwr , strupr | |||
Your Answer | strlen , strlwr , strupr | |||
| | |||
True/False | ||||
Question | If the file is absent, fopen() returns NULL. | |||
Correct Answer | True | |||
Your Answer | True | |||
| | |||
True/False | ||||
Question | When array elements are passed to a function with call by reference, function has pointer arguments. | |||
Correct Answer | True | |||
Your Answer | False | |||
| | |||
Multiple Choice Single Answer | ||||
Question | If the function message() is to be called, which of the following statements is correct? | |||
Correct Answer | message(); | |||
Your Answer | message(); | |||
| | |||
Select The Blank | ||||
Question | ________ function is used to remove any data remaining in the buffer. | |||
Correct Answer | fflush | |||
Your Answer | flush | |||
| | |||
Match The Following | ||||
| ||||
| ||||
| ||||
| ||||
| ||||
| | |||
Multiple Choice Multiple Answer | ||||
Question | Which of the following are valid types of function calls? | |||
Correct Answer | call by value , call by reference | |||
Your Answer | call by value , call by reference | |||
| | |||
True/False | ||||
Question | When array is declared with rows and columns it is called as 2-D i.e. two dimensional array | |||
Correct Answer | True | |||
Your Answer | True | |||
| | |||
Multiple Choice Multiple Answer | ||||
Question | What will be the output of the following main(){ char c='d';float f=1; printf("%c", c); printf("%d", c * f);} | |||
Correct Answer | d , 0 | |||
Your Answer | d , 100 | |||
| | |||
True/False | ||||
Question | strupr() function is used to convert a string into upper case. | |||
Correct Answer | True | |||
Your Answer | True | |||
| | |||
Select The Blank | ||||
Question | ________ instruction ensures that the instructions are executed in the same order in which they appear in the program. | |||
Correct Answer | Sequence Control | |||
Your Answer | Sequence Control | |||
| | |||
Multiple Choice Multiple Answer | ||||
Question | The command line arguments are :- | |||
Correct Answer | argc , argv | |||
Your Answer | argc , argv , arg1 | |||
| | |||
True/False | ||||
Question | scanf is used to accept the input from the user. | |||
Correct Answer | True | |||
Your Answer | True | |||
| | |||
Multiple Choice Single Answer | ||||
Question | The break statement is used to exit from:- | |||
Correct Answer | A for loop | |||
Your Answer | A for loop | |||
| | |||
Multiple Choice Multiple Answer | ||||
Question | Which of the following fuctions require number of characters as one of the parameters? | |||
Correct Answer | strncmp , strnset , strncpy | |||
Your Answer | strncmp , strnset , strncpy | |||
| | |||
Multiple Choice Multiple Answer | ||||
Question | Which of the following modes are used to read from a file? | |||
Correct Answer | r , r+ | |||
Your Answer | r , r+ | |||
| | |||
Multiple Choice Single Answer | ||||
Question | In which type, the values are passed to a function? | |||
Correct Answer | call by value | |||
Your Answer | call by value | |||
| | |||
Multiple Choice Single Answer | ||||
Question | Integer can have maximum value | |||
Correct Answer | 32767 | |||
Your Answer | 32767 | |||
| | |||
Multiple Choice Single Answer | ||||
Question | Which type of I/O functions are used to receive input from keyboard? | |||
Correct Answer | Console | |||
Your Answer | Console | |||
| | |||
Multiple Choice Multiple Answer | ||||
Question | What will be the output? main(){ char name[10]="String",n[10]; puts(strcpy(n,name)); printf("%d",strcmp(n,name));} | |||
Correct Answer | String , 0 | |||
Your Answer | String , 1 | |||
| | |||
Select The Blank | ||||
Question | There are as many as ________ odd operators in C which can affect the evaluation of an expession in subtle and unexpected ways | |||
Correct Answer | 45 | |||
Your Answer | 45 | |||
| | |||
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 Single Answer | ||||
Question | When you pass an array as an argument to a function, what actually gets passed? | |||
Correct Answer | Address of the first element of the array [base address] | |||
Your Answer | Address of the first element of the array [base address] | |||
| | |||
Select The Blank | ||||
Question | Break / continue is generally associated with ________. | |||
Correct Answer | if | |||
Your Answer | for | |||
| | |||
True/False | ||||
Question | A value of object changes when event occurs. | |||
Correct Answer | True | |||
Your Answer | True | |||
| | |||
Select The Blank | ||||
Question | Booch emphasises development of mechanisms with ________ model. | |||
Correct Answer | Data | |||
Your Answer | Data | |||
| | |||
Select The Blank | ||||
Question | Arithmatic operations can be performed on characters where their ________ value is used. | |||
Correct Answer | ASCII | |||
Your Answer | ASCII | |||
| | |||
Select The Blank | ||||
Question | ________ function appends first n characters of a string at the end of another | |||
Correct Answer | strncat | |||
Your Answer | strncat | |||
| | |||
Multiple Choice Single Answer | ||||
Question | The collaboration diagram shows interaction between objects and sequence of activities denoted by :- | |||
Correct Answer | Members | |||
Your Answer | Members | |||
| | |||
Multiple Choice Single Answer | ||||
Question | Which of the following is correct application of a structure. | |||
Correct Answer | interacting with the mouse | |||
Your Answer | uninstalling a mouse | |||
| | |||
Multiple Choice Single Answer | ||||
Question | An expression contains relational operators, assignement operators, and arithmatic operators. In the absence of parentheses, they will be evaluated in which of the following order? | |||
Correct Answer | Arithmetic, relational, assignment | |||
Your Answer | Arithmetic, relational, assignment | |||
| | |||
Match The Following | ||||
| ||||
| ||||
| ||||
| ||||
| ||||
| | |||
True/False | ||||
Question | There are basically 5 types of instructions in C | |||
Correct Answer | False | |||
Your Answer | True | |||
| | |||
Select The Blank | ||||
Question | ________ enable us to specify the order in which the various instructions in a program are to be executed by the computer. | |||
Correct Answer | Control Instructions | |||
Your Answer | Control Instructions | |||
| | |||
True/False | ||||
Question | All structure elements are stored in contiguous memory locations. | |||
Correct Answer | True | |||
Your Answer | True | |||
| | |||
Select The Blank | ||||
Question | The set of statements belonging to a function are enclosed within a pair of ________. | |||
Correct Answer | braces | |||
Your Answer | braces | |||
| | |||
Multiple Choice Multiple Answer | ||||
Question | What will be the output of the following main(){ char c='ab',d='A'; printf("%d", c+d); printf("%d",2*(c+d));} | |||
Correct Answer | 162 , 324 | |||
Your Answer | 162 , 324 | |||
| | |||
Select The Blank | ||||
Question | In analytical phase ________ diagrams are achieved representing a system. | |||
Correct Answer | Static | |||
Your Answer | Logical | |||
| | |||
Multiple Choice Single Answer | ||||
Question | Name the header file in which FILE is defined :- | |||
Correct Answer | stdio.h | |||
Your Answer | conio.h | |||
| | |||
Multiple Choice Multiple Answer | ||||
Question | What will be the output? main ( ) { int suite = 3 ; switch (suite) { case 1:printf( "\nDiamonds" ) ; case 2:printf( "\nSpade" ) ; default :printf( "\nHeart" ) ; }printf ("\nI thought one wears a suite") ; } | |||
Correct Answer | Heart , I thought one wears a suite | |||
Your Answer | Heart , I thought one wears a suite | |||
| | |||
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 , 200.000000 | |||
Your Answer | 0 , 1.000000 , 200.000000 | |||
| | |||
Multiple Choice Single Answer | ||||
Question | A state chart diagram shows two states, one of the state and the other of | |||
Correct Answer | Transition between two states | |||
Your Answer | Transition between two states | |||
| | |||
Multiple Choice Single Answer | ||||
Question | In this the condition is specified at the end of the loop :- | |||
Correct Answer | do | |||
Your Answer | do | |||
| | |||
True/False | ||||
Question | The return statement should present at the end of the called function. | |||
Correct Answer | False | |||
Your Answer | True | |||
| | |||
True/False | ||||
Question | While passing an array elements to a function by call by value we pass values of array elements to the function | |||
Correct Answer | True | |||
Your Answer | True |
Saturday, July 24, 2010
C Programming 7--SCDL
C Programming 7:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment