User Defined Types

1

How many types of models are available to create the user-defined data type?

A. 1
B. 2
C. 3
D. 4

2

What is the scope of typedef defined data types?

A. inside that block only
B. whole program
C. outside the program
D. none of the mentioned

3

How many types of user-defined data type are in c++?

A. 1
B. 2
C. 3
D. 4

4

What is the syntax of user-defined data types?

A. typedef_existing data type_new name
B. typedef_new name_existing data type
C. def_existing data type_new name
D. none of the mentioned

5

What is the output of this program?

1.
    #include 
2.
    using namespace std;
3.
    int main()
4.
    {
5.
        typedef int num;
6.
        typedef char let;
7.
        let w = "steve";
8.
        num a = 10, b = 15;
9.
        num c = a + w;
10.
        cout << c;
11.
        return 0;
12.
    }
A. 10steve
B. steve10
C. compile time error
D. compile but not run