Programming Hub C,C++,C#,Asp.Net,Ado.Net,Java,  HTML,SQL.

This Blog Post Only Education Purpose For All Education Related Blogs and Articles Post Here.Download Free Software and Study Materials Mores..

Showing posts with label AMITY UNIVERSITY. Show all posts
Showing posts with label AMITY UNIVERSITY. Show all posts

Wednesday 31 May 2017

Amity University Operating System Questions and Answers

6:53:00 pm 0
Amity University Operating System Questions and Answers
SET A 1 to 20 MCQs
All answers in Red Color
11)    An optimal scheduling algorithm in terms of minimizing the average waiting time of a given set of process is ...

A. FCFS scheduling 

B. Round robin scheduling algorithm

C. Shortest job first scheduling algorithm 

D. Priority scheduling algorithm
1) C. Shortest job first scheduling algorithm

2) The hardware mechanism that enables a device to notify the CPU is called .......

A. polling

B. interrupt 

C. system call

D. none of the above
2) B. interrupt 

3) in the running state........

A. only the process which has control of the processor is found

B. all the process waiting for I/O to be completed are found

C. all the processes waiting for the processor are found 

D. none of the above
3) A. only the process which has control of the processor is found


4) which technique was introduced because a single job could keep both the CPU and the I/O devices busy?

A. Time sharing

B. Spooling

C. Preemptive scheduling
D. Multiprogramming
4) D. Multiprogramming

5) RMA works on static priorities while EDF algorithm works on........

A. starvation 

B. dynamic priorities 

C. RR scheduling

D. FIFO scheduling
5) C. RR scheduling

6) in the........... Method of data transfer, the participation of the processor is eliminated during data transfer.

A. buffering 

B. caching

C. direct memory access

D. indirect memory access
6) C. direct memory access

7) Inter process communication can be done through ....

A. mails 

B. messages

C. system calls 

D. traps
7) B. messages

8) RR scheduling is most suitable for........

A. time shared OS 

B. distributed OS

C. real time OS

D. an Ordinary OS
8) A. time shared OS 

9) The aim of ......... transparency is to ensure that the movement of the object is handled automatically by the system in a user transparent manner.

A. location

B. name 

B. migration 

D. scaling

9) B. migration 
10)........... Is a memory management scheme that permits the physical address space of a process to be noncontiguous?

A. Paging

B. Segmentation

C. Virtual memory

D. main memory
10) A. Paging
11) Context switching is........

A. part of spooling 

B. part of polling 

C. part of interrupt handling

D. part of paging

11) C. part of interrupt handling

12) The normal functioning of an RPC may get disrupted due to..........

A. call message gets lost

B. response message gets lost

C.  Caller node crashes and is restarted 

D. All of the above
12) D. All of the above

13) Mutual exclusion is referred as.......

A. if one process is in a critical region others are excluded 

B. prevents deadlock 

C. requires semaphore to implement 

D. is found only in the Windows NT operating system
13) A. if one process is in a critical region others are excluded 

14) IFO scheduling is..........

A. preemptive 

B. non-preemptive 

C. deadline scheduling

D. RR scheduling
14) B. non-preemptive

15) .......... deals with the process of deciding which process should be assigned to which processor.

A. Process migration 

B. Processor allocation

C. threads

D. none of the above

15) B. Processor allocation
16) which scheduler controls the degree of multiprogramming?

A. Short term scheduler

B. Long term scheduler


C. Middle term scheduler

D. Pre term scheduler
16) B. Long term scheduler

17) Safe state is .......

A. deadlock state

B. non-deadlocked state

C. polling state

D. spooling state
17) B. non-deadlocked state

18)........ Time is defined as the time period for which the execution of the process is stopped for transferring its information to the destination node. 

A. turn around 

B. latency 

C. freezing 

D. execution 
18) C. freezing 


19) The principle of locality of reference justifies the use of 

A. virtual memory

B. interrupts 

C. main memory

D. cache memory
19) D. cache memory

20) For a multiple instances of resource type which algorithm is used .......

A. divide and conquer algorithm 

B. banker's algorithm

C. partition algorithm

D. sorting algorithm 

20) B. banker's algorithm

Saturday 27 May 2017

Object Oriented Programming Concept C++ MCQ AMITY UNIVERSITY

12:36:00 pm 0
Object Oriented Programming Concept C++ MCQ AMITY UNIVERSITY
                                     Questions 1 to 30.

1. 
Which of the following type of class allows only one object of it to be created?
Virtual class
Abstract class
Singleton class
Friend class
Answer: Option C
Which of the following is not a type of constructor?
Copy constructor
Friend constructor
Default constructor
Parameterized constructor
Answer: Option B
Which of the following statements is correct?
Base class pointer cannot point to derived class.
Derived class pointer cannot point to base class.
Pointer to derived class cannot be created.
Pointer to base class cannot be created.
Answer: Option B
Which of the following is not the member of class?
Static function
Friend function
Const function
Virtual function
Answer: Option B
Which of the following concepts means determining at runtime what method to invoke?
Data hiding
Dynamic Typing
Dynamic binding
Dynamic loading
Answer: Option C

6. 
Which of the following term is used for a function defined inside a class?
Member Variable
Member function
Class function
Classic function
Answer: Option B

7. 
Which of the following concept of oops allows compiler to insert arguments in a function call if it is not specified?
Call by value
Call by reference
Default arguments
Call by pointer
Answer: Option C

8. 
How many instances of an abstract class can be created?
1
5
13
0
Answer: Option D

9. 
Which of the following cannot be friend?
Function
Class
Object
Operator function
Answer: Option C

10. 
Which of the following concepts of OOPS means exposing only necessary information to client?
Encapsulation
Abstraction
Data hiding
Data binding
Answer: Option C

11. 
Why reference is not same as a pointer?
A reference can never be null.
A reference once established cannot be changed.
Reference doesn't need an explicit dereferencing mechanism.
All of the above.
Answer: Option D

2. 
cout is a/an __________ .
operator
function
object
macro
Answer: Option C

13. 
Which of the following concepts provides facility of using object of one class inside another class?
Encapsulation
Abstraction
Composition
Inheritance
Answer: Option C

14. 
How many types of polymorphisms are supported by C++?
1
2
3
4
Answer: Option B

15. 
Which of the following is an abstract data type?
int
double
string
Class
Answer: Option D

16. 
Which of the following concepts means adding new components to a program as it runs?
Data hiding
Dynamic typing
Dynamic binding
Dynamic loading
Answer: Option D

17. 
Which of the following statement is correct?
A constructor is called at the time of declaration of an object.
A constructor is called at the time of use of an object.
A constructor is called at the time of declaration of a class.
A constructor is called at the time of use of a class.
Answer: Option A

18. 
Which of the following correctly describes overloading of functions?
Virtual polymorphism
Transient polymorphism
Ad-hoc polymorphism
Pseudo polymorphism
Answer: Option C

19. 
Which of the following approach is adapted by C++?
Top-down
Bottom-up
Right-left
Left-right
Answer: Option B

20. 
Which of the following is correct about function overloading?
The types of arguments are different.
The order of argument is different.
The number of argument is same.
Both A and B.
Answer: Option D

21. 
Which of the following is correct about class and structure?
class can have member functions while structure cannot.
class data members are public by default while that of structure are private.
Pointer to structure or classes cannot be declared.
class data members are private by default while that of structure are public by default.
Answer: Option D

22. 
Which of the following concepts means wrapping up of data and functions together?
Abstraction
Encapsulation
Inheritance
Polymorphism
Answer: Option B

23. 
Which of the following concepts means waiting until runtime to determine which function to call?
Data hiding
Dynamic casting
Dynamic binding
Dynamic loading
Answer: Option C

25. 

24. 
How "Late binding" is implemented in C++?
Using C++ tables
Using Virtual tables
Using Indexed virtual tables
Using polymorphic tables
Answer: Option B
Which of the following operator is overloaded for object cout?
>> 
<< 
+
=
Answer: Option B

26. 
Which of the following is the correct class of the object cout?
iostream
istream
ostream
ifstream
Answer: Option C

27. 
Which of the following cannot be used with the keyword virtual?
class
member functions
constructor
destructor
Answer: Option C

28. 
Which of the following functions are performed by a constructor?
Construct a new class
Construct a new object
Construct a new function
Initialize objects
Answer: Option D

29. 
Which of the following problem causes an exception?
Missing semicolon in statement in main().
A problem in calling function.
A syntax error.
A run-time error.
Answer: Option D

30. 
Which one of the following options is correct about the statement given below? The compiler checks the type of reference in the object and not the type of object.
Inheritance
Polymorphism
Abstraction
Encapsulation
Answer: Option B


You Might Also Like

Developing Data-Centric Windows Applications using Java

Developing Data-Centric Windows Applications using Java Introduction The Core Java Programming and JDBC course provides an introd...

Unlimited Reseller Hosting