Professional Documents
Culture Documents
Viva 1
Viva 1
VIVA QUESTIONS
i. Which operator used to access member functions of a class.
dot (.) operator
ii. Which operator used to define the member functions outside the class.
scope resolution operator (::)
v. What is an object?
Object is an instance of class.
1. VIVA QUESTIONS
i. What is an array?
An array is a ordered collection of elements of same data type that share
common name.
What is searching?
What is sorting?
9. Write a program to find the sum of the series 1+x+x2+...+xn using constructor.
VIVA QUESTIONS
i. What is a constructor?
Constructor is a special member function used to initialize the objects of a
class.
ii. When does a constructor is invoked?
When an object is created.
iii. Mention the types of constructor.
Default constructor.
Parameterized constructor
Copy constructor
iv. Which section of a class a constructor can be defined.
Public
10. Create a base class containing the data members roll number and name. Also
create a member function to read and display the data using the concept of single
level inheritance. Create a derived class that contains marks of two subjects and
total marks as the data members.
VIVA QUESTIONS
i. What is inheritance?
The process of deriving a new class from an existing class is called
inheritance.
ii. What is a base class
The class whose properties are inherited by other classes.
iii. What is derived class?
The class which inherits properties from base class.
iv. Mention the operator used to create a derived class in C++
(:) colon
11. Create a class containing the following data members register No., name and
fees. Also create a member function to read and display the data using the
concept of pointers to objects.
VIVA QUESTIONS
i. What is a pointer?
Pointer is variable which stores the address of another variable.
ii. Mention the address operator in C++
Ampersand(&)
iii. Which operator is used to allocate memory dynamically?
New operator
Which operator is used to deallocate memory dynamically?
Delete operator
PART-B
(HTML)
1. Write a HTML program to create a study time-table.
2. Create an HTML program with table and form.
i. Mention any one web browser.
Google chrome,Mozilla firefox,opera,safari,internet explorer
ii. Mention the text formation tags in HTML
<b> <i><u><small><big><font>
iii. What is the purpose of TR tag in HTML
Tr tag is used to create a row in a table
iv. What is DHTML
Dynamic hyper text markup language is used to create dynamic web
pages.
v. Differentiate between check box and radio button (Exclusively asked
for Application form creation program using HTML)
Checkbox is an element of a form used to select one or more
options.
Radio button is an element of a form used to select single option
vi. How do you change the background colour of a webpage
<body bgcolor=”blue”>
vii. Mention the tag used to scroll a text from one place to another in
HTML
<marquee>
viii. Mention the tag used to ink from one webpage to another.
<a href=”file name”>
(SQL)