Welcome to your C Language-IV DATE:December 2, 2024 Name of Student 1.What happend if we can not initilize the variable Variable contain garbage value Variable contain 0 Compiler generate error None of above 2.What happen if we can not initialize the the constant Contain garbage value Contain 0 Generate Error None of Above 3.Identify the operatorVariable = (Expression)? true value: false value; Unary Operator Binary Operator Ternary Operator Special Operator 4.How many times the loop will execute int i=10;do {}while(i<10); 1 10 9 11 5.How many time the loop wil executeint i=10;while(i<10){} 1 0 10 9 6.which of the followin is not a storage data type static extern enum register 7.Which if the following is a storage class type static extern enum register 8.what is the output void main(){int a=5,*pt; //Assume the address of a is 7098pt=&a;printf("%u",pt)} 5 7098 Doesn't generate output Generate Error 9.what is the output void main(){int a=5,*pt; //Assume the address of a is 7098pt=&a;printf("%d",*pt)} 5 7098 Doesn't generate output Generate Error 10.what is the output void main(){int a=5,*pt; //Assume the address of a is 7098pt=&a;printf("%u",&a)} 5 7098 Generate Error No output is generate 11.what is the output void main(){int a=5,*pt; //Assume the address of a is 7098pt=&a;printf("%u",**pt)} 5 7098 Generate Error No output is generate 12.what is the output void main(){int a=5,*pt; //Assume the address of a is 7098pt=&a;printf("%d",*(&a));} 5 7098 Generate Error No output is generate 13.What is the range of unsigned int variable 2 byte 4 byte 1 byte 8 byte 14.What is the range of unsigned int datatype 0 - 655336 0 to 32768 -32768 -32768 to + 15.which of the following data type does not require 4 byte in memory int long float unsigned int 16.Which iof the followin is require only one byte char short int unsigned int All of Above 17.main( ){float a=10.3;float *b;b=&a; /*address of a=1500 */printf("\n%u%u",&a,b);} 1500 1500 10.3 1500 1500 10.3 10.3 10.3 18.main( ){int i=2;int *j; /* address of i=2645 &j=&i address of j=2670 */ printf("\n%u",&i);printf("\n%u",j);} 2670 2645 2645 2645 2 2645 2670 2670 19.The library function _____ is used to open the file. fopen() fread() fwrite() All of Above 20.Which keyword is used to define structure? Structure struct STRUCTURE STRUCT 21.main( ){ int i=3;int *j,**k; /* address of i=3456, j=&i; address of j=2976, k=&j; address of k=1200 */printf("\n%d%d",*j,**k);} 3456 2976 2976 3 3 3 2976 2976 22.Which extension is used for c program file .c .cc .cpp All of Above 23.How many decimal places are displayed when a number has a conversion specification of %f 2 19 6 14 24.Which is modulus operator from # * % @ 25.If an array has storage class as static then all the array elements would have the default initial value as zero(0). True False
Add a Comment