Answer:
System calls = 500000
Explanation:
Instructions that a computer can execute = 1 billion instructions/sec
Instructions that a system call takes including the trap and context switching = 1000 instructions
When half of the CPU time is on application, n system calls can be executed in 1 second.
Therefore we'll get an equation as following.
1000 * n = 0.5 * 1000000000
n = 0.5 * 1000000000 / 1000
n = 500000
System calls = 500000
Umm I really have no idea
Classes cannot Initialize data members in the class definition.
B) Initialize data members in the class definition
<u>Explanation:</u>
Class is defined by end user data type where it can handle multiple data type and referred to other classes also. Class is also called as data structure object or object class.
Due to class methods total programming language coding style is changes. For example employee of an organization should hold his or her employee number, address detail, spouse details, salary details
Where in old style programming language we need to declare separate variable to hold the data types, where we can define employee as class which can hold employee number, address fields, and again define salary details as other class and add employee->employee number where key connect between to class which is called derived class.