|
1. data model is a) Entity b) Constriants c) Entity relationship d) All the above 2. What kind of sorting is this: SORT (k,n) 1.[Loop on I Index] repeat thru step2 for i=1,2,……..n-1 2.[For each pass,get small value] min=i; repeat for j=i+1 to N do { if K[j] min=j; } temp=K[i];K[i]=K[min];K[min]=temp; 3.[Sorted Values will be returned] A) Bubble Sort B) Quick Sort C) Selection Sort D) Merge Sort 3. In pure milk if 20% replaced by water and in this again 20% is replaced by water and again20% is replaced by water then what is the proportion of milk in that mixture? 4. What is the function of ceil(X) defined in math.h do? A) It returns the value rounded down to the next lower integer B) it returns the value rounded up to the next higher integer C) the Next Higher Value D) the next lower value
5. Choose the correct one select emp.name ,emp.age from emp1,emp2 where emp.sno = 456; a) cluster b) non-cluster c) index d) none of these 6. Look at the Code: #include void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); }
What will be the output? A) No output B) A Non Integer C)0 D) Garbage
7. A function ‘q’ that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as: A) int (*q(char*)) [] B) int *q(char*) [] C) int(*q)(char*) [] D) None of the Above 8. Which of these statements are false w.r.t File Functions? i)fputs() ii)fdopen() iii)fgetpos() iv)ferror() A) ii B) i,ii C) iii D) iv 9. study the code: #include void main() { const int a=100; int *p; p=&a; (*p)++; printf("a=%dn(*p)=%dn",a,*p); }
What is printed?
A) 100,101 B) 100,100 C) 101,101 D) None of the above 10. When do you say that a digraph is acyclic A) if and only if its first search does not have back arcs B) a digraph is acyclic if and only if its first search does not have back vertices C) if and only if its first search does not have same dfnumber D) None of these 11. what is the output? #define fun(a,b,t) (g ##t=(a),(a)=(b),(b)=g##t) float gfloat; main() { float a=1.12,b=3.14; fun (a,b,float); printf("na=%4.2f,b=%4.2f",a,b); } A) Error in Defining Macro B) a=1.12,b=3.14 C) a=3.14,b=1.12 D) None of the Above 12. Which of the Following will define a type NODE that is a node in a Linked list? A) struct node {NODE*next;int x;};type def struct node NODE; B) typedef struct NODE {struct NODE *next;int x;}; C) typedef struct NODE {NODE *next;int x;}; D) typedef struct {NODE *next;int x;}NODE; 13. Which of the following are valid “include” formats? A) #include and #include[file.h] B) #include (file.h) and #include C) #include [file.h] and #include “file.h” D) #include and #include “file.h” 14. Identify the correct argument for the function call fflush() in ANSI C: A) stdout B) stdin C) stderr D) All the above 15. Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } }
Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A) Only I B) Only II C) II & III D) IV
|