Professional Documents
Culture Documents
Iai Passing Package (23 24) Computer
Iai Passing Package (23 24) Computer
2. What is Motherboard?
Ans.. Motherboard is a main PCB which connects different components in a computer system.
4. What is a port?
Ans. It is a connector used external device to a computer
5. How many bits of data are sent in a serial port?
Ans. 1-bitof data at a time
6. Expand
a. PCB- Printed Circuit Board
b. ISA- Industrial Standard Architecture
c. DDRRAM- Double Data Rate Random Access Memory
d. SDRAM-Synchronous Dynamic Random Access Memory
e. PCI-Peripheral Component Interconnect
f. AGP-Accelerated Graphics Port
g. USB-Universal Serial Bus
h. SMPS-Switch Mode Power Supply
i. UPS- Uninterrupted power supply
j. CMOS-Complementary Metal Oxide Semiconductor
XtT Motherboard:--- the XT( eXtended Technology ) motherboard was used in earlier time. It has the old
type socket for CPU i.e LIF(Low Insertion Force) socket. It also as DIMM RAM slots, ISA expansion slots and
12pins power connector.
Full AT or AT motherboard:--- the AT(Advanced Technology) motherboard was the first type of
motherboard used in PC’s .Its size was 12 inches wide and 11 inches long. The motherboard suffered from a
lot of problems, like cumbersome access to components and overheating.
Baby AT motherboard:--A smaller version of the original AT motherboard used in the IBM PC/AT.
Introduced in 1987, the baby AT reduced width from12” to *.%”.Although its maximum length was !#”,
most Board were only 9” or 10 “ long. The baby AT was the first PC motherboard to build these sockets for
I/O ports(serial and parallel), which were cabled to connectors on the back of the case. It was wildly used in
386,486 and early pentiumPCs. The Baby AT was superseded by the ATX motherboard . the DIN(DUECHE
Industrie Norm) is a keyboard connector at the top right corner of this motherboard, makes recognizing
this motherboard a relatively simple task.
POINTER
1. Define a pointer.
Ans. Pointer is a variable that holds memory address of another variable.
2. How do you declare a pointer?
Ans. Syntax
Data-type *ptrvar;
E.g. int *p;
3. How do you initialize a pointer?
Ans. Pointer is initialized using address of (&) operator.
E.g. int *p,n;
P=&n;
4. What is static memory allocation?
Ans. Memory allocation done at compile time.
{ int temp;
Temp =x;
X= y;
Y= temp;
FILE HANDLING
3-marks questions
LOGIC GATES
1. Define logic gate. What are its types?
Ans. A logic gate is a basic unit of digital circuit, which operates on one or more inputer gives single
output. Types of logic Gates are :
i. Basic gates
ii. Derived gates
X X X
0 1
1 0
12. Write the Logic symbol and truth table of NOR gate.
Ans.
X X Y X+Y
Y X+Y 0 0 0
0 1 1
1 0 1
1 1 1
13. Write Logic symbol and truth table of NAND gate.
X Y X.Y
X X.Y 0 0 0
Y 0 1 0
1 0 0
1 1 1
14. Write the Logic symbol and truth table of XOR gate.
Ans.
X Y X ƟY
X 0 0 0
Y X+Y 0 1 1
1 0 1
1 1 0
15. Write the Logic symbol and truth table of XNOR gate.
Ans.
X X Y X ƟY
Y X+Y 0 0 1
0 1 0
1 0 0
1 1 1
Al Ameen Pre University College, Bangalore
Subject: Computer Science
16. Design the basic gates using NAND gates only.(Show that NAND gate is a universal gate.
Ans. all other can be designed using only NAND gates. It is depicted as:
i. Designing NOT gate from NAND.
Ans.
X X
X X.Y
Y
X+Y
17. Designing the basic gates using NOR gates only. OR Design NOT,OR, AND gates using NOR gates
only. OR Realize the basic gates using only NOR gates.
Ans.
X X
X
X.Y X+Y
Y
X .Y
Y
Al Ameen Pre University College, Bangalore
Subject: Computer Science
10 INHERITANCE
1. What is inheritance? Explain its type.
Ans. The process of creating a new class from already existing class is called Inheritance.
Types of inheritance
i. Single inheritance: In single inheritance there is a derived class created from single base class.
Class A
Class B
ii. Multilevel inheritance: In Multi level inheritance, a class inherits its properties from another
derived class Class A
.
Class B
Class C
iii. Multiple Inheritance :--In Multiple inheritance ,a derived class inherits from 2 or more base
classes. It inherits the properties
Class A Class C
Class D
iv. Hierarchical Inheritance:--Hierarchical inheritance is like an inverted tree. Here, multiple classes
inherit from a single base class.
Class A
Class B Class C
Class D
2. Define Base class and Derived class?
Ans. Base class: --It is class whose properties are inherited by another class. It is also called Super class
Derived Class:-- It is class that inherits properties from base class. It is also called Sub class
Class A Base class
Derived Class
Class B
Al Ameen Pre University College, Bangalore
Subject: Computer Science
3. What are the advantages of inheritance .
Reusability of the existing code.
Faster Program Development.
Easy to Extend
Easy to maintain
Efficient Memory Utilization
Debugging the program is easier (Since, we are inheriting the class already tested)
Protected: The protected members are similar to private members of a class if a single class exists. but, if a class is
derived from a base class, the protected members of a base class can be accessed in the derived class also. Or class
members declared as protected can be accessed by member functions and friends of the class.
Class son: public father //Derived class
{
private:
Char company[30];
Float salary;
public:
void retdata();
void displaydata();
};
Al Ameen Pre University College, Bangalore
Subject: Computer Science
Public: In public members of a class can be accessed outside the class through an object of that class.sso, the
public members are accessible within the class as well as outside the class.
Class father //Base class
{
private:
Char name[30];
int age;
public:
Char caste[30];
int boys;
int girls;
void readdata();
void printdata();
};
Class son: public father //Derived class
{
private:
Char company[30];
Float salary;
public:
void retdata();
void displaydata();
};
5. virtual base class:--- when two or more objects are derived from a common base class, we can prevent
multiple copies of the base class being present in an object derived from those object by declaring the base
class as virtual when it is being inherited. Such a base class is know n as virtual base class.
6. Abstract classes:---the class which is designed only for base class purpose and it is not used for creating the
objects is called abstract class.
7. Explain single inheritance with an example.
i. Single inheritance: In single inheritance there is a derived class created from single base class.
Class A Student
Class B Result
The derived class apart from having its own data members and member function, can inherit some
or all the public or protected members of the base class.
Example:
Class student
{
private: int rollno;
public: void baseinput()
cin>>rollno;
}
Al Ameen Pre University College, Bangalore
Subject: Computer Science
void basedisplay()
};
cin>>mark1;
cin>>mark2;
void derdisplay()
Total=mark1+mark2;
};
void main( )
result X;
clrscr();
X.baseinput()
X.basedisplay()
X.derinput()
X.derdisplay()
getch()
}
Al Ameen Pre University College, Bangalore
Subject: Computer Science
BOOLEAN ALGEBRA
1. F(A,B,C,D)=∑(1,3,4,6,9,11,12,14)
ANS. B´D+BD´
2. F(A,B,C,D)=∑(1,3,4,6,9,10,11,12,14)
ANS. . B´D+BD´+AB´C
OR . B´D+BD´+ACD´
3. F(A,B,C,D)=∑(0,1,2,3,11,12,13,14,15)
ANS. A´B´+AB+ACD
4. F(A,B,C,D)=∑(0,2,4,6,8,9,10,14)
ANS.A´D´+CD´+AB´C´
5. F(A,B,C,D)=∑(0,2,4,5,7,8,10,12,13,15)
ANS. BD+B´D´
6. F(A,B,C,D)=∑(0,2,4,5,7,8,10,12,13,15)
ANS. C´D´+BD+B´D´
7. F(A,B,C,D)=∑(0,1,3,4,5,7,8,9,11,12,13,15)
ANS.C´+D
8. F(A,B,C,D)=∑(5,6,7,8,9,12,13,14,15)
ANS.BD+BC+AC´
9. F(A,B,C,D)=∑(0,4,5,6,7,8,10,12,1314,15)
ANS.C´D´+B+AD´
10. F(A,B,C,D)=∑(0,2,4,5,6,7,8,10,12,13,14,15)
ANS. D´+B
11. F(A,B,C,D)=∑(0,2,4,6,10,11,13,14)
ANS. A´D´+CD´+AB´C+ABC´D
12. F(A,B,C,D)=∑(0,2,7,8,10,15)
ANS. BCD+B´D´
13. M2+M3+M5+M7+M9+M11+M13
14. M0+M3+M4+M8+M9+M10+M11+ M12+M3
15. M0+M2+M4+M8+M9+M10+M11+M12+M13
= X= RHS =X.1=X=RHS
Al Ameen Pre University College, Bangalore
Subject: Computer Science