Arrays and Structures Three Marks Questions

11th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:45:00 Hrs
Total Marks : 30
    10 x 3 = 30
  1. Define an Array? What are the types?

  2. Write a C++ program to accept and print your name?

  3. How will you pass a structure to a function?

  4. What is called nested structure. Give example

  5. Rewrite the following program after removing the syntactical error(s),if any.
    Underline each correction.
    struct movie
    {
    charm_name[10];
    charm_lang[10];
    float ticket cost = 50;};
    Movie;
    void main()
    {
    gets(m_name);
    cin>>m_lang;
    return 0;
    }

  6. What is the difference among the following two programs?
    (a) #include
    struct point { double x; double y; };
    int main() {
    struct point test;
    test.x = .25; test.y = .75;
    cout< return 0;
    }
    (b) #include
    188 struct { double x; double y; } Point;
    int main(void) {
    Point test={.25,.75};
    return 0;
    }

  7. How to access members of a structure? Give example.

  8. For the following structure definition write the user defined function to
    accept data through keyboard.
    struct date{ int dd,mm,yy};
    struct item { int item id;char name[10];float price;date date_manif;}

  9. What is called anonymous structure. Give an example

  10. Write a user defined function to return the structure after accepting value through keyboard. The structure definition is as follows
    struct Item{int item no;float price;};

*****************************************

TN 11th Standard Computer Science free Online practice tests

Reviews & Comments about 11th Standard Computer Science - Arrays and Structures Three Marks Questions

Write your Comment