ASSEB Class 12 Computer Science Question Paper 2019–2020 [HS 2nd Year Computer Science and Application Papers]

ASSEB Class 12 Computer Science Question Paper 2019–2020 (HS 2nd Year). Download Computer Science & Application papers PDF based on AHSEC exam pattern
ASSEB Class 12 Computer Science Question Paper 2019–2020 [HS 2nd Year Computer Science and Application Papers]

2020 – COMPUTER SCIENCE AND APPLICATIONS (Theory)

Full Marks: 70 Pass Marks: 21 Time: Three hours


1. Answer the following questions: (1×8=8)

(a) What is a constructor?

(b) What is inheritance?

(c) What is the purpose of ‘new’ operator in C++?

(d) Give an example of non-linear data structure.

(e) When do we use ALTER TABLE command in SQL?

(f) What is a logic gate?

(g) Write the full form of SMTP.

(h) Give an example of a web browser.


2. Answer the following questions: (2×10=20)

(a) Differentiate between abstract class and concrete class.

(b) What is meant by member variables and member functions?

(c) Distinguish between ofstream and ifstream classes.

(d) Differentiate between router and switch.

(e) Suppose an array arr contains three elements. How would you declare and initialize a pointer to this array?

(f) Describe the two operations that can be performed on a stack.

(g) What is the difference between CHAR and VARCHAR2 datatype in SQL?

(h) Describe the use of GROUP BY clause in SQL with an example.

(i) State De Morgan’s law in Boolean algebra.

(j) What are the limitations of Karnaugh map?


3. Answer any three from the following: (3×3=9)

(a) Explain how polymorphism can be implemented using function overloading.

(b) Describe the mechanism of accessing data members and member functions in the following cases:

 (i) Inside the main program

 (ii) Inside a member function of the same class

 (iii) Inside a member function of another class

(c) Rewrite the following program after removing the syntax errors, if any.

(d) Write an algorithm for selection sort.

(e) Differentiate between IN and BETWEEN operators in SQL with example.

Or

Write the necessary SQL commands to create a table STUDENT with attributes:

Roll_No integer, Name char(35), Address varchar2(70); set Roll_No as primary key.

(f) Convert the following infix expression into postfix:

(A*B − (C − D)) / (E + F)

Or

Calculate the value of the postfix expression:

54 6 + 7 4 − * 9 / 35 15 + +

(g) Write the steps to search 23 using binary search in the array:

2, 5, 8, 12, 16, 23, 38, 56, 72

(h) Identify each of the following logic gates by name and construct their respective truth tables.

Or

Construct a truth table for the function F(A,B,C) = A + BC′ and from the truth table obtain an expression for the inversion function.

(i) Write the advantages of star topology.

(j) Write a short note on twisted pair cable.

Or

Write a short note on firewall.


4. Answer any two from the following: (5×2=10)

(a) Explain different types of inheritance available in C++.

Or

Explain the visibility modes available in C++ with example.

(b) Describe the basic functions available in C++ for file operations.

Or

Write a C++ program to create a new file and write some lines to it.



2019 – COMPUTER SCIENCE AND APPLICATION (Theory)

Full Marks: 70 Pass Marks: 21 Time: Three hours


1. Answer the following questions: (1×8=8)

(a) What is a derived class?

(b) Define queue.

(c) What is visibility mode?

(d) What is a linear data structure?

(e) Write the name of any one operation performed on stack.

(f) Define inheritance.

(g) What is Internet?

(h) What does FRONT signify in a queue?


2. Answer the following questions: (2×10=20)

(a) When is a copy constructor called?

(b) Write two differences between primitive and non-primitive data types.

(c) Differentiate between linear queue and circular queue.

(d) What is POS? Write with example.

(e) Draw the logical circuit diagram for De Morgan’s first theorem.

(f) Differentiate between LAN and WAN.

(g) What is the role of a switch in a network?

(h) Differentiate between static and dynamic allocation of memory.

(i) How are files in binary format different from files in text format in C++?

(j) What is bandwidth? How is it measured?


3.  (a) Rewrite the following program after removing the syntactic error(s), if any. (3)


include <iostream.h>

class BUS

{

    long Bus_No;

    char Description[30];

public

    void Entry()

    {

        cin>>Bus No; gets (Description);

    }

    void Show()

    {

        cout<<Bus Nos<<" "<<Description<<sendl;

    }

};

void main()

{

    Bus B;

    Entry.B();

    Show.B();

}


(b) Answer questions (i) and (ii) after going through the following code: (1+2=3)


class EXAM

{

    int Rno, Total, Min, Marks;

public:

    EXAM()              // FUNCTION 1

    {

        Rno = 201; Total = 100;

        Min = 45; Marks = 75;

    }

    EXAM(int Trno, int Tmarks)   // FUNCTION 2

    {

        Rno = Trno; Total = 100;

        Min = 45; Marks = Tmarks;

    }

    ~EXAM()             // FUNCTION 3

    {

        cout << "EXAM ENDS" << endl;

    }

    void show()         // FUNCTION 4

    {

        cout << Rno << ":" << Total << ":" << Min << endl;

        cout << "[MARKS]" << Marks << endl;

    }

};


(i) Which concept of object oriented programming is illustrated by Function 1 and Function 2 together?

(ii) What is Function 3 specifically referred as? When will Function 3 be invoked?


(c) Write a C++ function to find the sum of diagonal elements from a two-dimensional array of type float. Use the array and its size as parameter with float as return type. (3)


(d) Write an algorithm for the evaluation of POSTFIX expression.

Or

Write an algorithm for performing insertion in linked queue. (3)


5.  (a) What is constructor overloading? Write a program in C++ to show constructor overloading. (5)


6. Define a class to represent batsmen in a cricket team. Include the following members: (5)

Data members: First name, Last name, Runs made, Number of fours, Number of sixes

Member functions:

(i) To assign the initial values

(ii) To update runs made

(iii) To display batsman’s information

Make appropriate assumptions about access labels.


Or

What are static data members of a class? Explain the characteristics of a static data member. Write a program in C++ to support your answer. (5)


(e) Explain the concept of Cartesian product between two tables, with example.

Or

Explain how SQL UNION operator works. Give example. (3)


(f) Write an SQL command to create a table EMPLOYEE with attributes:

ecode integer, ename char(25), grade char(2), gross decimal.

Set ecode as primary key. Attributes should not allow NULL values. Ensure gross > 1000. (3)


(g) Draw the logic circuit diagram for:

Y = ab + bc̄ + c̄a

Or

Write and prove the Absorption law. (3)


(h) Verify algebraically:

(A + B)(A + B) = A·B + A·B

Or

Reduce using K-map:

F(P,Q,R,S) = Π(0,3,5,6,7,11,12,15) (3)


(i) Explain any three network topologies.

Or

Write the differences between GPRS and WLL. (3)


4.  (a) Write a C++ function to count the number of “He” or “She” words in a text file STORY.TXT.

Example content: “He is going to market. She is cooking in the kitchen.”

Output: COUNT OF He/She in file is 2 (5)

Or

Write a program in C++ to exchange the positions of strings stored in an array using array of pointers. (5)


5. How does the access of inherited members depend upon access specifiers and visibility modes of the base class? Explain. (5)


❍❍❍❍

About the author

Team Treasure Notes
We're here to make learning easier for you! If you have any questions or need clarification, feel free to drop a comment we’d love to help!

Post a Comment