PTASAPTASA
Slide 1 Slide 1
Slide 2 Slide 2
Slide 3 Slide 3
Slide 4 Slide 4
<
>

DAE CIT-113 CH-10 MCQs

DAE | CIT-113

INTRODUCTION TO COMPTER PROGRAMMING 

CHAPTER : 10

DIPLOMA OF ASSOCIATE ENGINEERING

EXAM PRAPARATION

COMMON WITH:
COMPUTER INFORMATION TECHNOLOGY

MULTIPLE CHOICE QUESTION

Chapter:10 (Structres And Unions)

Question 1:

Which of the following are themselves a collection of different data types?

Question 2:

User-defined data type can be derived by___________.

Question 3:

Which of the following cannot be a structure member?

Question 4:

Number of bytes in memory taken by the below structure is? struct test
{
int k;
char c;
};

Question 5:

What would be the size of the following union declaration?
union uTemp
{
double a;
int b[10];
char c;
}u;
(Assuming size of double = 8, size of int = 4, size of char = 1)

Question 6:

Members of a union are accessed as________________.

Question 7:

Which of the following share a similarity in syntax?
1. Union, 2. Structure, 3. Arrays and 4. Pointers.

Question 8:

Which of the following data types are accepted while declaring bit-fields?

Question 9:

Which of the following is not allowed?

Question 10:

Bit fields can only be declared as part of a structure.

Question 11:

What will be the size of the following structure?
#include <stdio.h>
struct temp
{
int a[10];
char p;
};

Question 12:

Which among the following is never possible in C when members in a structure are same as that in a union?
//Let P be a structure
//Let Q be a union

Question 13:

What is the similarity between a structure and union?

Question 14:

How will you free the allocated memory ?

Question 15:

The ___________ allocates enough storage in a number to accommodate the largest element in the union.

Question 16:

Just as one structure can be nested within another, a ___________ too can be nested in another union.

Question 17:

To declare a structure you must start with the keyword _____________.

Question 18:

A union consist of number of elements that

Question 19:

The structure name is often referred to as its _______________.

Question 20:

The fields of structures can be accessed with the operator called the ________ operator.


NOTE
If you find any mistake in them, do tell in the comment, so that it can be corrected.

If you face any issues feel free to contact me on WhatsApp
03129671316, 03085507292

If you want more improvement
Share feedback in the comment

INSTRUCTOR
MUHAMMAD BIN JAMEEL
BSC ENGG. CIVIL
 

Post a Comment

Previous Post Next Post