Types, Pointers, Arrays & Structures in C++ Quiz 1

0%
0

Types, Pointers, Arrays & Structures in C++ Quiz 1

1 / 50

Is bool a fundamental data type in C++?

2 / 50

Find the odd one out.

3 / 50

Which of the following is not one of the sizes of the floating point types?

4 / 50

Which data type is used to represent the absence of parameters?

5 / 50

Identify the user-defined types from the following?

6 / 50

Which one of the following is not a possible state for a pointer.

7 / 50

For what values of the expression is an if-statement block not executed?

8 / 50

Which of the following is a valid floating-point literal?

9 / 50

What is the range of the floating point numbers?

10 / 50

The operator used for dereferencing or indirection is ____

11 / 50

Suppose in a hypothetical machine, the size of char is 32 bits. What would sizeof(char) return?

12 / 50

Is the size of character literals different in C and C++?

13 / 50

0946, 786427373824, ?x? and 0X2f are _____ _____ ____ and _____ literals respectively.

14 / 50

Identify the incorrect option.

15 / 50

Which variable does equals in size with enum variable?

16 / 50

The correct statement for a function that takes pointer to a float, a pointer to a pointer to a char and returns a pointer to a pointer to a integer is ____________

17 / 50

Size of C++ objects are expressed in terms of multiples of the size of a ____ and the size of a char is _______

18 / 50

Which of the following belongs to the set of character types?

19 / 50

How many characters are specified in the ASCII scheme?

20 / 50

What constant defined in header returns the number of bits in a char?

21 / 50

______________ have the return type void.

22 / 50

Which of these expressions will return true if the input integer v is a power of two?

23 / 50

What does ?a? escape code represent?

24 / 50

It is guaranteed that a ____ has at least 8 bits and a ____ has at least 16 bits.

25 / 50

Which is used to indicate single precision value?

26 / 50

Which of the following correctly declares an array?

27 / 50

Identify the incorrect option.

28 / 50

What happens when a null pointer is converted into bool?

29 / 50

The size_t integer type in C++ is?

30 / 50

Which of these expressions will isolate the rightmost set bit?

31 / 50

Implementation dependent aspects about an implementation can be found in ____

32 / 50

Which of three sizes of floating point types should be used when extended precision is required?

33 / 50

Which of the two operators ++ and ? work for the bool data type in C++?

34 / 50

In which type do the enumerators are stored by the compiler?

35 / 50

The value 132.54 can be represented using which data type?

36 / 50

Which of the following is illegal?

37 / 50

How do we represent a wide character of the form wchar_t?

38 / 50

In C++, what is the sign of character data type by default?

39 / 50

Pick the odd one out.

40 / 50

What will happen when defining the enumerated type?

41 / 50

Choose the incorrect option.

42 / 50

Pick the odd one out.

43 / 50

To which of these enumerators can be assigned?

44 / 50

Can two functions declare variables(non static) with the same name?

45 / 50

Which of the following will not return a value?

46 / 50

When a language has the capability to produce new data type mean, it can be called as

47 / 50

What is the size of wchar_t in C++?

48 / 50

Which type is best suited to represent the logical values?

49 / 50

The size of an object or a type can be determined using which operator?

50 / 50

Which of the following statements are false?

Provide Your Information

Your score is

The average score is 0%

0%

Qunoot e Nazilah
Dua e Hajat
4 Qul
6 Kalma
Dua-e-Akasha
Darood Akbar
Surah Fatiha
Dua-e-Ganj Ul Arsh
Dua-e-Jamilah
Ayat-ul-Kursi