Choose a topic to test your knowledge and improve your Data structure skills
The selection sort is basically a method of repeated
In selection sort of n elements,how many times is the swp function called in the complete execution of the algorithm?
If two string are identical then strcmp() function returns____
How will you print on screen?
Following function is used to find the first occurrence of given string in another string
Which of the following is more appropriate for reading a multi_word string?
What will be the output of the following code? Int main(){printf("Hello","Word ");return 0;}
What will be the output of the following code? Int main(){char str[9]="My Computer";printf("%s ",str);return 0;}
Pointer is a___________
__operator is used to get the value stored at address stored in pointer variable
Which of the following statement is true about char ****a ?
Are *ptr++ and ++*ptr are same?
Which of the following is a collection of different data type elements?
Which of the following is a collection of different data type elements?
Which of the following is a collection of different data type elements?
What is the similarity between structure,union and enum?
Which of the following can not be a structure member?
The members of the union are accessed by____
a-> is systematically correct if_____
How many bits are absolutely necessary to store an ASCII character ?
The result of 0001 1010 / 0001 0101 is
The result of 0001 1010 & 0000 1000 is ___
The result of 0001 1010 ~ 0100 0011 is
The result of 0001 1010^0001 0000 is____
The result of 0001 1010 << 2 is____
The result of 0001 1010 >>2 is____
The most significant bit is lost in following operation
The result of i)true AND false II)false or false
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ int i=320; char *ptr=(char *)&i; printf("%d",*ptr); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> #define x 5+2 int main(){ int i; i=x*x*x; printf("%d",i); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ char c=125; c=c+10; printf("%d",c); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ float a=5.2; if(a==5.2) printf("Equal"); else if(a<5.2) printf("Less than"); else printf("Greater than"); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ int i=4,x; x=++i + ++i + ++i; printf("%d",x); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ int a=2; if(a==2){ a=~a+2<<1; printf("%d",a); } else{ break; } return 0;
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ int a=10; printf("%d %d %d",a,a++,++a); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ char *str="Hello world"; printf("%d",printf("%s",str)); return 0; }
What will be output if you will compile and execute the following c code? #include <stdio.h> #include <string.h> int main(){ char *str=NULL; strcpy(str,"cquestionbank"); printf("%s",str); return 0; }
#include <stdio.h> #include <string.h> int main(){ int i=0; for(;i<=2;) printf(" %d",++i); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ int x; for(x=1;x<=5;x++); printf("%d",x); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ printf("%d",sizeof(5.2)); return 0; }
What will be output if you will compile and execute the following c code? #include <stdio.h> #include <string.h> int main(){ char c=' 8'; printf("%d",c); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> #define call(x,y) x##y int main(){ int x=5,y=10,xy=20; printf("%d",xy+call(x,y)); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> int * call(); int main(){ int *ptr; ptr=call(); printf("%d",*ptr); return 0; } int * call(){ int a=25; a++; return &a; }
. What is error in following declaration? struct outer{ int a; struct inner{ char c; }; };
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ int array[]={10,20,30,40}; printf("%d",-2[array]); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ int i=10; static int x=i; if(x==i) printf("Equal"); else if(x>i) printf("Greater than"); else printf("Less than"); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> #define max 5; int main(){ int i=0; i=max++; printf("%d",i++); return 0; }
What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){ double far* p,q; printf("%d",sizeof(p)+sizeof q); return 0; }
C language was invented by
The data type created by the data abstraction process is called
A variable which is visible only in the function in which it is defined, is called
Unsigned integers occupies
Which of the following data structure is linear type ?
Which of the following data structure is linear type ?
In C, if you pass an array as an argument to a function, what actually gets passed?
Which data structure allows deleting data elements from front and inserting at rear?
Queue is a -------------- List .
A node in a linked list must contain at least
An algorithm is made up of two independent time complexities f (n) and g (n). Then the complexities of the algorithm is in the order of
Big O notation is defined for