Advertisements
Advertisements
Which of the following statement is valid? Why? Also, write their result.
int a; a = (3,014);
Concept: undefined >> undefined
The set of statements that are executed again and again in iteration is called ______
Concept: undefined >> undefined
Advertisements
How many types of iteration statements?
Concept: undefined >> undefined
How many times the following loop will execute? for (int i = 0; i < 10; i++)
Concept: undefined >> undefined
Which of the following is the exit control loop?
Concept: undefined >> undefined
Which of the following is called the entry control loop?
Concept: undefined >> undefined
A loop that contains another loop inside its body: ______
Concept: undefined >> undefined
Write a for loop that displays the number from 21 to 30.
Concept: undefined >> undefined
Write a while loop that displays numbers 2, 4, 6, 8.......20.
Concept: undefined >> undefined
Structure definition is terminated by ______
Concept: undefined >> undefined
What will happen when the structure is declared?
Concept: undefined >> undefined
A structure declaration is given below.
struct Time
{
int hours;
int minutes;
int seconds;
}t;
Using the above declaration which of the following refers to seconds.
Concept: undefined >> undefined
Which of the following is a properly defined structure?
Concept: undefined >> undefined
A structure declaration is given below.
struct employee
{
int empno;
char ename[10];
}e[5];
Using the above declaration which of the following statement is correct.
Concept: undefined >> undefined
When accessing a structure member, the identifier to the left of the dot operator is the name of ______.
Concept: undefined >> undefined
Define structure. What is its use?
Concept: undefined >> undefined
What is the error in the following structure definition.
struct employee{ inteno;charename[20];char dept;} Employee e1,e2;
Concept: undefined >> undefined
How to access members of a structure? Give example.
Concept: undefined >> undefined
What is called anonymous structure? Give an example?
Concept: undefined >> undefined
Write a C++ program to add two distances using the following structure definition.
struct Distance{
int feet;
float inch;
}d1, d2, sum;
Concept: undefined >> undefined
