PG TRB Computer Teachers Care Academy
PG TRB Computer Teachers Care Academy
PG TRB Computer Teachers Care Academy
in
.in
ss
re
xp
ie
a lv
.k
w
w
w
CONTENTS
__________________________________
PG TRB SYLLABUS…………………………………………. 1
in
PREVOIUS YEAR QUESTIONS AND ANSWERS – II …. 6
s s.
1. THE COMPUTER SYSTEM
CONTENTS
__________________________________
2.1 COMPUTER
in
ARITHMETIC…………………………………………………………… 109
s.
2.1.1 The Arithmetic and Logic Unit (ALU)……… …………… 109
s
2.2
2.1.2
INSTRUCTION SETS……………………………………………
p re
Floating-Point Arithmetic…………………………………… 117
120
ex
in
s.
SYLLABUS
s
UNIT- I
p re
ex
instruction cycle.
INTRODUCTION TO COMPUTER:
w
UNITS OF MEMORY:
❖ 1 bit 0 or 1
❖ 4 bit = 1nibble
❖ 8 bit = 1 byte
TEACHER'S CARE ACADEMY
in
❖ 1024 GB= 1 TERA byte = 210 GB
s.
❖ 1024 TB = 1PETA byte = 210 TB
s
❖ 1024 PB = 1EXA byte = 210 PB
EVOLUTION OF COMPUTER
.k
w
❖ A Tree Branches with a Thread knocked and made a additions and subtractions.
w
❖ A complete set of Napier bone’s Consists of rods, one for each of the digit 0 to 9 Called
vi
❖ Blaise Pascal developed another mechanical adding machine Called pascaline, which
could add and subtract numbers.
❖ first digital computer
PRACTICE QUESTIONS:
in
A) 1 Megabyte/sec C) 8 Megabytes/sec
B) 4 Megabytes/sec D) 2 Megabytes/sec
s s.
3. Assembly language
D) None of these
vi
4. A three input NOR gate gives logic high output only when
al
5. n bits in operation code imply that there are ___________ possible distinct operators
w
A) 2n C) n/2
B) 2n D) N2
w
6. _________ register keeps tracks of the instructions stored in program stored in memory.
A) AR (Address Register) C) PC (Program Counter)
B) XR (Index Register) D) AC (Accumulator)
in
s s.
p re
ex
vi
al
.k
w
w
w
INDEX:
Syllabus …………………………………………………… 1
1. Introduction: ……………………………………………………………. 8
Questions………………………………………….. 9
in
1.2 OS Strategies …………………………………………………. 11
s.
1.2.1 Batch Processing …………………………………… 11
s
1.2.2 Multi Tasking ……………………………………… 11
p re
1.2.3 Multiprogramming ………………………………… 12
Questions ………………………………………… 16
vi
Questions ………………………………………… 40
in
3.4 Disk Space Management …………………………………….. 46
s.
47
Questions ………………………………………...
s
48
p re
4. Process Management: …………………………………………………. 50
Questions ………………………………………… 58
5. Scheduling: ……………………………………………………………. 60
Questions ………………………………………… 74
in
6.1.3 Mutual Exclusion With Busy Waiting …………….. 79
s.
81
s
81
6.1.7 Monitors
p re
…………………………………………. 82
82
ex
85
in
8.2.3 Page Replacement Algorithm ……………………… 119
s.
…………………………………………. 125
s
8.3 Input and Output:
p re
8.3.1 Principles of I/O Hardware ……………………….. 125
in
s s.
SYLLABUS (Mark – 10)
p re
Introduction: System software, OS strategies; multiprogramming, batch.
ex
OPERATING SYSTEMS
INTRODUCTION
SYSTEM SOFTWARE
• System software is a type of computer program that is designed to run a computer's hardware
and application programs.
• It is the interface between the hardware and user applications. The operating system is the
best-known example of system software. The OS manages all the other programs in a
computer.
in
• System software is used to manage the computer itself.
s.
• It runs in the background, maintaining the computer's basic functions so users can run higher-
level application software to perform certain tasks.
s
• Essentially, system software provides a platform for application software to be run on top.
Important features of system software
p re
• Computer manufacturers usually develop the system software as an integral part of the
ex
computer.
• The primary responsibility of this software is to create an interface between the computer
vi
1. High speed: To provide an effective platform for higher-level software in the computer
.k
system.
w
2. Hard to manipulate: It often requires the use of a programming language, which is more
difficult to use than a more intuitive user interface (UI).
w
OS Definition:
• An operating system is an intermediary between users and computer hardware
• It acts as an interface and controls the execution of all kinds of programs.
Batch processing
• Batch processing is a technique in which an Operating System collects the programs and data
together in a batch before processing starts.
• An operating system does the following activities related to batch processing.
✓ The OS defines a job which has predefined sequence of commands, programs and data
as a single unit.
✓ The OS keeps a number a jobs in memory and executes them without any manual
information.
✓ Jobs are processed in the order of submission, i.e., first come first served fashion.
in
✓ When a job completes its execution, its memory is released and the output for the job
gets copied into an output spool for later printing or processing.
s s.
p re
ex
vi
al
.k
Advantages
w
• Batch processing takes much of the work of the operator to the computer.
w
• Increased performance as a new job get started as soon as the previous job is finished,
without any manual intervention.
w
Disadvantages
• Difficult to debug program.
• A job could enter an infinite loop.
• Due to lack of protection scheme, one batch job can affect pending jobs.
Multitasking
• Multitasking is when multiple jobs are executed by the CPU simultaneously by switching
between them.
• Switches occur so frequently that the users may interact with each program while it is
running.
in
s s.
p re
ex
vi
al
a process.
w
✓ When a process executes, it typically executes for only a very short time before it either
finishes or needs to perform I/O.
w
✓ Since interactive I/O typically runs at slower speeds, it may take a long time to
w
PRACTICE QUESTIONS:
in
C) to handle the files in operating system
s.
D) none of the mentioned
s
3. Which of the following is NOT a valid deadlock prevention scheme?
A) Release all resources before requesting a new resource
p re
B) Number the resources uniquely and never request a lower numbered resource than the last
ex
one requested.
C) Never request a resource after releasing any resource
vi
4. Which of the following is major part of time taken when accessing data on the disk?
.k
5. A virtual memory system uses First in First out (FIFO) page replacement policy and allocates
w
P: Increasing the number of page frames allocated to a process sometimes increases the page fault
rate.
Q: Some programs do not exhibit locality of reference.
in
s s.
p re
ex
vi
al
.k
w
w
w
PAGE
TOPICS
NUMBER
SYLLABUS 1
1. Introduction 16
2. Logic gates 21
in
3. Number systems 30
s.
1.1 Decimal, Binary, Octal, Hexadecimal Number system 31
s
1.2 Conversions 36
4. Codes
p re
4.1 BCD, ASCII, EBCIDIC, Gray Code, Excess-3 code
46
ex
6. Boolean Algebra 68
.k
7. Karnaugh Map 92
8. Multiplexer 116
9. Demultiplexer 123
in
13.2 D flip flop 158
s.
13.3 JK Flip flop 160
s
13.4 T Flip flop 164
173
ex
in
s.
SYLLABUS (Marks -10)
s
re
Fundamental concepts: NAND, NOR, Exclusive OR operations,
Boolean Algebra: Number systems and codes: Primary, Octal,
p
ex
Multiplexers, Decoders
w
Text Books:
1. Digital Fundamentals by Floyd.
Reference Books:
1. Digital Circuits and Microprocessors by Herbart Taub.
INTRODUCTION:
There are two types of signals which are different in terms of their characteristics with
respect to time and value.
1. Analog Signals
2. Digital Signals
in
A signal whose value is defined at all instances of time is called continuous time signal.
On the other hand signal whose values are defined only at discrete instances of time is
s.
called discrete time signal. Most of the signals that occur in nature are analog in form.
s
A discrete time signal can be obtained from continuous time signal by process called
sampling. This has been illustrated in Fig. 1.1.
p re
ex
vi
al
Fig. 1.1: (a) Continuous time signal x(t) sampled at every T interval, (b) Resulting
.k
Similarly if a signal can take any value in a given range between some minimum and
maximum value then the signal is called continuous value signal. On the other hand
w
if a signal takes only certain fixed values in a given range then it is called discrete
w
value signal. The process of converting a continuous value signal to a discrete value
signal is called quantization. This is illustrated in Fig. 1.2.
Fig. 1.2: Continuous value signal (solid line) and discrete value signal (dotted line)
Analog signal: Signals that are continuous in time and continuous in value are called
analog signal.
Digital signal: Signals that are discrete in time and discrete in values are called digital
signals. Digital signals are generally processed by digital systems like computers and
hence their values are represented in terms of binary as shown in Fig. 1.2.
in
s.
Again Analog signals are continuous in value and hence can take any value in a
given range. Now ideally number of values in any given range will be infinite which
s
re
cannot be represented by finite number of bits on a computer. For example, as shown
in Fig. 1.2, with three bits used for representing values only eight different values can
p
be represented. Thus a continuous value signal has to be quantized and converted to
ex
Digital electronic circuits have become increasingly popular and successful due to
integrated circuit (IC) technology. Advancement in IC technology has made it
.k
2 Analog systems are difficult to Digital systems are easy to design as most of the
design. components are in form of
Integrated circuits (IC).
3 Analog systems are mostly custom Digital systems have high degree of flexibility.
in
made and lack flexibility.
4 Less efficient in storage of More efficient in storage of information.
s.
information.
s
5 Analog signal processed by these Digital signal are more noise-immune compared to
systems are affected by noise very
easily.
analog signals.
p re
6 Relatively costly compared to Low cost due to mass production of
ex
8 No conversion of input signals are Input signals are converted from analog
required before processing to digital form before it is processed
.k
information. information.
10 Analog systems are more efficient Digital systems may offer limitations for
w
A digital system uses a building blocks approach. Many small operational units are
interconnected to make up the overall system.
The most basic logical unit system is gate circuit. There are several different types of
gates with each perform differently from other logic gates.
Digital signal consist of only two values, ‘0’ and ‘1’. These two values have logical
1. The voltages corresponding to LOW and HIGH levels respectively are given below.
Identify the voltages which correspond to the negative logic system.
2. Which of the following is the most widely used alphanumeric code for computer input
in
and output?
A) Gray B) ASCII
s.
C) PARITY D) EBCDIC
s
3. The given hexadecimal number (1E.53)16 is equivalent to ____________ .
A) (35.684)8
C) (34.340)8
p re
B) (36.246)8
D) (35.599)8
ex
A) 111011 B) 01011001.01110010
C) 1110.11 D) 0101100101110010
al
.k
C) 7 bit D) 4 bit
w
w
in
s s.
p re
ex
vi
al
.k
w
w
w
CONTENTS
PG TRP SYLLABUS………………………………………………………. 1
PREVOIUS YEAR QUESTIONS AND ANSWERS - I ………………… 2
PREVOIUS YEAR QUESTIONS AND ANSWERS – II ……………… 9
1. DATA STRUCTURE
1.1. INTRODUCTION…………………………………………………………………….. 18
in
2. ARRAY
2.1. ARRAYS TERMINOLOGY…………….………………………………………… 19
s.
2.2. OPERATIONS ON ARRAY……………………………..………………………… 20
s
2.3. TYPES OF ARRAYS………………………………………………………………. 26
3. STACK
p re
3.1. INTRODUCTION ………………………………………………….……… 29
ex
4. QUEUE
al
4.1. INTRODUCTION…………………..………………………………………...36
4.2. BASIC FEATURES OF QUEUE……………………………....……………..37
.k
5. LINKED LISTS
w
5.1. INTRODUCTION………………………………………………….………….42
5.2. TYPES OF LINKED LISTS………………………………………………..….42
5.2.1. SINGLY LINKED LIST………………………………………....….43
5.2.2. DOUBLY LINKED LIST……………………………………...…...51
5.2.3. CIRCULAR LINKED LIST…………………………………...…...52
5.2.4. DOUBLY CIRCULAR LINKED LIST…………………………..…52
6. TREES
6.1. INTRODUCTION……………………………………………………………….....54
6.2. BASIC TERMINOLOGY…………………………………………………………...55
6.3. TYPES OF BINARY TREE……………………………………….…………….......56
6.4. TRAVERSAL OF A BINARY TREE…………………………………….......58
6.5. THREADED BINARY TREES………………………………………………….......59
in
7.4. B TREE…………………………………………………………………..….............80
s.
7.5. HEAP TREES………………………………………………………..……………...84
s
8. GRAPH p re
8.1. INTRODUCTION…………………………………………………….…..……….. 88
8.2. GRAPH TERMINOLOGY…………………………………………….......................89
ex
in
10.2. DATA TYPE……………………………………………………..............................153
11. LANGUAGE SUPPORT AND OOP…………………………..…………..155
s.
12. INHERITANCE…………………………………………………................158
s
13. CLASSES & SUB CLASSES………………………………………………165
14. HEADER FILES………………………………………………………..….168
p
15. OVERLOADING…………………………………………….……………..171
re
ex
PRACTICE QUESTIONS…………………………………..…………………….…136
al
.k
w
w
w
in
SYLLABUS
s.
Abstract data types and objects, Graphical User
s
re
Interface; Language Support and OOP: Inheritance,
Classes and sub classes, header files, overloading
p
Programming with Data Structures: Stacks, Queues,
ex
BOOKS TO STUDY:
w
w
in
• Data Structure = Organized Data + Allowed Operations.
APPLICATIONS OF DATA STRUCTURE
s s.
p re
ex
vi
• Two types:
1) Linear data structure Single generic type
.k
2. ARRAY
• This makes it easier to calculate the position of each element by simply adding an offset
in
2.1.ARRAYS TERMINOLOGY:
s.
Size:
Number of elements in an array is called the size of the array. Also called as length or
s
dimension.
Type: re
Type of an away represents the kind of data type. Ex: int, string
p
ex
Base:
Base of an array is address of memory location where the first element in the array is
vi
located.
Range of index:
al
Indices of array elements any charge can be referenced by subscript like Ai or A[i], this
.k
Ex:
w
in
1. Traversing:
s.
This operation is used visiting all elements in an array.
Example: Array ‘a’ contains the following elements:
s
5 3 4 8 7
p re
The result of traversing is:
ex
5
3
vi
4
al
8
.k
7
The algorithm for traversing is as follows:
w
Algorithms: Traverse-array ( )
Input: An array A with elements
Output: According to process ( )
Steps:
1. i=L // start from first location L
2. while i<=U do // U upper bound
1. Process (A[i])
2. i=i+1 // move to next position
3. End while
4. Stop
Here process ( ) is an procedure which when called for an element can perform an action
in
PGTRB – COMPUTER INSTRUCTOR GRADE I -2021
UNIT IV – DATA structures
s s.
Model examinations
re
1) A tool for specifying logical properties of data types is__________
p
a) Abstract Data Type c) Non Abstract Data Type
ex
2) What data structure can be used to check if syntax has balanced parenthesis?
a) Queue c) List
al
b) Tree d) Stack
.k
in
s s.
p re
ex
vi
al
.k
w
w
w
Programming in C+++
Page
S.No Contents
No
Syllabus 1
Solved Question and Answer 2
in
1.3 Object Oriented Programming Paradigm 13
s.
1.4 Basic Concepts Of Object-Oriented Programming 15
1.4.1 Object 15
s
1.4.2 Class 15
1.4.3
1.4.4
Data Hiding and Encapsulation
Encapsulation
p re 17
18
ex
1.4.5 Abstraction 19
1.4.6 Abstract and Concrete Class 21
vi
1.4.7 Polymorphism 22
1.4.8 Implementation of Polymorphism using Function Overloading 22
al
1.4.9 Inheritance 23
.k
Programming methodologies
w
1.4.12 Exercise 25
w
3. Control structure 37
3.1 Introduction 37
3.2 Condition 38
3.2.1 The if statement 38
3.2.2 Simple if statement 39
3.2.3 If else statement 39
3.2.4 Nested if 40
3.2.5 The else if Ladder 41
3.2.6 The switch statement 41
3.2.7 Goto statement 42
3.3 Exercise 43
in
4. Looping Structure 46
s.
4.1 Introduction 46
s
4.2 While loop 46
4.3 For statement
4.4 The do-while statement
p re 47
48
4.5 Jumps is Loop 49
ex
4.6 Exercise 49
5. Functions 50
vi
5.1 Introduction 50
al
5.8 Exercise 54
6. Constructors and Destructors 56
6.1 Introduction to Constructors 56
6.2 Types of Constructors 57
6.3 Default Constructor 57
6.4 Parameterized Constructors 58
6.5 Multiple Constructors in a class 59
6.6 Constructor with Default Arguments 59
6.7 Dynamic Initialization of Objects 59
in
8. Data File Handling 77
8.1 Introduction 77
s.
8.2 Input and Output Operation 78
s
8.3 Error Handling Function 78
8.4 File Pointers and Their Manipulation
re
8.5 Reading and Manipulation of Text from an existing test file
p 79
79
8.5.1 Program to write in a text file 80
ex
9. Pointer 84
w
9.1 Introduction 84
w
in
10.11 Python for Loop 140
s.
10.12 Python functions 148
s
10.13 Python Package 154
10.15 File Handling in Python
10.16 Python Object Oriented Programming
p
10.17 Python objects and classes
re 156
159
165
ex
in
SYLLABUS (Mark – 20)
s.
1. OBJECT ORIENTED PROGRAMMING: Data hiding, data
s
encapsulation, Class and Object, Abstract Class and Concrete class,
re
Polymorphism (Implementation of polymorphism using Function
overloading as an example in C++); Inheritance, Advantages of Object
p
oriented Programming over earlier programming methodologies.
ex
CONCEPTS IN C++:
al
1. OBJECT-ORIENTED PROGRAMMING
OOPS: Object Oriented Programming. It is a programming paradigm in its own right and it is
a set of software engineering tools which can be used to build more reliable and reusable system.
1.1 Introduction
TEACHER'S CARE ACADEMY
in
Software Crisis
The major issues in software are
s.
1. How to represent real life entities of problem in system design?
s
2. How to design systems with open interfaces?
3. How to ensure reusability?
4. How to develop modules?
p re
5. How to improve quality and productivity of software?
ex
Software Evolution
vi
▪ Modular programming
▪
.k
Top-down programming
▪ Bottom-up programming
w
▪ Structured programming
w
w
in
s.
Function-1 Function-2 Function-3
s
Local Data Local Data Local Data
Disadvantages:
p re
ex
1. No security of data.
2. No better memory management.
vi
3. No code reusability
al
Module
The modules represent the physical building blocks. It is a collection of classes and objects.
OOP is a methodology that allows the association of data structure with operations.
in
s s.
p re
ex
vi
al
.k
w
in
2) In C++, Class object created statically(e.g. Car obj; and dynamically (Car *obj = new Car() ; )
s.
are stored in memory
A. Stack, heap
s
B. Heap, heap
C. Heap, stack
D. Stack, stack
p re
ex
D. None
w
A. Function
w
B. Operator
C. Object
D. macro
in
s s.
p re
ex
vi
al
.k
w
w
w
Table of Content
in
1.1.1.Basic Terminologies of DBMS 9
s.
1.1.2.Purpose of Database System 10
1.2. DBMS 13
s
1.3. Characteristics of the Database Approach 17
1.4. Data Model
re
1.5. The Three Schema Architecture (Data Abstraction)
p 20
21
1.6. Database Languages and Interfaces 23
ex
2.1. Introduction 27
.k
2.2.Super Key 28
2.3. Candidate Key 28
w
2.7.Compound Key 31
2.8. Composite Key 32
2.9. Surrogate Key 32
2.10. Differences between Primary Key & Foreign Key 33
2.11. Entity Relationship (ER) Model 34
2.12. Main Phases of Database Design 34
2.13. Entity Types, Entity Sets, Attributes and Keys 36
2.14.Relationship Types, Relationship Sets, Roles and Structural 40
Constraints
3 Data Normalization 45
3.1. Introduction 45
3.2. First Normal Form 46
3.3. Second Normal Form 46
3.4. Third Normal Form 48
3.5. Boyce-Codd Normal Form 49
in
4.2. Examples of Front End Software’s Visual C++ 59
s.
5 RDBMS Tools 62
s
5.1. Classification of SQL Statements
5.1.1.Data Manipulation Language
p re 62
63
5.1.1.1. SELECT Statement 63
ex
6 SQL Operators 73
7.1. Introduction 79
7.2. Types of Functions 80
7.3. Single Row Functions 80
7.3.1. Numerical Functions 80
7.3.2. Character Functions 81
7.3.3. Date Functions 81
7.3.4. Implicit and Explicit Conversion 82
in
8 Grouping Records 89
s.
8.1. Types of Group Functions 89
s
8.1.1. MAX() 91
8.1.2. MIN()
8.1.3. COUNT()
p re 91
91
8.1.4. SUM() 91
ex
8.1.5. AVG() 92
8.1.6. Using AVG() and SUM() Functions 92
vi
in
12 Creation of Table/Relation and Managing Existing Tables 122
s s.
12.1. CREATE TABLE Command 122
12.2. Creating a Table by using a Sub-Query
13.1.Introduction 124
13.2.Relational Algebra 124
w
in
SYLLABUS
s s.
Chapter 1: Database Management System
re
Introduction to database concepts: Relation/Table, Data, Concept of
p
ex
String Candidate Key, Alternate Key, Primary Key, Foreign Key, Data
Normalization – First, Second, Third, BCNF Normal Forms
vi
(Back-End) – MySQL
.k
DELETE)
Functions:
Grouping Records:
in
than one columns, Having clause
s.
Sub Queries:
s
Guidelines for using sub queries, types of sub queries (Single row and
Multiple row)
p re
Database Objects: DDL (Data Definition Language), Creating
ex
KEY
.k
in
• File : Collection of records. Example : Bio-Data File, Payroll File
• Database: Collection of inter-related data items with less redundancy to server multiple
s.
applications. Example: Student database, Employee Database
s
• Redundancy : Repeated data or Unwanted data or Duplicate Data
•
re
DBMS : Applications programs or software used to provide interface between users and
databases.
p
• Table : It is a interaction of rows and columns. It is also called as Relation
ex
• Row : It is a record which contains a entire information about an entity. It is also known as
Tuple
vi
• Column : Field Name where a single piece information has been pasted. It is also known as
.k
Domain
• Degree : The number of attributes in a relation determines the degree of relation.
w
• Composite Attribute: It can be further sub-divided. Example: Date. It has Day, Month and
Year
• Single Valued Attribute : It can take only one value for each entity. Example:
Account_Number
• Multivalued Attribute: It can take more one value. Example: Color
• Derived Attribute: It can be derived from another attribute. Example: Age which can be
derived from DoB
• Key Attribute : It is unique identification of a record. Ex: Primary key – Rollno, Exam-No,
Account-No
were able to manipulate the information through number of application programs which include
the following programs.
in
• Assign grades to students, compute grade point averages (GPA), and generate transcripts
s.
System programmers wrote these application programs to meet the needs of the university. New
s
application programs are added to the system as the need arises. For example, suppose that a
p re
university decides to create a new major (say, computer science).As a result, the university creates
a new department and creates new permanent files (or adds information to existing files) to record
ex
information about all the instructors in the department, students in that major, course offerings,
degree requirements, etc. The university may have to write new application programs
vi
to deal with rules specific to the new major. New application programs may also have to be written
to handle new rules in the university. Thus, as time goes by, the system acquires more files and
al
This typical file-processing system is supported by a conventional operating system. The system
w
stores permanent records in various files, and it needs different application programs to fetch
w
records from, and add records to, the appropriate files. Before database management systems
w
(DBMSs) came to existence, organizations usually stored information in such systems. Keeping
organizational information in a file-processing system has a number of major disadvantages:
Since different programmers create the files and application programs over a long period, the
various files are likely to have different structures and the programs may be written in several
programming languages. Moreover, the same information may be duplicated in several places
(files). For example, if a student has a double major (say, music and mathematics) the address and
telephone number of that student may appear in a file that consists of student records of students
in the Music department and in a file that consists of student records of students in the
Mathematics department. This redundancy leads to higher storage and access cost. In addition, it
may lead to data inconsistency; that is, the various copies of the same data may no longer agree.
For example, a changed student address may be reflected in the Music department records but not
Suppose that one of the university clerks needs to find out the names of all students who live
within a particular postal-code area. The clerk asks the data-processing department to generate
in
such a list. Because the designers of the original system did not anticipate this request, there is no
s.
application program on hand to meet it. There is, however, an application program to generate the
list of all students. The university clerk has now two choices: either obtain the list of all students
s
and extract the needed information manually or ask a programmer to write the necessary
re
application program. Both alternatives are obviously unsatisfactory.
p
ex
Suppose that such a program is written, and that, several days later, the same clerk needs to trim
that list to include only those students who have taken at least 60 credit hours. As expected, a
vi
program to generate such a list does not exist. Again, the clerk has the preceding two options,
neither of which is satisfactory.
al
.k
The point here is that conventional file-processing environments do not allow needed data to be
retrieved in a convenient and efficient manner. More responsive data-retrieval systems are
w
• Data Isolation
Because data are scattered in various files, and files may be in different formats, writing new
application programs to retrieve the appropriate data is difficult.
• Integrity Problems
The data values stored in the database must satisfy certain types of consistency constraints.
Suppose the university maintains an account for each department, and records the balance amount
in each account. Suppose also that the university requires that the account balance of a department
may never fall below zero. Developers enforce these constraints in the system by adding
Objective Question
1. Data and its relationships are represented in rows and columns, that is table which is called
____________ data model
A) Hierarchical B) Relational
TEACHER'S CARE ACADEMY
C) Network D) Object
2. The database should be in consistent state before and after the transaction which has been
made against the database. This is called __________
A) Atomicity B) Durable
in
C) Isolation D) Consistent
3. ______________ data model has tree structure for representing data and its relationships
s.
A) Hierarchical B) Logical
s
C) Network D) ER
A) Logical B) View
ex
C) Physical D) Conceptual
5. The highest level of data abstraction is _____________
vi
7. The technical term for the row of the table or record of the relation is __________
A) Row B) Column
w
C) Table D) Tuple
8. ______________ is the application programs or software used to provide interface between
databases and the users
A) DBMS B) DBA
C) Database D) Table
9. _______________ attribute can be further subdivided.
A) Single B) Multi-value
C) Composite D) Stored
in
s s.
p re
ex
vi
al
.k
w
w
w
in
1.3.6 Why Database 5
s.
1.3.7 Database Management System(DBMS) 6
1.3.8 Function of DBMS 6
s
1.3.9 Advantages of DBMS and disadvantage of DBMS 6
1.3.10 Database Basics
re
1.3.11 Three level architecture of DBMS
p 7
8
1.3.12 Database users 9
ex
1.6 Exercise 25
w
3.2.1.5 Testing 44
3.2.1.6 Installation/Deployment 46
3.2.1.7 Maintenance 46
3.3 The 5 best Software Development Processes (and how to pick 46
the right one for you)
in
3.3.1 Waterfall 46
s.
3.3.2 Agile and Scrum 47
3.3.3 Incremental and Iterative 48
s
3.3.4 V-Shaped 49
3.3.5
3.4 Testing
Spiral
p re 50
51
ex
3.4.1 Introduction 51
3.4.2 Principles of Testing 51
vi
3.4.3.2.1 Verification 52
w
3.4.3.2.2 Validation 52
3.4.3.2.3 Black Box Testing 53
w
4. Data Model 60
60
4.1 ER Model 60
4.1.1 Types of data model 60
4.1.2 What is ER Diagram 61
4.1.3 What is ER Model 61
in
4.2 Attributes 66
s.
4.2.1 Types of Attributes 66
4.3 Relationship 67
s
4.3.1 One to One 67
4.3.2
4.3.3
One to Many
Many to One
p re 68
68
ex
4.3.4 Many to Many 70
4.4 Summary 71
vi
4.5 Exercise
al
5. SQL Statement 74
.k
6. Data Dictionary 93
6.1 Definition 93
6.2 Active and passive data dictionary 93
6.3 Elements of Data Dictionary 94
6.4 Extended data dictionary 95
6.5 Functions of Data Dictionary 95
TEACHER'S CARE ACADEMY
in
7.2 Data Warehouse Models 101
s.
7.3 OLAP Analytical Operations 101
7.4 Types of OLAP 104
s
7.5 Exercise 105
8. Data Mining
p
8.1 Fundamentals of data mining
re 106
106
ex
UNIT – VII
in
BUSINESS COMPUTING
s s.
SYLLABUS
Development
w
• Command Line Interface: Allows the user to interact with the computer by typing in
commands. The computer displays a prompt, the user keys in the command and presses
enter or return.
in
s.
• Form-based user interface: Used to enter data into a program or application by offering
s
re
a limited selection of choices. For example, a settings menu on a device is form-based.
p
ex
vi
al
.k
w
visual components for computer software. A GUI displays objects that convey
w
information, and represent actions that can be taken by the user. The objects change color,
size, or visibility when the user interacts with them.
• Menu-driven user interface: A UI that uses a list of choices to navigate within a program
or website. For example, ATMs use menu-driven UIs and are easy for anyone to use.
s s.
p re
ex
vi
al
• Voice user interface: Interactions between humans and machines using auditory
commands. Examples include virtual assistant devices, talk-to-text, GPS and much more.
.k
w
w
w
Database management system deals the knowledge of how data stored and
managed on a computerized information system.
In any organization, it requires accurate and reliable data for better decision
making, ensuring privacy of data and controlling data efficiently.
Examples:
1. Deposit and/or Withdrawal from a bank
TEACHER'S CARE ACADEMY
in
• Unprocessed value or raw fact is known as Data.
s.
Data can be represented:
s
1. Alphabets: (A-Z,a-z)
2. Digits (0-9) and
3. Special characters(+,-.#,$,etc)
e.g : 25, “raj”etc.
p re
ex
1.3.3 Information:
vi
Information is the processed data on which decisions and actions are based. Information
al
can be defined as the organized and classified data to provide meaningful values.
Eg: “The age of Ravi is 25”
.k
w
1.3.4File:
File is a collection of related data stored in secondary memory.
w
w
BUSINESS COMPUTING
in
A) snow flake schema B) star schema
C) star snow flake schema D) fact constellation
s.
4: Patterns that can be discovered from a given database are which type…
s
A) More than one type B) Multiple type always
C) One type only
5: Background knowledge is…
A) It is a form of automatic learning.
p re
D) No specific type
ex
process
al
D) None of these
6: Which of the following is true for Classification?
.k
A) A subdivision of a set
w
D) All of these
w
in
s s.
p re
ex
vi
al
.k
w
w
w
CONTENTS
SYLLABUS 1
PREVIOUS QUESTIONS – SET-I 2
PREVIOUS QUESTIONS – SET-II 4
CHAPTER-I HTML/DHTML
1.1 Introduction 6
1.2 Objectives 7
in
1.3 Introduction to Universal Resource Identifier (URI) 8
1.4 Basic Tags of HTML 10
s.
1.4.1 HTML 11
s
1.4.2 HEAD 11
1.4.3 TITLE
1.4.4 BODY
p re 11
12
ex
Possible Questions 25
w
CHAPTER – II LISTS
2.1 Ordered List OL (L1, Type-1, I, A, a: START, VALUE) 28
2.2 Unordered List-UL (Bullet Type-Disc, Circle, Square) 30
2.5 Description List or Definition List(DL, DT, DD) 31
2.4 Nested List 32
2.5 Web Page Authorizing Using HTML 33
Possible Questions 36
in
3.1.7 Column specification 47
s.
3.2 Frames 50
3.2.1 Frameset 50
s
3.2.2 Frame tag
3.2.3 Height and Width
p re 51
51
3.2.4 Frameborder 52
ex
Possible Questions 57
.k
CHAPTER- IV FORMS
4.1 Definition 61
w
4.2 MS-Access 62
w
4.3 ORACLE 64
w
in
5.4.2 Naming Variables 93
s.
5.4.3 Assigning values to variables 94
5.4.4 Declaring variables using Option Explicit 95
s
Possible Questions
CHAPTER – VI FUNCTIONS
p re 96
6.1.1 InStr() 98
vi
6.1.2 Left() 98
al
6.1.3 Right() 99
.k
6.1.4 Mid() 99
6.1.5 Trim, LTrim() and RTrim() 99
w
in
8.1 Connecting with Database 124
8.2 Creation of DSN 126
s.
8.3 OLEDB Connection 134
s
Possible Questions 135
Glossaries for HTML
p re 137
Glossaries for ASP 142
ex
in
SYLLABUS (Marks -10)
s.
WEB DEVEOLOPMENT
s
HTML/DHTML
re
Introduction, Objectives, Introduction to Universal Resource Identifier (URI)
Basic Tags of HTML; HTML, HEAD, TITLE, BODY, Ordered List- OL
p
(L1, Type-1, l, A, a: START VALUE), Unordered List-UL (Bullet Type – Disc,
ex
Circle, Square, DL, DT, DD), Web Page Authoring Using HTML
Tables: Creating Tables, Border, WIDTH, CAPTION, ALIGN
vi
Functions:
String Manipulation Functions: Ucase (), Lcase (), Len (), Left (), Right (), Mid
(), Ltrim (), InStr ()
Time & Date Functions: Date (), Day (), Hour (), Left (), Len (), Minute (),
Month (), Monthname (), Now (),
Arrays: Declaration and use of 1 dimensional and 2 dimensional arrays;
Procedures and Functions, Passing parameters/ arguments;
Connecting with Databases: Creation of DSN, using OLEDB
CHAPTER - 1
INTRODUCTION AND BASIC TAGS OF HTML
1.1 INTRODUCTION
HTML stands for HyperText Markup Language. HTML provides a way of displaying
Web pages with text and images or multimedia content.
HTML is not a programming language, but a markup language. An HTML file is a text
TEACHER'S CARE ACADEMY
file containing small markup tags. The markup tags tell the Web browser, such as
Internet Explorer or Netscape Navigator, how to display the page.
An HTML file must have an .htm or .html file extension. These files are stored on the
web server. So if you want to see the web page of a company, you should enter the URL
(Uniform Resource Locator), which is the web site address of the company in the address
in
bar of the browser. This sends a request to the web server, which in turn responds by
s.
returning the desired web page. The browser then renders the web page and you see it on
your computer.
s
re
HTML allows Web page publishers to create complex pages of text and images that can
be viewed by anyone on the Web, regardless of what kind of computer or browser is
p
being used. Despite what you might have heard, you don’t need any special software to
ex
create an HTML page; all you need is a word processor (such as Microsoft Word) and a
working knowledge of HTML.
vi
Fortunately, the basics of HTML are easy to master. However, you can greatly relieve
al
tedium and improve your productivity by using a good tool. A simple tool is Microsoft
FrontPage that reduces the need to remember and type in HTML tags. Still, there can
.k
always be situations where you are forced to handcode certain parts of the web page.
w
HTML is just a series of tags that are integrated into a document that can have text,
images or multimedia content.
w
HTML tags are usually English words (such as blockquote) or abbreviations (such as p
w
for paragraph), but they are distinguished from the regular text because they are placed in
small angle brackets.
So the paragraph tag is <p>, and the blockquote tag is <blockquote>. Some tags dictate
how the page will be formatted (for instance, <p> begins a new paragraph), and others
dictate how the words appear (<b> makes text bold).
Still others provide information - such as the title - that doesn’t appear on the page itself.
The first thing to remember about tags is that they travel in pairs. Most of the time that
you use a tag - say <blockquote> - you must also close it with another tag - in this case,
</blockquote>. Note the slash - / - before the word “blockquote”; that is what
distinguishes a closing tag from an opening tag.
www.tcaexamguide.com (9566535080; 9786269980; 76399 67359; 93602 68118 )
Send Your Material &Question Answer Our Email ID [email protected]
www.kalviexpress.in www.kalviexpress.in
7
The basic HTML page begins with the tag <html> and ends with </html>. In between,
the file has two sections - the header and the body.
The header - enclosed by the <head> and </head> tags - contains information about a
page that will not appear on the page itself, such as the title. The body - enclosed by
<body> and </body> - is where the action is. Everything that appears on the page is
contained within these tags.
in
only see the contents of a web page without being able to have any interaction with it.
s.
Dynamic Pages
Dynamic pages are those where the content of the web page depend on user input. So
s
re
interaction with the user is required in order to display the web page.
For example, consider a web page which requires a number to be entered from the user
p
in order to find out if it is even or odd. When the user enters the number and clicks on the
ex
appropriate button, the number is sent to the web server, which in turn returns the result
to the user in an HTML page.
vi
al
Link to local files and Web pages from their Web pages.
w
HTML adopts a simplified set of SGML's structural, semantic, and formatting tags,
keeping the emphasis on the content rather than on the document itself. An important
addition to HTML was the inclusion of support for hypertext, which enabled authors to
define a semantic network of linked information.
FEATURES OF HTML
1) It is a very easy and simple language. It can be easily understood and modified.
TEACHER'S CARE ACADEMY
2) It is very easy to make an effective presentation with HTML because it has a lot of
formatting tags.
3) It is a markup language, so it provides a flexible way to design web pages along with the
text.
4) It facilitates programmers to add a link on the web pages (by html anchor tag), so it
in
enhances the interest of browsing of the user.
s.
5) It is platform-independent because it can be displayed on any platform like Windows,
s
Linux, and Macintosh, etc.
7) HTML is a case-insensitive language, which means we can use tags either in lower-case
ex
or upper-case.
vi
Engineering Task Force (IETF) Request for Comments (RFC) 3986 and are summarized
w
and extended in documentation for the W3C’s Web Architecture, Architecture of the
World Wide Web, Volume 1. According to the specifications, resources do not have to
w
1. Which tag tells the browser where the page starts and stops?
A) <html> B) <body>
C) <head> D) <title>
TEACHER'S CARE ACADEMY
in
3. Which one of the following is always used to enclosed HTML tags?
s.
A) {} B) []
s
C) < > D) ()
re
4. Which one of the following is used to represent a closing tag or end tag?
p
A) / B) \
ex
C) & D) #
vi
A) Tags B) Attributes
C) Comments D) Head section
.k
w
A) <html> B) <body>
C) <head> D) <title>
w
8. Which section is used for text and tags that are shown directly on your web page?
A) Head B) Meta
C) Body D) title
in
s s.
p re
ex
vi
al
.k
w
w
w
Index
CONTENTS Page No.
Syllabus 1
Previous Year Questions with Explanation 2
1. Java Script 7
1.1 Introduction 7
1.2 What is JavaScript 7
1.3 Features of JavaScript 7
1.4 History of JavaScript 8
1.5 Application of JavaScript 8
1.6 JavaScript Comment 8
in
1.7 JavaScript Variable 10
s.
1.8 Javascript Data Types 12
1.9 JavaScript Operators 15
s
1.9.1JavaScript Arithmetic Operators 15
1.9.2 JavaScript Comparison Operators
p
1.9.3 JavaScript Bitwise Operators
re 15
16
ex
1.9.4 JavaScript Logical Operators 16
1.9.5 JavaScript Assignment Operators 16
vi
in
2.5.3 Time based authoring tools 2
2.5.4 Object-Oriented authoring tools: 53
s.
3. Image formats 55
4. Image scanning with the help of scanner 59
s
5. Animation, Morphing and Applications 68
in
s.
SYLLABUS
s
Java script
Event handling, adding java script in an HTML page
Multimedia and authoring tools
p re
ex
Image Formats
TIFF, BMP, JPG/JPEG, GIF, IC, PDF, PSG:
vi
Image scanning with the help of scanner: Setting up resolution, size, file Formats of
images; Image preview
al
Layers: Adding layers, dragging and pasting selections on to layers, moving and
copying layers, duplicating layers, deleting layers, merging layers. Opacity.
w
Sound: Recording sound using sound recorder (capture), Sound editing, Effect
enhancement;
Voice Recognition software Philips / Dragon, MIDI player, sound recorder.
Sound Quality: Radio Quality,
1. Movie File Formats: AVI, MPEG.
Movie Frames: Concept of Frame, Frame Buffer;
2. Multimedia authoring using macromedia flash
Making of simple flash movie.
WEB SCRIPTING
1. Java Script
1.1 Introduction
TEACHER'S CARE ACADEMY
in
1.2 What is JavaScript
s.
JavaScript (js) is a light-weight object-oriented programming language which is used by
s
several websites for scripting the webpages. It is an interpreted, full-fledged programming
p re
language that enables dynamic interactivity on websites when applied to an HTML document.
It was introduced in the year 1995 for adding programs to the webpages in the Netscape
Navigator browser. Since then, it has been adopted by all other graphical web browsers. With
ex
JavaScript, users can build modern web applications to interact directly without reloading the
vi
page every time. The traditional website uses js to provide several forms of interactivity and
simplicity.
al
Although, JavaScript has no connectivity with Java programming language. The name was
.k
suggested and provided in the times when Java was gaining popularity in the market. In
w
addition to web browsers, databases such as CouchDB and MongoDB uses JavaScript as their
scripting and query language.
w
6. It is a case-sensitive language.
7. JavaScript is supportable in several operating systems including, Windows, macOS,
etc.
8. It provides good control to the users over the web browsers.
in
company recruited Brendan Eich intending to implement and embed Scheme programming
language to the browser. But, before Brendan could start, the company merged with Sun
s.
Microsystems for adding Java into its Navigator so that it could compete with Microsoft over
s
the web technologies and platforms. Now, two languages were there: Java and the scripting
re
language. Further, Netscape decided to give a similar name to the scripting language as Java's.
It led to 'Javascript'. Finally, in May 1995, Marc Andreessen coined the first code of
p
Javascript named 'Mocha'. Later, the marketing team replaced the name with 'LiveScript'.
ex
But, due to trademark reasons and certain other reasons, in December 1995, the language was
finally renamed to 'JavaScript'. From then, JavaScript came into existence.
vi
al
o Displaying pop-up windows and dialog boxes (like an alert dialog box, confirm dialog
box and prompt dialog box),
o Displaying clocks etc.
To make code easy to understand It can be used to elaborate the code so that end user can
easily understand the code.
To avoid the unnecessary code It can also be used to avoid the code being executed.
Sometimes, we add the code to perform some action. But after sometime, there may be
need to disable the code. In such case, it is better to use comments.
TEACHER'S CARE ACADEMY
in
JavaScript Single line Comment
s.
It is represented by double forward slashes (//). It can be used before and after the statement.
s
Let’s see the example of single-line comment i.e. added before the statement.
<script>
// It is single line comment
p re
document.write("hello javascript");
ex
</script>
Let’s see the example of single-line comment i.e. added after the statement.
vi
<script>
al
var a=10;
.k
var b=20;
w
</script>
w
It can be used to add single as well as multi line comments. So, it is more convenient.
It is represented by forward slash with asterisk then asterisk with forward slash. For example:
/* your code here */
It can be used before, after and middle of the statement.
<script>
/* It is multi line comment.
It will not be displayed */
document.write("example of javascript multiline comment");
</script>
www.tcaexamguide.com (95665 35080; 9786269980; 76399 67359; 93602 68118 )
Send Your Material &Question Answer Our Email ID [email protected]
www.kalviexpress.in www.kalviexpress.in
108
function compare()
{
in
int a=1;
s.
char b=1;
s
if(A)tostring()===B)
returntrue;
else
returnfalse;
p re
ex
}
A) true
vi
B) false
al
C) runtime error
D) logical error
.k
3. The expression of calling (or executing) a function or method in JavaScript is called _______
w
A) Primary expression
w
B) Functional expression
C) Invocation expression
w
<p id="demo"></p>
<script>
function myFunction()
{
document.getElementById("demo").innerHTML=Math.cbrt(125);
}
</script>
A) 125
B) 25
C) 5
D) Error
o.constructor === F
A) false
in
B) true
s.
C) 0
s
D) 1
7. Which of the following function of Boolean object returns a string containing the source of
w
B - valueOf()
w
C - toString()
D - None of the above.
in
s s.
p re
ex
vi
al
.k
w
w
w
Chapter
Chapter Name Page No.
No.
Sullabus 1
Previous year questions (set-1) 2
in
1.1.4 Way of Communication 22
s.
1.1.5 Delays in Computer Network 24
1.1.6 Communication Channel 27
s
1.1.7 Bandwidth, and Data Transfer Rate 28
1.1.8
1.1.9
Frequency
p re
Circuit Switching, Packet Switching
33
35
ex
2. Types of Networks 45
2.1 Local Area Network (LAN) 45
w
in
4.2.3 Fiber optics 65
4.3 Wireless transmission 66
s.
4.3.1 The electromagnetic spectrum 66
s
4.3.2 Radio wave 68
4.3.3
4.3.4
Microwave transmission
Infrared and millimeter waves
p re 68
69
4.4 Communication satellites 70
ex
5. Network Devices 74
.k
5.3 Switch 76
w
5.4 Repeater 76
w
5.5 Bridge 77
5.6 Router 78
5.6.1 Physical vs Logical Addresses 78
5.7 Gateway 79
5.8 Modem 80
5.9 Wi-Fi Card 80
6. ISO/OSI Stack 82
6.1 Protocol Hierarchies 82
6.2 OSI Reference Model 86
6.2.1 Seven Layers of OSI Reference Model 87
in
7.3.9 VOIP 106
7.4 Transport Layer Protocols 106
s.
7.5 Network Layer Protocols 107
s
7.5.1 Address Resolution Protocol (ARP) 107
7.5.2
7.5.3
re
Reverse Address Resolution Protocol (RARP)
Internet Control Message Protocol (ICMP)
p 107
107
7.6 Physical Layer Protocols 107
ex
in
13. IP Address (IPv4 Overview) 143
13.1 What is Network? 143
s.
13.2 IPv4 - OSI Model 144
s
13.3 Network Layer 145
13.4
13.5
IPv4 - TCP/IP Model
IPv4 - Packet Structure
p re 145
146
13.6 IPv4 - Addressing 147
ex
in
18.2 1G,2G,3G,4G 193
18.3 GSM Architecture 195
s.
19. Network Security 199
s
19.1 Security Attacks 202
19.2
19.3
Encryption and Decryption
Cryptography
p re 203
203
19.4 Private key Cryptography 204
ex
in
s s.
SYLLABUS
Evolution of Networking : Internet
p re
Data Communication Terminologies: Bandwidth (Hz, KHz, MHz) and Data
ex
Web Pages : Hyper Text Markup Language (HTML), Hyper Text Transfer
w
system for data transmission makes use of the sender and destination address, In this other so
many elements are also there that allows it to transfer data from one set of point to another set
of point after dividing the elements of communication system in groups and these interface
elements acts as the main component for data communication.
Data communication system made up of five basic components, they are
in
Message
s.
Sender
s
Receiver
Transmission Medium
Protocol
p re
ex
vi
al
.k
w
w
1.1.1. SIGNAL
A signal is an electromagnetic or electrical current that carries data from one system or
w
network to another.
In electronics, a signal is often a time-varying voltage that is also an electromagnetic wave
carrying information, though it can take on other forms, such as current.
There are two main types of signals used in electronics: analog and digital signals.
While these signals may be limited to a range of maximum and minimum values, there
in
increasingly precise values).
s.
b.) Digital Signals
s
Digital signals must have a finite set of possible values.
that's-not-infinity.
p re
The number of values in the set can be anywhere between two and a-very-large-number-
Most commonly digital signals will be one of two values -- like either 0V or 5V.
ex
from afar, the wave function below may seem smooth and analog, but when you look
w
closely there are tiny discrete steps as the signal tries to approximate values:
w
That's the big difference between analog and digital waves. Analog waves are smooth
and continuous, digital waves are stepping, square, and discrete.
flexibility in implementation.
Analog signals are suited for audio and video transmission while Digital signals are
suited for Computing and digital electronics.
in
Here, are essential characteristics of Analog Signal
s.
These type of electronic signals are time-varying
Minimum and maximum values which is either positive or negative.
s
It can be either periodic or non-periodic.
Analog Signal works on continuous data.
p re
The accuracy of the analog signal is not high when compared to the digital signal.
ex
This type of electronic l signals can be processed and transmitted better compared to
analog signal.
w
The accuracy of the digital signal is better than that of the analog signal.
Analog Digital
An analog signal is a continuous signal that Digital signals are time separated signals
represents physical measurements. which are generated using digital modulation.
1.) The number of bits used for addressing in Gigabit Ethernet is __________.
(A) 32 bit (B) 48 bit
(C) 64 bit (D) 128 bit
2.) Which of the following devices takes data sent from one network device and forwards it
3.) __________ do not take their decisions on measurements or estimates of the current
in
traffic and topology.
(A) Static algorithms (B) Adaptive algorithms
s.
(C) Non – adaptive algorithms (D) Recursive algorithms
s
(A) Network layer (B) Data layer
p re
4.) Which of the following layer of OSI Reference model is also called end-to-end layer ?
5.) The IP address __________ is used by hosts when they are being booted.
(A) 0.0.0.0 (B) 1.0.0.0
al
6.) Suppose we want to download text documents at the rate of 100 pages per second.
w
Assume that a page consists of an average of 24 lines with 80 characters in each line. What
w
7.) If a file consisting of 50,000 characters takes 40 seconds to send, then the data rate is __.
(A) 1 kbps (B) 1.25 kbps
(C) 2 kbps (D) 10 kbps
in
s s.
re
COMPUTER SCIENCE
p
ex
PG TRB 2020 – 21
vi
al
.k
w
w
w