In case of array of pointers to strings, we can receive the strings from keyboard using scanf() False True
Select The Blank Question In case 'call by value', the actual arguments of a function are always ________ Correct Answer Your Answer address of the variables values of the variables
Multiple Choice Single Answer Question Which of the following is allowed in C Arithmetic instruction Correct Answer Your Answer () ()
Multiple Choice Single Answer Question Which pointer operator is used to display the address of a variable? Correct Answer Your Answer & &
Multiple Choice Multiple Answer Question What will be the output? main ( ) { int i ; for(i=1;i<=5;i++){ printf("%d ",i ) ; if(i==3) break; } } Correct 1,2,3 Answer Your Answer 1 , 2 , 3 Select The Blank Question ________ is logical NOT operator Correct Answer Your Answer ! !=
Multiple Choice Single Answer Question Which type of I/O functions are used to receive input from keyboard? Correct Answer Your Answer Console Port
Select The Blank Question ________ is an input statement in C Correct Answer scanf Your Answer scanf
Multiple Choice Multiple Answer Question Which of the following operators have not 3rd priority in operations? Correct Answer + , * , % Your Answer =,*,%
Multiple Choice Multiple Answer Question What will be the output? main(){ char name[10]="String"; int j=strlen(name); puts(name); printf("%d",j);} Correct Answer String , 6 Your Answer String , 6
Multiple Choice Single Answer Question The mechanism used to convey information to the function is called as :Correct Answer argument Your Answer argument
True/False Question
The interaction diagrams are not good enough if behaviour of object is conditional and gets into a loop. Correct Answer True Your Answer False
Multiple Choice Single Answer Question It is an idendical function to strcmpi function :Correct Answer stricmp Your Answer stricmp
Multiple Choice Multiple Answer Question Point out the errors if any. main ( ) { int i=100; while(i<=100); {printf("%d ",i ) ; i--; }do; } Correct Answer do; is incorrect , no ; at the end of while Your Answer do; is incorrect
Multiple Choice Single Answer Question Which of the following is a unformatted console I/O function to display a string? Correct puts Answer Your Answer puts
On pointer variable can be substracted from another provided both variables point to elements of the same array. True True
Multiple Choice Multiple Answer Question Which of the following are not control instructions in C? Correct Answer Your Answer Input/ Output , Arithmetic Input/ Output , Arithmetic
Multiple Choice Multiple Answer Question Which of the following combinations in arithmetic operation give real result? Correct real and real , integer and real Answer Your Answer real and real
Multiple Choice Single Answer Question Which operator is used to refer to a structure element when pointer of structure is declared? Correct -> Answer Your Answer ->
Standard I/O functions are nothing but stream I/O functions. True True
Multiple Choice Single Answer Question The main advantage of using state chart diagram is :Correct Answer Your Answer it provides an understanding of process & algorithm used in the method. it provides an understanding of process & algorithm used in the
Multiple Choice Multiple Answer Question Which of the following are the instructions which can be used for repeting task or checking the conditions only once. Correct Answer Repition or Loop , Case , Sequence Control Your Answer Repition or Loop , Case
True/False Question
Select The Blank Question A structure can be used to ________ a floppy. Correct Answer format Your Answer read
Correct Answer Format specification for a character To accept a string from keyboard To display a string on the screen Format specification for a string
Your Answer Format specification for a character To accept a string from keyboard To display a string on the screen Format specification for a string
Select The Blank Question ________ dimensional array has only rows Correct Answer 1 Your Answer 1
Multiple Choice Single Answer Question Which of the following operator is used to declare pointer to pointer? Correct Answer ** Your Answer **
Select The Blank Question ________models one or more roles that a user or a system interacting
Multiple Choice Single Answer Question This function is used to compare two strings :Correct Answer strcmp Your Answer strcmp
Select The Blank Question Break / continue is generally associated with ________. Correct Answer if Your Answer while
Select The Blank Question The argument for the fflush() must be ________. Correct Answer buffer Your Answer buffer
Select The Blank Question ________ is logical AND operator Correct Answer && Your Answer &&
Select The Blank Question ________ operator is decrement operator by 1. Correct Answer -Your Answer --
Multiple Choice Multiple Answer Question When an array has both rows and columns it is called as:Correct Answer 2-D array , Matrix Your Answer 2-D array , Matrix
True/False Question
A state chart diagram shows method of execution on receipt of message and activities used in the method. Correct Answer True Your Answer True
strstr() finds number of occurences of a give string in another string. False False
The ________ diagram is used to understand or model the flow of system through classes or objects. Activity Class
The arguments that we pass on to main() at the command prompt are called ________ arguments. command line command line
Multiple Choice Single Answer Question Point out error in main ( ) { int a[10], i ; for ( i = 1; i <= 10; i++ ) { scanf ( "%d", a[i] ); printf ( "%d", a[i] ); } } Correct Answer & is missing in scanf Your Answer No error
Array elements should be accessed using ________ if there is no fixed logic in accessing the elemnts. Subscripts Pointers and subscripts
A Structure element appears before the '.' while accessing the individual element of a structure False
Your Answer
False
On pointer variable can be substracted from another provided both variables point to elements of the same array. True False
Array elements should be accessed using ________ if the elements are to be accessed in a fixed order. Pointers Subscripts
Multiple Choice Multiple Answer Question Arguments can generally be passed to functions in the following two ways :Correct Answer Your Answer sending the values of the arguments , sending the addresses of the arguments sending the values of the arguments , sending the addresses of the arguments
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 floating point error , 65
Multiple Choice Single Answer Question A sequence diagram shows an interaction arranged in time sequence in its :Correct Answer Your Answer Logical order Logical order
True/False Question
Whenever the control returns from a function some value is definitely returned except for void function..
True True
Multiple Choice Multiple Answer Question Point out the errors if any struct student{ int roll; int course, char duration; } main() { struct student s1; struct student *p; p=&s; s.roll=101;s.course=501;s.duration='2'; p.roll=102; printf("%d%d",p->roll,s.roll); printf("%c",++(*p)); } Correct Answer incorrect p.roll=102 , incorrect ++(*p) Your Answer incorrect p.roll=102 , incorrect ++(*p) , incorrect p->roll
Multiple Choice Single Answer Question Which function is used to accept a character with echoeing on the screen. Correct Answer Your Answer getche getche
Multiple Choice Multiple Answer Question When an entire array is passed to a function, it could be passed by :Correct Answer Your Answer Zeroth element of an array , Only name of the array Only name of the array , Pointer of the array
Multiple Choice Single Answer Question What will happen if you try to put too many values into an array while initialising, which is exceeding the size of the array? Correct Answer Error message from the compiler Your Answer Error message from the compiler
True/False
Multiple Choice Single Answer Question The range of real constant in exponential form is Correct Answer Your Answer -3.4e38 to 3.4e38 -3.4e38 to 3.4e38
Multiple Choice Single Answer Question Which type of I/O functions are used to perform I/O operations on various ports? Correct Answer Your Answer Port Port
Multiple Choice Multiple Answer Question Which agruments are required for fgets()? Correct Answer Your Answer address of the string , maximum length , file pointer address of the string , maximum length , file pointer
Multiple Choice Multiple Answer Question Opening a file establishes a link between :Correct Answer Your Answer the program , the operating system the program , the operating system
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
________ function sets all characters of string to a given character. strset strset
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 , 10
The use case may begin with no precondition or with some preconditions. True True
In analytical phase ________ diagrams are achieved representing a system. Static Logical
Standard I/O functions are nothing but stream I/O functions. True True
Multiple Choice Single Answer Question What will be the output? main(){ int a=25, *b; b=&a; printf("%u",b);} Correct Answer Your Answer memory address of a variable 'a' memory address of a variable 'a'
Multiple Choice Single Answer Question In this loop, initialisation, condtion and change of counter variable is done in a single line. Correct Answer for Your Answer for
Multiple Choice Single Answer Question It displays a single character on the screen:Correct Answer Your Answer putch putchar
Multiple Choice Single Answer Question In logical AND :Correct Answer Your Answer Both the conditions have to be TRUE Both the conditions have to be TRUE
In an array of structures all elements of the array are stored in adjacent memory locations. True False
The address of the zeroth element can also be passed by just passing the ________ of the array. Name Name
While passing an array elements to a function by call by reference we pass addresses of array elements to the function True False
Multiple Choice Multiple Answer Question The addresses present in the array of pointers can be addresses of :Correct Answer Isolated variables , Array elements , Any other addresses
Your Answer
Multiple Choice Multiple Answer Question What will be the output of the following main(){ printf("%d", 7/22 + 25/5); printf("%f", 7/22 + 25.0/5);} Correct Answer 5 , 5.000000 Your Answer 5 , 5.000000
Correct Answer Checks for equal value Both conditions have to be true One of the conditions has to be true Executes if condition is not true
Your Answer Checks for equal value Both conditions have to be true One of the conditions has to be true Executes if condition is not true
Multiple Choice Single Answer Question What will happen if you put too few elements in an array when you initialise it? Correct Answer Your Answer Unused elements will be filled with 0's or garbage Unused elements will be filled with 0's or garbage
Multiple Choice Multiple Answer Question Which of the following are not control instructions in C? Correct Answer Your Answer Input/ Output , Arithmetic Input/ Output , Arithmetic
Multiple Choice Multiple Answer Question Point out the errors if any. main ( ) { int i =1; do{ printf("%d ",i ) ; i+++; } while(i<=10) }
+++ no such operator , ;' is required at the end of while +++ no such operator , ;' is required at the end of while