400 Câu hỏi trắc nghiệm lập trình C/C++ có đáp án (Phần 2)
-
4796 lượt thi
-
50 câu hỏi
-
60 phút
Danh sách câu hỏi
Câu 8:
Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1?
Xem đáp án
Chọn B
Câu 13:
In the following program where is the variable a getting defined and where it is getting declared?
Xem đáp án
Chọn A
Câu 19:
A long double can be used if range of a double is not enough to accommodate a real number?
Xem đáp án
Chọn B
Câu 21:
Size of short integer and long integer can be verified using the sizeof( ) operator
Xem đáp án
Chọn A
Câu 22:
If the definition of external variable occurs in the source file before its use in a particular function, then there is no need for an extern declaration in the function
Xem đáp án
Chọn A
Câu 23:
Global variable are available to all functions. Does there exist a mechanism by way of which it available to some and not to others
Xem đáp án
Chọn B
Câu 24:
Size of short integer and long integer would vary from one platform to another
Xem đáp án
Chọn B
Câu 25:
A float occupies 4 bytes. If the hexadecimal equivalent of these 4 bytes A, B, C and D, then when this float is stored in memory in which of the following order do these bytes gets stored?
Xem đáp án
Chọn D
Câu 31:
We want to round off x, a float, to an int value, The correct way to do is:
Xem đáp án
Chọn A
Câu 35:
If the file tobe included does not exist, the preprocessor flashes an error message
Xem đáp án
Chọn A
Câu 37:
What will happen if in the C program you assign a value to a array element whose subscript exceeds the size of array?
Xem đáp án
Chọn C
Câu 39:
In which stage the following code. Gets replaced by the contents of the file stdio.h
Xem đáp án
Chọn D