› uploads › paper › november_2015_third... bca third semester examination (year 2015) …2 7....

21
1 BCA Third Semester Examination (Year 2015) Object Oriented Programming Using C++ Subject Code: BCA-301 Paper Code: SRS-211 Time : 20 Minutes M.Marks : 10 Section A (Objective Type Questions) Attempt all questions. Each question carries 1/2 marks. Use the symbol (√) in the box for marking the correct answer. Q. No. 1. Choose the correct answer- 1. C++ was originally developed by- a) Nicolas Wirth b) Donald Knutho b) Bjarne Stroustrup d) Ken Thompson 2. The standard C++ comment- a) / b) //. c) /* and */ d) None of these 3. The operator >> is called- a) An extraction b) A get from c) Either ( a) or (b) d) Get to operator 4. When a language has the capability to produce new data type, it is called- a) Extensible b) Overloaded c) Encapsulated d) Reprehensible 5. Constructors are used to- a) Initialize the objects b) Construct the data members c) Both (a) and (b) d) None of these 6. The fields in a class of a C++ program are by default- a) Protected b) Public c) Private d) None of these Invigilator’s Signature Roll No. Enrollment No.

Upload: others

Post on 26-Feb-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

1

BCA Third Semester Examination (Year 2015) Object Oriented Programming Using C++

Subject Code: BCA-301

Paper Code: SRS-211 Time : 20 Minutes

M.Marks : 10

Section A

(Objective Type Questions)

Attempt all questions. Each question carries 1/2 marks. Use the symbol (√) in the box for marking the

correct answer.

Q. No. 1. Choose the correct answer-

1. C++ was originally developed by-

a) Nicolas Wirth b) Donald Knutho

b) Bjarne Stroustrup d) Ken Thompson

2. The standard C++ comment-

a) / b) //.

c) /* and */ d) None of these

3. The operator >> is called-

a) An extraction b) A get from

c) Either ( a) or (b) d) Get to operator

4. When a language has the capability to produce new data type, it is called-

a) Extensible b) Overloaded

c) Encapsulated d) Reprehensible

5. Constructors are used to-

a) Initialize the objects b) Construct the data members

c) Both (a) and (b) d) None of these

6. The fields in a class of a C++ program are by default-

a) Protected b) Public

c) Private d) None of these

Invigilator’s Signature

Roll No.

Enrollment No.

Page 2: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

2

7. The preprocessor directive # include is required if-

a) Console output is used

b) Console input is used

c) Both (a) and (b)

d) None of these

8. Which of the following is an entry-controlled loop?

a) do-while loop b) while loop

c) for loop d) All of these

9. A switch construct can be used with which of the following types of variable?

a) int b) int, char.

c) int, float, char d) Any basic data type

10. Which header file is included for cin & cout?

a) stdio.h b) conio.h

c) iostream.h. d) Both iostream.h & conio.h

11. Which of the following must be present in switch construct?

a) Expression in () after switch b) default

c) case followed by value d) All of these

12. What is the effect of writing a continue statement inside a loop?

a) It cancels remaining iterations

b) It skips execution of statements which are written below it

c) The program terminates immediately

d) Loop counter is reset

13. Which of the following is not correct 2D array declaration?

a) int m[ ][3]={1,2,3,4}; b) int m[3][ ]={1,2,3,4};

c) int m[2][3]; d) int m[R][C]; (R&C are constants)

Page 3: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

3

14. Preventing direct of data-members of the class from outside world is known as-

a) Polymorphism b) Encapsulation

c) Data hiding d) Scope resolution

15. Creating a new class using one or more existing classes is known as__________.

a) Polymorphism b) Encapsulation

c) Overloading d) Inheritance

16. An object is ___________.

a) A variable of class data type

b) Same as a class

c) Just like a global variable

d) Collection of data members & member functions

17. Consider the following loop:for( int i=0; : <5; i++); What will be the value of i after

this loop-

a) It will give compiler error b) 5

c) 6 d) Some garbage value

18. Ability of an operator or function call to take different forms is known as-

a) Polymorphism b) Encapsulation

c) Overloading d) Inheritance

19. C++ name was suggested by-

a) Risk Mascitti b) Bjarne Stroustrup

c) Donald Knuth d) Ken Thompson

20. In C++, a function contained within a class is called-

a) A member function b) An operator

c) A class function d) A method

------------------------------

Page 4: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

1

BCA Third Semester Examination (Year 2015)

Object Oriented Programming Using C++ Subject Code: BCA-301

Paper Code: SRS-211

Time : 2 Hrs. 40 Mts. M.Marks : 60

Section B (Short Answer Type Questions)

Attempt all questions. Each question carries 4 marks.

Q.No. 2. Distinguish between Objects and Classes.

OR

Discuss the different features of object oriented programming.

Q.No. 3. What are Inline Functions? Give example.

OR

Explain function overloading.

Q.No. 4. What is a Constructor? Give an example.

OR

Describe the importance of destructor.

Q.No. 5. What do you mean by inheritance?

OR

What is an abstract class?

Q.No .6. What does ‘this’ pointer point to?

OR

Write features of I/O system in C++.

Roll No.

Page 5: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

2

Section C

(Long Answer Type Questions)

Attempt all questions. Each question carries 8 marks.

Q.No. 7. What do you mean by a dynamic initialization of a variable? Explain with the

help of an example.

OR

Why is an array called a derived data type? Give an example.

Q.No. 8. Explain scope resolution operator :: in C++ with the help of an example.

OR

Describe different styles of writing prototypes.

Q.No. 9. What is operator overloading? Give an example.

OR

Write a program to overload binary operator ‘+’ to add two complex numbers.

Q.No. 10. What are the different forms of inheritance? Give an example for each.

OR

Write a program to implement virtual base class.

Q.No. 11. What does polymorphism mean in C++? Explain with the help of an example.

OR

Write a program to implement pure virtual function in C++.

--------------------------

Page 6: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

1

BCA Third Semester Examination (Year 2015)

Database Management & Design Subject Code: BCA-302

Paper Code: SRS-212 Time : 20 Minutes

M.Marks : 10

Section A

(Objective Type Questions)

Attempt all questions. Each question carries 1/2 marks. Use the symbol () in the box for marking the

correct answer.

Q.No. 1. Choose the correct answer-

1. The term attribute refers to a ____________ of a table.

a) Record b) Column

c) Tuple d) Key

2. A domain is atomic if elements of the domain are considered to be ___________

units.

a) Different b) Indivisible

c) Constant d) Divisible

3. A ____________ is a property of the entire relation rather than of the individual types

in which each tuple is unique.

a) Rows b) Key

c) Attribute d) Fields

4. Which of the following cannot be taken as a primary key?

a) Id b) Registration number

c) Dept-id d) Street

5. The __________ operation allows the combining of two relations by merging

pairs of tuples one from each relation, into a single tuple.

a) Select b) Join

c) Union d) Intersection

6. The __________ operator takes the results of two queries and return only rows that

appear in both result sets.

a) Union b) Intersect

c) Difference d) Projection

Invigilator’s Signature

Roll No.

Enrollment No.

Page 7: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

2

7. Which one of the following provides the ability to query information from the

database and to insert tuples into, delete tuples from in the database?

a) DML b) DDL

c) Query d) Relational schema

8. To remove a relation from an SQL database, we use the __________ command.

a) Delete b) Purge

c) Remove d) Drop

9. The ___________ clause is used to list the attributes desired in the result of a

query.

a) Where b) Select

c) From d) District

10. The RDBMS terminology for a row is-

a) Tuple b) Relation

c) Attribute d) Degree

11. To change column value in a table the ___________ command can be used.

a) Create b) Insert

c) Alter d) Update

12. A set of possible data values is called-

a) Attribute b) Degree

c) Tuple d) Domain

13. A ____________ represents the number of entities to which another entity can be

associated.

a) Mapping Cardinality b) Table

c) Schema d) Information

14. A __________ clause is an additional filter that is applied to the result.

a) Select b) Group-by

c) Having d) Order by

15. __________ is the process of organizing data into related table.

a) Normalization b) Generalization

c) Specialization d) None of these

Page 8: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

3

16. ___________ is preferred method for enforcing data integrity.

a) Constraints b) Stored Procedure

c) Triggers d) Cursors

17. Key to represent relationship between table is called-

a) Primary key b) Secondary key

c) Foreign key d) None of these

18. DBMS helps to achieve-

a) Data independence b) Centralized control of data

c) Neither (a) nor (b) d) Both (a) and (b)

19. A __________ is used to define overall design of the database.

a) Schema b) Application program

c) DDL d) Code

20. ___________ Cursors are declared and used by the user to process multiple row,

returned by SELECT statement.

a) Implicit b) Explicit

c) Internal d) External

---------------------------------

Page 9: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

1

BCA Third Semester Examination (Year 2015)

Database Management & Design Subject Code: BCA-302

Paper Code: SRS-212 Time : 2 Hrs.40 Mts.

M.Marks : 60

Section B (Short Answer Type Questions)

Attempt all questions. Each question carries 4 marks.

Q.No. 2. Write difference between the logical and physical data independence.

OR

Compare Network and Hierarchical data model.

Q.No. 3. What is RDBMS? What is difference of it with DBMS?

OR

Why normalization is needed? Explain.

Q.No. 4. Explain the project operation of relational algebra.

OR

Define the Cartesian product of relational algebra with example.

Q.No.5. Give two reasons why we may choose a view?

OR

Explain following with example-

i) Primary index

ii) Dense index

Q.No. 6. Discuss user-defined function with their limitation.

OR

How can we declare variable in PL/SQL? Explain with example.

Section C (Long Answer Type Questions)

Attempt all questions. Each question carries 8 marks.

Q.No. 7. What is DBMS and what are the components of DBMS? What are the advantage of

DBMS over file oriented approach?

OR

Explain the following term-

i) Database Schema

ii) Database Independence

Q.No. 8. Discuss the candidate key, primary key, super key, composite key and alternate key.

OR

Describe entity integrity and referential integrity. Give an example of each.

Roll No.

Page 10: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

2

Q.No. 9. Write short note on following-

i) Generalization

ii) Specialization OR

What are database languages? Why the DPL and DML were called data sublanguage?

Q.No. 10. What do you mean by indexing? Also write types of indexing.

OR

Write SQL for the following queries:-

i) Find the names of all employees, who live in the same city as the company for which

they work.

ii) Find the name of all employees who live in the same city and on the same street as do

their manager.

iii) Find the name of all employees, who don’t work for company “ABC”.

Q.No. 11. What is procedure SQL (PL/SQL)? Discuss looping constructs in PL/SQL.

OR

What are cursors? Explain nested and parameterized cursors

-----------------------------

Page 11: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

1

BCA Third Semester Examination (Year 2015)

Organizational Behaviour Subject Code: BCA-303

Paper Code: SRS-213 Time : 20 Minutes

M.Marks : 10

Section A

(Objective Type Questions)

Attempt all questions. Each question carries 1/2 marks. Use the symbol () in the box for marking the

correct answer.

Q.No. 1. Choose the correct answer-

1. Organizational behaviour is-

a) A science b) An art

b) A science as well as an art d) None of these

2. “Leadership motivates the people to work and not the power of money”, this concept is

related to-

a) Autocratic model b) Custodial Model

c) Supportive Model d) Collegial Model

3. Now a days a lot of stress is bring put on the ______ of the employee in the

organization.

a) Character b) Improvement

c) Behaviour d) Rewards

4. Scientist of Organizational Behaviour recognize that organizations are not static but

dynamic and ________.

a) Processing b) Systematic

c) Ever Changing d) Researching

5. The book “The Psychology of Management” was published by-

a) William Gilberth b) Hendry Fayol

c) F.W. Taylor d) Elton Mayo

Invigilator’s Signature

Roll No.

Enrollment No.

Page 12: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

2

6. Organization structures-

a) Affect group behavior more than individual behaviour

b) Change rapidly to meet environmental & market changes

c) Contribute positively to organizational performance

d) Can be defined simply as activities that occur regularly

7. Continued membership in a group will usually require-

a) Supporting the group leader

b) Conforming to group norms

c) Encouraging cohesiveness in the group

d) Developing a status system

8. The least used communication channel in an organization is usually-

a) Upward b) Downward

c) Diagonal d) Horizontal

9. ______________ is a relatively permanent change in behavior that occurs as a result of

experience-

a) Behaviour Modification b) Learning

c) Motivation d) Skills

10. Concept of MBO was introduced by-

a) Peter. F. Drucker b) Hary Parker

c) Henry Fayol d) Philip Kother

11. People with which type of personality trait commonly make poor decisions because

they make them too fast?

a) Type As b) Type Bs

c) Self Monitors d) Extroverts

Page 13: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

3

12. Which of the following is not a trait dimension in Big 5 personality trait?

a) Extroversion b) Agreeableness

c) Ego d) Culture

13. Free rain leadership is also known as-

a) Democratic b) Autocratic

c) Laissez-faire d) Bureaucratic

14. The group formed by an organization to accomplish narrow range of purposes within a

specified time-

a) Formal Group b) Task Group

c) Group Cohesiveness d) Group Structure

15. Which one of the following is/are leadership theories?

a) Trait theory b) Behaviour theory

c) Contingency theory d) All of these

16. Under Herzberg’s theory, factors causing dissatisfaction is called-

a) Demotivators b) Negative Stimuli

c) Hygiene factors d) Defectors

17. ______________ is an attitude reflects the extent to which an individual is gratified or

fulfilled by his work-

a) Motivation b) Job Satisfaction

c) Contribution d) Cognitive dissonance

18. A person’s level of anxiety refers to which personality dimension-

a) Extroversion b) Energetic

c) Openness to experience d) Emotional stability

19. Cultural diversity is important to Managers due to-

a) Globalization b) Social changes

c) Demographic Changes d) All of these

Page 14: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

4

20. __________ is concerned with the interaction of individuals in a face to face

relationships.

a) A group b) Group dynamics

c) Group Norms d) Teams

-----------------------------

Page 15: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

1

BCA Third Semester Examination (Year 2015)

Organizational Behaviour Subject Code: BCA-303

Paper Code: SRS-213

Time : 2Hrs. 40 Mts. M.Marks : 60

Section – B (Short Answer Type Questions)

Attempt all questions (each question carries 4 marks)

Q.No.2. What does the term psychology mean? What does the psychologist observe?

OR

What do you mean by perception? Discuss the process involved in perception?

Q.No.3. Define Organizational learning. Explain the influencing factors of learning?

OR

Emotions in the workplace play an important role. Do you agree with this &

explain with reasons?

Q.No.4. What do you understand by Transactional Analysis?

OR

Define Organization? Explain the contingency model of organization?

Q.No.5. What is the difference between management and leadership?

OR

What is the difference between groups & teams?

Q.No.6. What are group norms? Why do people form and join groups?

OR

What do you understand by the term communication? Explain its components?

Roll No.

Page 16: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

2

Section C

(Long Answer Type Questions)

Attempt all questions. Each question carries 8 marks.

Q.No.7. Explain in detail the three theories of learning?

OR

What is the Erikson’s stage of personality? How do they compare with Freudian

stages?

Q.No.8. Explain in detail the need Hierarchy Theory of Motivation.

OR

Discuss the factors which have been found to affect motivation of Indian

employees?

Q.No.9. Explain in detail various models of Organization?

OR

Define the term value? Explain various roles to be played for facilitating team

functioning?

QNo.10. What are some of the dynamics of motivation in an Organization?

OR

Explain in detail the Trait & Behavioral perspectives of leadership?

Q.No.11. Explain various barriers for effective communication?

OR

“Good communication is the most important tool in the Organization”. Explain

this statement?

--------------------------

Page 17: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

1

BCA Third Semester Examination (Year 2015)

Operating System Subject Code: BCA-304

Paper Code: SRS-214 Time : 20 Minutes

M.Marks : 10

Section A

(Objective Type Questions)

Attempt all questions. Each question carries 1/2 mark. Use the symbol () in the box for marking the

correct answer.

Q.No. 1. Choose the correct answer-

1. Which module gives control of the CPU to the process selected by the short term

scheduler?

a) Dispatcher b) Interrupt

c) Scheduler d) None of these

2. The processes that are residing in main memory and are ready and waiting to execute

are kept on a list called-

a) Job queue b) Ready queue

c) Execution queue d) Process queue

3. The interval from the time of submission of a process to the time of completion is

termed as-

a) Waiting Time b) Turn around time

c) Response Time d) Throughput

4. Which scheduling algorithm allocates the CPU first to the process that requests the CPU

first?

a) First come first serve b) Shortest job first

c) Priority d) None of these

5. In priority scheduling algorithm-

a) CPU is allocated to the process with highest priority

b) CPU is allocated to the process with lowest priority

c) Equal priority processes cannot be scheduled

d) None of these

Invigilator’s Signature

Roll No.

Enrollment No.

Page 18: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

2

6. CPU fetches the instruction from memory according to the values of-

a) Program counter b) Status Register

c) Instruction Register d) Program status word

7. A memory buffer used to accommodate a speed differential is called-

a) Stack pointer b) Cache

c) Accumulator d) Disk Buffer

8. Which of the following is the address generated by the CPU?

a) Physical Address b) Absolute Address

c) Logical Address d) None of these

9. Run time mapping from virtual to physical address is done by-

a) Memory management unit b) CPU

c) PCI d) None of these

10. Memory management technique in which system stores and retrieves data from

secondary storage for the use in main memory is called-

b) Fragmentation b) Paging

c) Mapping d) None of these

11. Routine is not loaded until it is called. All routines are kept on disk in a relocatable load

format. This type of loading is called-

a) Static b) Dynamic

c) Dynamic linking d) Overlays

12. Which of the following is crucial time while accessing data on the disk?

a) Seek time b) Rotational time

c) Transmission time d) Waiting time

13. The host checks if the controller is busy, it is in a loop that status register’s busy bit

becomes clear. This is called_________ and mechanism_________.

a) Interrupt & Polling b) Polling and Spooling

c) Polling & Interrupt d) Deadlock and starvation

Page 19: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

3

14. Unix Operating System is an-

a) Time Sharing b) Multiuser OS

c) Multitasking OS d) All of these

15. Which of the following memory allocation scheme suffers from External

fragmentation?

a) Segmentation b) Pure demand paging

c) Swapping d) Paging

16. The time taken by the disk arm to locate the specific address of a sector for getting

information is called-

a) Rotational latency b) Seek Time

c) Search Time d) Response Time

17. Which file system does windows 95 typically use?

a) FAT 16 b) FAT 32

c) NTFS d) LMFS

18. Identify the odd things from the services of operating system.

a) Accounting b) Protection

c) Error detection and correction d) Dead lock Handling

19. Cryptography technique is used in-

a) Polling b) Job Scheduling

c) Protection d) File Management

20. Which of the following is not the advantage of multiprogramming?

a) Increased through put

b) Shorter response time

c) Decreased OS Overhead

d) Ability to assign priorities to job

---------------------------------

Page 20: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

1

BCA Third Semester Examination (Year 2015)

Operating System Subject Code: BCA-304

Paper Code: SRS-214 Time : 2 Hrs.40 Mts.

M.Marks : 60

Section – B (Short Answer Type Questions)

Attempt all questions. Each question carries 4 marks.

Q.No.2. Explain the dual mode operation of the operating system?

OR

Write short notes on-

i) Multitasking

ii) Peer-to-Peer

iii) Real Time

Q.No.3. Explain FCFS and SJF scheduling concepts.

OR

What do you mean by CPU scheduler? How does it help in scheduling algorithms?

Q.No.4. Explain the concepts of fragmentation?

OR

What are the different contiguous Allocation Methods in memory?

Q.No.5. Write short note on-

i) Directory structure

ii) Disk controller

iii) Disk Organization

OR

What do mean by Directory Implementation? How is it helpful in file system

implementation. Give reasons?

Q.No.6. What are the security threats and what goals are required to be set to overcome them in

device management?

OR

Explain the authentication, protection and access control methods required for security

and protection.

Roll No.

Page 21: › uploads › paper › November_2015_Third... BCA Third Semester Examination (Year 2015) …2 7. The preprocessor directive # include is required if- a) Console output is used b)

2

Section C

(Long Answer Type Questions)

Attempt all questions. Each question carries 8 marks.

Q.No.7. Explain multiprocessing operating system in detail.

OR

Explain the different operating system services available for efficient working of

operating system?

Q.No.8. Explain Priority Scheduling algorithm in detail.

OR

Explain the mechanism of CPU-I/O burst cycle?

Q.No.9. Explain the concepts of Demand Paging and Page Fault in Memory?

OR

Explain the different Page Replacement Algorithms in detail?

Q.No.10. Explain disk scheduling algorithms in detail?

OR

What do you understand by the concept of disk mirroring and caching?

Q.No.11. What do you understand by Deadlock? Also explain the detection and avoidance

mechanisms of deadlock in detail?

OR

What do you mean by Interprocess Communication in operating system? Explain in

detail.

--------------------------------