What is the value in string st2[] of the below code snippet? char st1 [] ="TimesOf"; char st2 [] ="Oman"; strcat(st1, st2); a. TimesOfOman O . b. OmanTimes Of O c. Times Of O d. Oman What is the value in string st2[] of the below code snippet? char st1 [] ="TimesOf"; char st2 [] ="Oman"; strcat(st1, st2); a. TimesOfOman O . b. OmanTimes Of O c. Times Of O d. Oman What is the value in Las per the following given statements ? char name[]="STEVEN"; L=strlen(name); O a. 4 O b. 6 O c. O O d. 7 What is the value in string st1[] of the below code snippet? char st1 [] ="Allen"; char st2 [] ="Smith"; strcpy(st1, st2); a. Smith O b. Allen b O c. AllenSmith O d. SmithAllen What is the output of the below code snippet? char greeting[6] = {'H', 'e', 'T', 'T', 'o', '\0'}; printf("%c",greeting[2]); O a. r O b. O C. O O de What is the output of the below code snippet? int a = 7, b = 8, c = 4; if(a
=b) printf("%d", (a+b)); else printf("%d",(b-c)); O a.-1 O b. 5 O c.4 O d. 15 What is the value of z as per the following C code for x=5 and y=6? if (x>y) Z=X+y/2; else z=x/2; a. 8 O b. 2 O c. 5 O d. 1 What should be the value of x for the below code to print "OMAN"? if(x>10 && x%5==0) printf("OMAN"); else printf("INDIA"); O a. 10 O b. 5 O c. 12 d. 15 What is the output of the below code snippet for sal = 450? if(sal>500 && sal =400) printf("2 percent hike"); else printf("No hike"); O a. No hike O b. 2 percent hike O c. Error O d. 5 percent hike A=10, B=5, C=3 X = A*A+C Find the value of x for the given expression. O a. 133 O b. 130 O c. 100 O d. 103 Choose the correct expression in C language for the given expression: K= (X2 + Y)/Z O a. K= (pow(X,2) + Y)/Z O b. K= (pow(X) + Y)/Z) O c. K= pow(2,X) + Y/Z O d. K= (pow(2,X) + Y/Z) Find the value of X for the given expression: X= 3 + 5 %3 a. 5 O b. 3 O c. O O d. 1