The document outlines the mid-term examination for Class XII in Computer Science at Arham School and Junior College for the academic year 2024-25. It includes various sections with questions on HTML, object-oriented programming, and C++ programming, requiring students to select alternatives, answer descriptive questions, and write code. The exam is structured to assess knowledge in both theoretical concepts and practical programming skills.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
5 views2 pages
cs1 1
The document outlines the mid-term examination for Class XII in Computer Science at Arham School and Junior College for the academic year 2024-25. It includes various sections with questions on HTML, object-oriented programming, and C++ programming, requiring students to select alternatives, answer descriptive questions, and write code. The exam is structured to assess knowledge in both theoretical concepts and practical programming skills.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
Arham Education Foundation’s
Arham School and Junior College
MID-TERM EXAMINATION: YEAR 2024-25
Subject: C.S. - I Class: XII
Date: Stream: Science
50 Time : Total Marks:
1. A) Select the correct alternative and rewrite the following: [4 M]
1) …………….. tag is used to put a line break in HTML code. a) <hr> b)<br> c)<p> d)<h1> 2) <a> tag has an attribute ………… which defines the URL of the document to be linked. a) Src b)Href c)Vref d)ref 3) Following operator can not be overloaded ………………. a) ++ b):: c) - d)* 4) Following is not the feature of OOP’s a)Polymorphism b)Inheritance c)Data abstraction d)None of the above 1. B) Answer any two of the following. [6 M] 1) Write any six main advantages of OOP’s. 2)What is a constructor? Write any four rules for constructor function. 3) Explain the following tags with examples. i) <u> ii) <pre> iii) <img> 2. A) Answer any two of the following. [6 M] 1)Write any three distinct differences between Procedural oriented and object oriented programming. 2) What is a class in CPP? Explain with a suitable example. 3) What is HTML? State advantages and disadvantages of HTML. 2. B) Answer any one of the following. [4 M] 1) Write any eight rules of operator overloading. 2) Explain cellspacing, cellpadding, colspan and rowspan attributes. 3. A) Answer any two of the following. [6 M] 1) Differentiate between class and object. 2) Write any six rules of virtual function. 3) Explain the use of the following HTML tags with examples. i) <SUB> ii) <SUP> iii) <hr> 3. B) Answer any one of the following. [4 M] 1) Write functions of each of the following. i) ifstream ii) ofstream iii) filebuf iv) fstream 2) What is inheritance? Explain its types. 4. A) Answer any two of the following. [6 M] 1) What are the types of list? Explain with examples. 2) Explain files and streams. 3) What is the ALT attribute? Why it is used? 4. B) Answer any one of the following. [4 M] 1) What is polymorphism? Explain how it is achieved by : i) compile time ii) run time 2) Explain call by value and call by reference with suitable example. 5. Answer any two of the following. [10 M] 1)Write a program in C++, to find max of two numbers using if else control structure. 2) Write a program in C++, to swap two integers using function void swap(int &, int &); 3) Write the output of the following HTML code. <html> <body> <table border=”2”> <tr> <td colspan=”2”> <h2>H.S.C. Exams </h2></td> </tr> <tr> <td> <u> Paper 1 </u> <td> <u> Paper 2 </u> </tr> <tr> <td> 50 Marks <td> 50 Marks </tr> </table> </body> </html> OR 5. Answer any two of the following. [10 M] 1) Write a program in C++ to accept 10 integers in an array from the keyboard and find the largest element of the array. 2) Write a program in C++, to find the factorial of a given number using a for loop. 3) Write HTML code to obtain the following output.