<<= Back Next =>>
You Are On Multi Choice Question Bank SET 187

9351. In which header file is the NULL macro defined?





9352. How many bytes are occupied by near, far and huge pointers (DOS)?





9353. If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?





9354. The Buckingham Canal which is declared a National Waterway of India recently is a Canal running from—





9355. A group of men .....standing near the shop.





9356. ‘To bring to book’ means





9357. I feel _____.





9358. 1947 ൽ മുതുകുളം പ്രസംഗം നടത്തിയത്? [1947 l muthukulam prasamgam nadatthiyath?]





9359. The word ‘imbibe’ means:





9360. Which of the following function is more appropriate for reading in a multi-word string?





9361. Who was the founder of Modern Basketball?





9362. What will be the output of the program ? #include<stdio.h> #include<string.h> int main() { char str1[20] = "Hello", str2[20] = " World"; printf("%s\n", strcpy(str2, strcat(str1, str2))); return 0; }





9363. What will be the output of the program ? #include<stdio.h> int main() { char p[] = "%d\n"; p[1] = 'c'; printf(p, 65); return 0; }




9364. What will be the output of the program ? #include<stdio.h> #include<string.h> int main() { printf("%d\n", strlen("123456")); return 0; }





9365. What will be the output of the program ? #include<stdio.h> int main() { printf(5+"Good Morning\n"); return 0; }





9366. What will be the output of the program ? #include<stdio.h> #include<string.h> int main() { char str[] = "India\0\BIX\0"; printf("%s\n", str); return 0; }





9367. What will be the output of the program If characters 'a', 'b' and 'c' enter are supplied as input? #include<stdio.h> int main() { void fun(); fun(); printf("\n"); return 0; } void fun() { char c; if((c = getchar())!= '\n') fun(); printf("%c", c); }





9368. What will be the output of the program ? #include<stdio.h> int main() { printf("India", "BIX\n"); return 0; }





9369. What will be the output of the program ? #include<stdio.h> int main() { char str[7] = "IndiaBIX"; printf("%s\n", str); return 0; }





9370. What will be the output of the program ? #include<stdio.h> int main() { char names[] = { "Suresh", "Siva", "Sona", "Baiju", "Ritu"}; int i; char t; t = names[3]; names[3] = names[4]; names[4] = t; for(i=0; i<=4; i++) printf("%s,", names[i]); return 0; }





9371. What will be the output of the program ? #include<stdio.h> #include<string.h> int main() { char str[] = "India\0\BIX\0"; printf("%d\n", strlen(str)); return 0; }





9372. What will be the output of the program ? #include<stdio.h> #include<string.h> int main() { static char str1[] = "dills"; static char str2[20]; static char str3[] = "Daffo"; int i; i = strcmp(strcat(str3, strcpy(str2, str1)), "Daffodills"); printf("%d\n", i); return 0; }





9373. What will be the output of the program ? #include<stdio.h> #include<string.h> int main() { static char s[] = "Hello!"; printf("%d\n", (s+strlen(s))); return 0; }





9374. What will be the output of the program ? #include<stdio.h> int main() { static char s[25] = "The cocaine man"; int i=0; char ch; ch = s[++i]; printf("%c", ch); ch = s[i++]; printf("%c", ch); ch = i++[s]; printf("%c", ch); ch = ++i[s]; printf("%c", ch); return 0; }





9375. What will be the output of the program in 16-bit platform (Turbo C under DOS) ? #include<stdio.h> int main() { printf("%d, %d, %d", sizeof(3.0f), sizeof('3'), sizeof(3.0)); return 0; }





9376. What will be the output of the program ? #include<stdio.h> int main() { int i; char a[] = "\0"; if(printf("%s", a)) printf("The string is empty\n"); else printf("The string is not empty\n"); return 0; }





9377. If char=1, int=4, and float=4 bytes size, What will be the output of the program ? #include<stdio.h> int main() { char ch = 'A'; printf("%d, %d, %d", sizeof(ch), sizeof('A'), sizeof(3.14f)); return 0; }





9378. If the size of pointer is 32 bits What will be the output of the program ? #include<stdio.h> int main() { char a[] = "Visual C++"; char b = "Visual C++"; printf("%d, %d\n", sizeof(a), sizeof(b)); printf("%d, %d", sizeof(a), sizeof(b)); return 0; }





9379. What will be the output of the program ? #include<stdio.h> int main() { static char mess[6][30] = {"Don't walk in front of me...", "I may not follow;", "Don't walk behind me...", "Just walk beside me...", "And be my friend." }; printf("%c, %c\n", (mess[2]+9), ((mess+2)+9)); return 0; }





9380. What will be the output of the program ? #include<stdio.h> int main() { char str1[] = "Hello"; char str2[10]; char t, s; s = str1; t = str2; while(t=s) t++ = s++; printf("%s\n", str2); return 0; }





9381. What will be the output of the program ? #include<stdio.h> int main() { char str[] = "India\0BIX\0"; printf("%d\n", sizeof(str)); return 0; }





9382. What will be the output of the program ? #include<stdio.h> int main() { char str[25] = "IndiaBIX"; printf("%s\n", &str+2); return 0; }





9383. What will be the output of the program ? #include<stdio.h> int main() { char str = "IndiaBIX"; printf("%s\n", str); return 0; }





9384. What will be the output of the program ? #include<stdio.h> int main() { char str[] = "Nagpur"; str[0]='K'; printf("%s, ", str); str = "Kanpur"; printf("%s", str+1); return 0; }





9385. What will be the output of the program ? #include<stdio.h> int main() { printf(5+"IndiaBIX\n"); return 0; }





9386. What will be the output of the program ? #include<stdio.h> #include<string.h> int main() { char sentence[80]; int i; printf("Enter a line of text\n"); gets(sentence); for(i=strlen(sentence)-1; i >=0; i--) putchar(sentence[i]); return 0; }





9387. What will be the output of the program ? #include<stdio.h> void swap(char , char ); int main() { char pstr[2] = {"Hello", "IndiaBIX"}; swap(pstr[0], pstr[1]); printf("%s\n%s", pstr[0], pstr[1]); return 0; } void swap(char t1, char t2) { char t; t=t1; t1=t2; t2=t; }





9388. What will be the output of the program (Turbo C in 16 bit platform DOS) ? #include<stdio.h> #include<string.h> int main() { char str1 = "India"; char str2 = "BIX"; char str3; str3 = strcat(str1, str2); printf("%s %s\n", str3, str1); return 0; }





9389. If the size of pointer is 4 bytes then What will be the output of the program ? #include<stdio.h> int main() { char str[] = {"Frogs", "Do", "Not", "Die", "They", "Croak!"}; printf("%d, %d", sizeof(str), strlen(str[0])); return 0; }





9390. What will be the output of the program ? #include<stdio.h> int main() { int i; char a[] = "\0"; if(printf("%s", a)) printf("The string is not empty\n"); else printf("The string is empty\n"); return 0; }





9391. What will be the output of the program ? #include<stdio.h> #include<string.h> int main() { char str1[5], str2[5]; int i; gets(str1); gets(str2); i = strcmp(str1, str2); printf("%d\n", i); return 0; }





9392. What will be the output of the program in Turbo C? #include<stdio.h> int main() { char str[10] = "India"; str[6] = "BIX"; printf("%s\n", str); return 0; }





9393. What will be the output of the program ? #include<stdio.h> int main() { char str1[] = "Hello"; char str2[] = "Hello"; if(str1 == str2) printf("Equal\n"); else printf("Unequal\n"); return 0; }





9394. What will be the output of the program ? #include<stdio.h> int main() { char t; char p1 = "India", p2; p2=p1; p1 = "BIX"; printf("%s %s\n", p1, p2); return 0; }





9395. What will be the output of the program ? #include<stdio.h> #include<string.h> int main() { printf("%c\n", "abcdefgh"[4]); return 0; }





9396. What will be the output of the following program in 16 bit platform assuming that 1022 is memory address of the string "Hello1" (in Turbo C under DOS) ? #include<stdio.h> int main() { printf("%u %s\n", &"Hello1", &"Hello2"); return 0; }






9397. Which of the following statements are correct about the program below? #include<stdio.h> int main() { char str[20], s; printf("Enter a string\n"); scanf("%s", str); s=str; while(s != '\0') { if(s >= 97 && s <= 122) s = s-32; s++; } printf("%s",str); return 0; }





9398. Which of the following statements are correct about the below declarations? char p = "Sanjay"; char a[] = "Sanjay"; 1: There is no difference in the declarations and both serve the same purpose. 2: p is a non-const pointer pointing to a non-const string, whereas a is a const pointer pointing to a non-const pointer. 3: The pointer p can be modified to point to another string, whereas the individual characters within array a can be changed. 4: In both cases the '\0' will be added at the end of the string "Sanjay".





9399. Which of the following statements are correct ? 1: A string is a collection of characters terminated by '\0'. 2: The format specifier %s is used to print a string. 3: The length of the string can be obtained by strlen(). 4: The pointer CANNOT work on string.





9400. I --------------- nothing infront of me.





<<= Back Next =>>
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution