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

0%
0

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

1 / 50

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

2 / 50

The operator used for dereferencing or indirection is ____

3 / 50

Which variable does equals in size with enum variable?

4 / 50

What is the size of wchar_t in C++?

5 / 50

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

6 / 50

What is the range of the floating point numbers?

7 / 50

Identify the incorrect option.

8 / 50

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

9 / 50

Identify the user-defined types from the following?

10 / 50

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

11 / 50

Implementation dependent aspects about an implementation can be found in ____

12 / 50

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

13 / 50

Is bool a fundamental data type in C++?

14 / 50

Identify the incorrect option.

15 / 50

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

16 / 50

Pick the odd one out.

17 / 50

Which of the following correctly declares an array?

18 / 50

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

19 / 50

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

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

21 / 50

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

22 / 50

Choose the incorrect option.

23 / 50

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

24 / 50

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

25 / 50

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

26 / 50

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

27 / 50

Which is used to indicate single precision value?

28 / 50

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

29 / 50

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

30 / 50

Which type is best suited to represent the logical values?

31 / 50

Which of the following statements are false?

32 / 50

Pick the odd one out.

33 / 50

Find the odd one out.

34 / 50

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

35 / 50

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

36 / 50

Which of the following will not return a value?

37 / 50

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

38 / 50

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

39 / 50

What does ?a? escape code represent?

40 / 50

To which of these enumerators can be assigned?

41 / 50

What happens when a null pointer is converted into bool?

42 / 50

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

43 / 50

Which of these expressions will isolate the rightmost set bit?

44 / 50

The size_t integer type in C++ is?

45 / 50

Which of the following is illegal?

46 / 50

What will happen when defining the enumerated type?

47 / 50

______________ have the return type void.

48 / 50

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

49 / 50

How many characters are specified in the ASCII scheme?

50 / 50

The value 132.54 can be represented using which data type?

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