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

0%
0

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

1 / 50

Which of the following correctly declares an array?

2 / 50

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

3 / 50

What happens when a null pointer is converted into bool?

4 / 50

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

5 / 50

The size_t integer type in C++ is?

6 / 50

Pick the odd one out.

7 / 50

Which of the following is illegal?

8 / 50

The operator used for dereferencing or indirection is ____

9 / 50

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

10 / 50

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

11 / 50

Which is used to indicate single precision value?

12 / 50

Implementation dependent aspects about an implementation can be found in ____

13 / 50

Which of the following statements are false?

14 / 50

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

15 / 50

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

16 / 50

Identify the user-defined types from the following?

17 / 50

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

18 / 50

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

19 / 50

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

20 / 50

Identify the incorrect option.

21 / 50

Pick the odd one out.

22 / 50

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

23 / 50

Which variable does equals in size with enum variable?

24 / 50

What does ?a? escape code represent?

25 / 50

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

26 / 50

What will happen when defining the enumerated type?

27 / 50

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

28 / 50

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

29 / 50

To which of these enumerators can be assigned?

30 / 50

The value 132.54 can be represented using which data type?

31 / 50

Find the odd one out.

32 / 50

Which of the following will not return a value?

33 / 50

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

34 / 50

Identify the incorrect option.

35 / 50

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

36 / 50

Choose the incorrect option.

37 / 50

Is bool a fundamental data type in C++?

38 / 50

Which type is best suited to represent the logical values?

39 / 50

What is the size of wchar_t in C++?

40 / 50

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

41 / 50

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

42 / 50

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

43 / 50

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

44 / 50

______________ have the return type void.

45 / 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 ____________

46 / 50

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

47 / 50

What is the range of the floating point numbers?

48 / 50

How many characters are specified in the ASCII scheme?

49 / 50

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

50 / 50

Which of these expressions will isolate the rightmost set bit?

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