0% found this document useful (0 votes)
13 views5 pages

Importent Question from UNIT-2 & UNIT-3

Important questions

Uploaded by

v4612842
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)
13 views5 pages

Importent Question from UNIT-2 & UNIT-3

Important questions

Uploaded by

v4612842
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/ 5

Chapter 7: CLASSES AND OBJECTS

DAY: 1
FIVE MARKS QUESTIONS
1. How to Define a class and object? Explain with syntax and example?
2. Explain Member function inside the class definition with syntax and example?
3. Explain Member function outside the class definition with syntax and example?
4. Explain Array of objects with example program?

Chapter 8: FUNCTION OVERLOADING


DAY: 1
FIVE MARKS QUESTIOMS
1. What is function overloading? Explain with syntax and example program?
2. Explain inline function with advantage and disadvantages?
3. What is friend function? What are the characteristics of friend function?
4. What is inline function? Explain with program?

Chapter 9: CONSTRUCTORS AND DESTRUCTORS


DAY: 1
TWO MARKS QUESTIONS
1. What is constructor? What are the types of Constructors?
2. What is a default constructor? Write any Two Features?
3. What is parameterized constructor? Write any Two Features?
4. Name 2 methods through which constructor can be invoked?
5. What is Destructor? Which operator is used with destructor?
6. Why are Constructors needed in a Program? Justify?
7. Write the syntax and example for default constructor?
8. Write Syntax and example for Destructor?

FIVE MARKS QUESTIONS


1. What are the Rules to Create Constructors?
2. Explain invoking of Constructor Explicit Call with example?
3. Explain Parameterized Constructor with example? (Implicit call)
4. Explain Copy Constructor with Syntax and example Program?
Chapter 10: INHERITANCE
DAY: 2
FIVE MARKS QUESTIONS
1. What is Inheritance? What are the Advantages of Inheritance?
2. Explain Types of Inheritance?
3. Explain Single Inheritance with Suitable Program?
4. What is Visibility Mode? Explain with Syntax & Example?

Chapter 11: POINTERS


DAY: 2
THREE MARKS QUESTIONS
1. What are the Advantages of Pointers?
2. What are the Difference between Static and Dynamic Memory?
3. What are the Operations that can be performed on Pointers?
4. What is array of pointers? Give an Example?
5. Explain ‘new’ and ‘delete’ operators with examples?

Chapter 12: DATA FILE HANDLING


DAY: 2
TWO MARKS QUESTIONS
1. What is stream? Name the stream generally used for file i/o?
2. Mention the methods of opening file within C++ ? Explain one?
3. Difference b/w ifstream class & ofstream class?
4. Difference b/w read() & write()?
5. Difference b/w get() & getline()?
6. Write the member function belongs to ofstream class?
7. Write the member function belongs to ifstream class?

THREE MARKS QUESTIONS


1. Explain Different File Opening Modes in Data File Handling?
2. Explain get(), getline(), put() functions with syntax and example?
3. Explain read(), write() functions with syntax and example?
Chapter 13: DATABASE CONCEPTS
DAY: 3
TWO MARKS QUESTIONS
1. What is Data Independence? Explain the types?
2. Write any two features of Sequential/Serial file Organization?
3. Write any two features of Random/Direct file Organization?
4. What is DBMS? Give any two Examples of DBMS Soft wares?

THREE MARKS QUESTIONS


1. What is E-R Diagram? Explain the Components if E-R Diagram?
2. What are the DBMS Users? Explain any Two?
3. Explain Logical Two-Tier Client/Server Architecture?
4. Explain Logical Three-Tier Client/Server Architecture?

FIVE MARKS QUESTIONS


1. Explain any 5 Applications of Database?
2. What are the Difference between Manual & Electronic Data Processing?
3. Explain Data Processing Cycle with neat Diagram?
4. Explain any 5 features of DBMS?
5. What is Data Warehouse? Explain with its Components?
6. Explain ISAM?

Chapter 14: SQL (STRUCTURED QUERY LANGUAGE)


DAY: 3

TWO MARKS QUESTIONS


1. List All the Data types used in SQL? Explain any Two?
2. Explain CREATE & ALTER Commands with Syntax and Example?
3. Explain INSERT & UPDATE Command with Syntax and Example?
4. Explain DROP & DELETE Commands with Syntax and Example?
5. Explain ORDER BY Command with Syntax and Example?
6. Explain AND & OR Operators with Syntax and Example?
7. List All the Logical Operators used in SQL? Explain any Two?

FIVE MARKS QUESTIONS


1. Explain Built-in functions used in GROUP BY Command with Examples?
2. Explain Different Constraints used in SQL?
3. List All the character/text functions? Explain any 5 with Examples?
4. Write the SQL Query’s for the Following Tables?

(1) Student
Reg Name DoB Fees
101 Neha 02-Mar-2006 55000
i. Create a table for above given columns.
ii. Insert a row for given data in the table.
iii. Display the structure of a table.
iv. Alter the table by adding new column ‘Course’
v. Display all the records.

(2) Employee
ID Name DoJ Salary
2001 Kiran 04-Apr-1997 85000
i. Create a table for above given columns.
ii. Insert a row for given data in the table.
iii. Alter the table by adding new column ‘Department’
iv. Update the Name as ‘Karthik’ for id =2001;
v. Display all the records.

(3) Student
Roll No Name Sub1 Sub2 Sub3 Total Perc Result
101 Vidhya 80 95 65
102 Sara 70 86 56
103 Pavan 25 75 78
i. Create a table for above given columns.
ii. Insert a row for given data in the table (for 1 Record).
iii. Alter the table by adding new columns such as Total, Perc, Result
iv. Calculate Total and Perc
v. Find Results if all Subjects marks is >=35 as ‘Pass’ and <35 as ‘Fail’.

(4) Student
Reg No Name Marks
S1 ABC 90
i. Create a table on Student with Columns Reg No, Name, Marks
ii. Insert One Record (S1, ABC, 90)
iii. Recalculate the marks by adding 5 marks to the Student’s marks
iv. Display the structure of the table.
v. Display the records.
1. get():
Syntax: ifstream_object.get(ch);
Example: char ch=’a’;
ifstream fin(“text.dat”);
fin.get(ch);

2. put():
Syntax: ofstream_object.put(ch);
Example: char ch=’a’;
ofstream fout(“text.dat”);
fout.put(ch);

3. getline():
Syntax: fin.getline(buffer,SIZE);
Example: char book[SIZE];
fstream fin;
fin.getline(book,SIZE);
4. read():
Syntax: ifstream_object.read((char *) &variable,sizeof(variable));
Example: student s;
ifstream fin(“text.dat”,ios::binary);
fin.read((char *) &s,size(s));

4. write():
Syntax: ofstream_object.write((char *) &variable,sizeof(variable));
Example: student s;
ofstream fout(“text.dat”,ios::binary);
fout.write((char *) &s,size(s));

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy