Home MOCK TEST Programing Language C Programming Language C Programming Language – 14
In c language, what is the right way to access value of structure variable book{ price, page }?
printf("%d%d", price.book, book.page);
printf("%d%d", book::price, book::page);
printf("%d%d", price->book, page->book);
printf("%d%d", book.price, book.page);
In c language, perror( ) function used to?
prints the error message specified by the compiler
prints the garbage value assigned by the compiler
prints the null value assigned by the compiler
Work same as printf()
In c language, Bitwise operators can operate upon?
Double and char
Double and ints
Ints and chars
Floats and ints
What is tokens in c language?
The largest individual units of program
The smallest individual units of c program
The basic element recognized by the compiler
Both B and C
In c language, what is keywords?
Keywords have some predefine meanings and these meanings cannot be changed
Keywords have some unknown meanings and these meanings cannot be changed
Keywords have some predefine meanings and these meanings can be changed
None of the above
What is constant in c language?
Constants have fixed values that change during the execution of a program
Constants have fixed values that do not change during the execution of a program
Constants have unknown values that may be change during the execution of a program
Which is the right way to declare constant in C?
int const var = 10;
const int var = 10;
int constant var =10;
Both A and B
In c language, which of the followig operators are known as Ternary Operator?
In c language, switch statement, each case instance value must be _______?
Variable
Special Symbol
Constant
All of the above
In c language, what is the work of break keyword?
Exit from loop or switch statement
Halt from loop or switch statement
Restart from loop or switch statement
None of the above
C Programming Language – 13
Pankaj is passionate about his work. Because he loves what he does. He is a full time blogger and also has experience in Computer as well as in Teaching Field. DHGK is the dream Project of his own Mind to help aspirants.
Be the first to comment