0% found this document useful (0 votes)
44 views3 pages

Comp SC - Viva & List of Programs-1

The document contains 12 questions related to C++ programming concepts and SQL database concepts. It includes questions on classes, arrays, inheritance, pointers, functions, HTML, and SQL commands. Specifically, it asks questions about class members, access specifiers, function overloading, inline functions, constructors, inheritance, pointers to objects, HTML tags, tables, forms, SQL commands for manipulation of database tables.

Uploaded by

sparkysanthosh69
Copyright
© © All Rights Reserved
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% found this document useful (0 votes)
44 views3 pages

Comp SC - Viva & List of Programs-1

The document contains 12 questions related to C++ programming concepts and SQL database concepts. It includes questions on classes, arrays, inheritance, pointers, functions, HTML, and SQL commands. Specifically, it asks questions about class members, access specifiers, function overloading, inline functions, constructors, inheritance, pointers to objects, HTML tags, tables, forms, SQL commands for manipulation of database tables.

Uploaded by

sparkysanthosh69
Copyright
© © All Rights Reserved
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/ 3

VIVA QUESTIONS, FEB’ 2024

(BASED ON THE PROGRAMS)


1. Write a program to find the frequency of presence of an element in an array.
2. Write a program to create a class with data member principal, time and rate.
Create member functions to accept data values to compute simple interest and to
display the result.
3. Write a program to create a class with data members a, b, c and
member functions to input data, compute the discriminant based on the
following conditions and print the roots.
- If discriminant=0, print the roots that are equal
- If the discriminant is>0, print the real roots
- If the discriminant is<0, print that the roots are imaginary.

VIVA QUESTIONS
i. Which operator used to access member functions of a class.
ii. Which operator used to define the member functions outside the class.
iii. Which is the default access specifiers of a class
iv. What is a class?
v. What is an object?
vi. Mention the access specifiers in C++
vii. Give an example for data encapsulation.

4. Write a program to insert an element into an array at a given position.


5. Write a program to delete an element from an array from a given position.
6. Write a program to sort the elements of an array in an ascending order using
insertion sort.
7. Write a program to search an element in an array using Binary search method.

VIVA QUESTIONS

i. What is an array?
ii. What is insertion operation with respect to data structure? (Exclusively
asked for inserting an element into an array program )
iii. What is deletion operation with respect to data structure? (Exclusively
asked for deletion an element from an array program )
iv. What is searching? (Exclusively asked for Binary search program )
v. What is the condition to apply binary search technique to search an
element in an array (Exclusively asked for Binary search program )
vi. What is sorting? (Exclusively asked for Sorting program)
vii. Give an example for the primitive data structure
viii. Give an example for a linear data structure
ix. Give an example for non-linear data structure

8. Program to find the area of a square/rectangle/triangle using function


overloading.
VIVA QUESTIONS
i. What is function overloading
ii. How does the compiler identifies the particular function to be executed
in a set of overloaded functions.
iii. Which characteristics of OOP is implemented using Function
overloading

9. Program to find the cube of a number using inline function.


VIVA QUESTIONS
i. What is an inline function?
ii. Give an advantage of an inline function.
iii. Mention any one disadvantage of an inline function

10. Write a program to find the sum of the series 1+x+x2+...+xn using constructor.
VIVA QUESTIONS
i. What is a constructor?
ii. When does a constructor is invoked?
iii. Mention the types of constructor.
iv. Which section of a class a constructor can be defined.

11. 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?
ii. What is a base class
iii. What is derived class?
iv. Mention the operator used to create a derived class in C++
12. 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?
ii. Mention the address operator in C++
iii. Which operator is used to allocate memory dynamically?
iv. Which operator is used to deallocate memory dynamically?

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.
ii. Mention the text formation tags in HTML
iii. What is the purpose of TR tag in HTML
iv. What is DHTML
v. Differentiate between check box and radio button (Exclusively asked
for Application form creation program using HTML)
vi. How do you change the background colour of a webpage
vii. Mention the tag used to scroll a text from one place to another in
HTML
viii. Mention the tag used to ink from one webpage to another.

(SQL)

1. SQL program to generate Electricity Bill for 10 Consumers


2. SQL program to create student database and compute result.
i. Which command is used to add new columns to the existing table
ii. Which command is used to count the number of records in a table
iii. Differentiate between drop and delete command in SQL
iv. Which clause in SQL is used to sort the records based on one or more
columns
v. Which command is used to modify the records of the table
vi. Mention the DDL commands in SQL
vii. Mention the DML commands in SQL
viii. Which command is used to retrieve the records of the table.

You might also like