Welcome to your C Language-II DATE:December 2, 2024 Name of Student 1.Declare a sturcture 'Student ' variable for storing the record of 10 student struct Student st[10]; struct Student st; struct st[10] Student; struct Student *st[10] 2.int A[10];y=sizefof(A);what is the value of y? 10 20 As we specified at the time of input All of Above 3.Which is not correct for 'unsigned int' variable? Store an integer value Store 0 to 65536 Negative Allowed Positive Value not Allowed 4.which in correct for Array it can story fixed number of element. all the element have same data type it a sequence of memory array element started with 0 5.________ element is called base address. 0 1 Last Element None of Above 6.When an if statement will appear in another else statement then it is known as if else ladder True False 7.When and if statment will appear in another if statment is known as Nested if-else True False 8.Which function return a value No Argument no Return value Argument & Return value Both Above None of Above 9.Whic is in correct for 'isuppper(x)'. Supported by CTYPE.H Return none Zero value when x is in upper case. Check the x is upper case or not X is a character 10.Every String is termianted by '\0' True False 11.Which is not coreect for Char datatype. It require 1 Byte memory to store variable. Store any ASCII character. Control String is %c. We can not store 0-9. 12.Union member store data at the same memory location True False 13.Union memeber can directly Access in a program. True False 14.Structure memeber can't directly access. True False 15.Which is not a valid file open mode r w a s 16.Which is the correct way of opening a file for storing data pt=fopen("student.txt","r") pt=fopen("student.txt","a") pt=fopen("student.txt","r+") t=fopen("student.txt","rw") 17.The file mode 'r' is use for ________________________ Reading data from file Writing data to the file Appending data to the file Saving data into a file. 18.fprintf satement is supported by which of the following header file. stdio.h stdlib.h conio.h string.h 19.Which is the correct way of declarting the file pointer FILE pt FILE *PT file *PT FILE PT 20.What is the output of the codechar str1[10] ; /* having value "KAMPTE" */char str2[10]; /* having value NAGPURstrcpy(str1,str2);printf("%s", str1); NAGPUR KAMPTEE NAGPURKAMPTEE KAMPTEENAGPUR 21.%6d means _________________ Total 6 digit will display Only Six(6) will display. 6 Space will allocate for display from left side. 6 Space will allocate for display from Right side. 22.%d is a control string for ____________ Integer Float Long Integer Double 23.FILE * pt;pt=fopen("result.txt","w"); File is open for writing data. File is open for reading data. File is open for reading and writing data. File is open for appending data. 24.What happen if we can not initialize a variable. Constant take the Zero value automatically. Constant doesn't take any value. Compiler Generate an Error. Constant contain garbage value. 25.C is a _____________ type of Language. High Level Language Low Level Language Both Above None of Above
Add a Comment