" /> -->

Arrays and Structures Model Question Paper

11th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 50
    5 x 1 = 5
  1. The size of an array should be specified in

    (a)

    <>

    (b)

    {}

    (c)

    ()

    (d)

    []

  2. Array index number always start from

    (a)

    0

    (b)

    1

    (c)

    n

    (d)

    n-1

  3. Displaying all the elements in an array is an example of

    (a)

    Object definition

    (b)

    Traversal

    (c)

    Overloading

    (d)

    functions

  4. The number of characters entered in an array char n[4] is

    (a)

    4

    (b)

    3

    (c)

    5

    (d)

    more than 4

  5. In an array char str[5]={'A', 'B', 'C'}; what is the value of str[4]?

    (a)

    A

    (b)

    B

    (c)

    NULL

    (d)

    0

  6. 5 x 2 = 10
  7. What must be known to create any kind of array?

  8. Write the syntax of creating a character array.

  9. How the members of the nested structures can be accessed?

  10. Write a C++ program to check palindrome or not using array

  11. Write about returning structures from functions.

  12. 5 x 3 = 15
  13. Write the syntax and an example for structure.

  14. Write a note on 2D array declaration.

  15. Write about initialization of 2-D array.

  16. Write a C++ program to access array elements using pointer with sample output.

  17. Write a program to assign data to members of a structure variable and display the contents.

  18. 4 x 5 = 20
  19. Write a C++ program to display the contents of the following structure definition.

  20. Write C++ program to show how the strucrures can be returned from a function.

  21. Explain memory representation of 2-D array.

  22. Write output of the following program.
    struct Student
    {
    int age;
    float height, weight;
    struct dob
    {
    int date;
    char month[4];
    int year;
    };
    }mahesh;
    void main( )
    {
    cout < < " Enter the age:" < < endl;
    cin > > mahesh.age;
    cout < < "Enter the height:" < < endl;
    cin> > mahesh.height;
    cout < < "Enter the weight:" < < endl;
    cin < < mahesh. weight;
    cout < < "The Date of birth:" < < endl;
    cout < <  " Enter the day:" < < endl;
    cin > > mahesh.dob.date;
    cout < < "Enter the month:"«endl;
    cin > > mahesh.dob.month;
    cout < < "Enter the year:" < < endl;
    cin > > mahesh.dob.year;
    cout < < "The values entered for Age, height and weightare" < < endl;
    cout-ccmahesh.age < < "\t" < < mahesh.height < < "\t" < < mahesh.weight < < endl;
    cout < < "His date of Birth is:" < < endl < < mahesh.dob.date < < "-" < < mahesh.dob.
    month < < "-" < < mahesh.dob.year;
    }

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

TN 11th Standard Computer Science free Online practice tests

Reviews & Comments about 11th Computer Science - Arrays and Structures Model Question Paper

Write your Comment