Welcome to your C Language-II DATE:March 17, 2025 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] None 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 None 3.Which is not correct for 'unsigned int' variable? Store an integer value Store 0 to 65536 Negative Allowed Positive Value not Allowed None 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 None 5.________ element is called base address. 0 1 Last Element None of Above None 6.When an if statement will appear in another else statement then it is known as if else ladder True False None 7.When and if statment will appear in another if statment is known as Nested if-else True False None 8.Which function return a value No Argument no Return value Argument & Return value Both Above None of Above None 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 None 10.Every String is termianted by '\0' True False None 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. None 12.Union member store data at the same memory location True False None 13.Union memeber can directly Access in a program. True False None 14.Structure memeber can't directly access. True False None 15.Which is not a valid file open mode r w a s None 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") None 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. None 18.fprintf satement is supported by which of the following header file. stdio.h stdlib.h conio.h string.h None 19.Which is the correct way of declarting the file pointer FILE pt FILE *PT file *PT FILE PT None 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 None 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. None 22.%d is a control string for ____________ Integer Float Long Integer Double None 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. None 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. None 25.C is a _____________ type of Language. High Level Language Low Level Language Both Above None of Above None
Add a Comment