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

0%
0

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

1 / 45

The void pointer can point to which type of objects?

2 / 45

What are the parts of the literal constants?

3 / 45

How are the constants declared?

4 / 45

A void pointer cannot point to which of these?

5 / 45

When does the void pointer can be dereferenced?

6 / 45

What does a reference provide?

7 / 45

Which function is used to check whether a character is a tab or space?

8 / 45

Which function is used to check whether a character is printable on console?

9 / 45

The data elements in the structure are also known as what?

10 / 45

Which reference modifier is used to define the reference variable?

11 / 45

Which function is used to check whether a character is tab or space or whitespace control code(n,r,etc.)?

12 / 45

Which of the following gives the memory address of the first element in array?

13 / 45

What we can?t do on a void pointer?

14 / 45

Which function is used to check whether a character is an alphabet?

15 / 45

The difference between x and ?x? is?

16 / 45

Which function is used to check whether a character is hexadecimal?

17 / 45

Which function is used to check whether a character is a number?

18 / 45

Which of the following accesses the seventh element stored in array?

19 / 45

What is size of generic pointer in C++ (in 32-bit platform)?

20 / 45

How to declare a wide character in the string literal?

21 / 45

Which function is used to check whether a character is tab or a control code?

22 / 45

What will happen when the structure is declared?

23 / 45

Pick the correct statement about references.

24 / 45

Which of the following is incorrect?

25 / 45

Which of the following statement is not true about preprocessor directives?

26 / 45

Pick the correct statement about references in C++.

27 / 45

Which of the following accesses a variable in structure *b?

28 / 45

What is the difference between references and pointers?

29 / 45

What will be used when terminating a structure?

30 / 45

Which value can we not assign to reference?

31 / 45

Which function is used to check whether a character is an alphabet or number?

32 / 45

What is the correct definition of an array?

33 / 45

The declaration of the structure is also called as?

34 / 45

How a reference is different from a pointer?

35 / 45

What is the index number of the last element of an array with 9 elements?

36 / 45

Identify the correct sentence regarding inequality between reference and pointer.

37 / 45

Which of the following operator is used while declaring references?

38 / 45

What are the references in C++?

39 / 45

Which of the following statement(s) is/are correct?

40 / 45

Identify the incorrect statement.

41 / 45

The constants are also called as _____________

42 / 45

Which function is used to check whether a character is punctuation mark?

43 / 45

The pointer can point to any variable that is not declared with which of these?

44 / 45

Which of the following is a properly defined structure?

45 / 45

Which of the following function must use reference.

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