MCQ Bank
A thread can be enabled fiber operation by ________.
- A) GetCurrentFiber()
- B) CreateFiber()
- C) ConvertThreadToFiberEx()
- D) SwitchToFiber()
The scheduler will run the _________ priority _________thread when a processor becomes available.
- A) Lowest, ready
- B) Lowest, running
- C) Highest, running
- D) Highest, ready
In Finding a Process Id, the FindProcessId() obtains the ______ of the given job number.
- A) Job ID
- B) Process ID
- C) Handle ID
- D) Thread ID
How does Thread Local Storage (TLS) contribute to thread safety?
- A) By allocating a single TLS index for all threads.
- B) By allowing all threads to access each other's TLS arrays.
- C) By enabling shared data modification.
- D) By preventing threads from modifying each other's data.
Thread should not change the ___________ environment.
- A) Hard disk
- B) Process
- C) Integer
- D) RAM
Which of the following is an optimal situation?
- A) Every worker work as a separate thread on a separate processor
- B) · Every worker work with multiple processor on multiple processor
- C) Every worker work as a separate thread on a single processor
- D) Every worker work with multiple processor on single processor
Which of following thread will run first?
- A) Thread with THREAD_PRIORTY_NORMAL
- B) Thread with THREAD_PRIORTY__IDLE
- C) Thread with THREAD_PRIORTY_BELOW_NORMAL
- D) Thread with THREAD_ PRIORTY_ABOVE_NORMAL
A new fiber can be created using__________.
- A) GetFiber()
- B) ConvertThreadToFiber()
- C) CreateFiber()
- D) ConvertThreadToFiberEx()
When a thread exits, the thread __________ is deallocated and the handle referring to the thread is invalidated.
- A) List
- B) Stack
- C) Queue
- D) Array
Default stack size for thread is__________.
- A) 1 MB
- B) 1 Byte
- C) 1 Bit
- D) 1 KB
In Simpson’s 1/3 rule, we divide the interval of integration [a, b] into an ………………………number of sub-intervals.
- A) Prime
- B) Odd
- C) Even
- D) None of the given choices
Which of the following is the Global Error for Simpson’s 3/8 Rule while integrating
‘f(x) = Cosx’ in the interval of [0,pi] of equally spaced subinterval of width ‘h =pi/6’ and intermediate point x = pi/2?
- A) -pi/80
- B) 1
- C) pi/80
- D) 0
$$For\,the\,given\,data\,{\text{points}}\,(4,1.3),\,(8,1.5),\,and\,(12,1.9)\,\,the\,divide\,difference\,table\,will\,be\,given\,as$$
- A) $$\begin{array}{*{20}{c}} x&y&{1stD.D}&{2ndD.D} \\\ 4&{1.3}&{0.0062}&{} \\\ 8&{1.5}&{0.1}&{0.05} \\\ {12}&{1.9}&{}&{} \end{array}$$
- B) $$\begin{array}{*{20}{c}} x&y&{1stD.D}&{2ndD.D} \\\ 4&{1.3}&{0.05}&{} \\\ 8&{1.5}&{0.1}&{0.0062} \\\ {12}&{1.9}&{}&{} \end{array}$$
- C) $$\begin{array}{*{20}{c}} x&y&{1stD.D}&{2ndD.D} \\\ 4&{1.3}&{0.1}&{} \\\ 8&{1.5}&{0.35}&{0.0062} \\\ {12}&{1.9}&{}&{} \end{array}$$
- D) $$\begin{array}{*{20}{c}} x&y&{1stD.D}&{2ndD.D} \\\ 4&{1.3}&{0.1}&{} \\\ 8&{1.5}&{0.0062}&{0.05} \\\ {12}&{1.9}&{}&{} \end{array}$$
$$\begin{gathered} For\,the\,given\,divide\,difference\,table \hfill \\ \begin{array}{*{20}{c}} x&y&{1stD.D}&{2ndD.D} \\\ 1&{2.2}&{0.4333}&{} \\\ 4&{3.5}&{0.2}&{ - 0.0389} \\\ 7&{4.1}&{}&{} \end{array} \hfill \\ the\,Newton's\,divide\,difference\,\,{\text{interpolation}}\,formula\,will\,be \hfill \\\ \end{gathered}$$
- A) $$y = f(x) = - 0.0389 + (x - 1)(0.4333) + (x - 1)((x - 4)(2.2)$$
- B) $$y = f(x) = 2.2 + (x - 1)(0.4333) + (x - 1)((x - 4)( - 0.0389)$$
- C) $$y = f(x) = - 0.0389 + (x - 1)(2.2) + (x - 1)((x - 4)(0.4333)$$
- D) $$y = f(x) = 2.2 + (x - 1)( - 0.0389) + (x - 1)((x - 4)(0.4333)$$
In Simpson’s 3/8 rule, we divide the interval of integration into n sub-intervals.
Where n is divisible by.....
- A) 3
- B) None of the given choices
- C) 4
- D) 2
$$\Delta = - - -$$
- A) None
- B) $$\frac{{E - 1}}{2}$$
- C) $E\,\, - \,\,1$
- D) $1 - E$
Given the following data x:1 2 7 11 y:6 10 13 37 Which formula is useful in finding the interpolating polynomial?
- A) None
- B) Newton’s backward difference interpolation formula
- C) Lagrange’s interpolation formula
- D) Newton’s forward difference interpolation formula
If the area under ‘f(x) = x’ in interval [0,2] is subdivided into two equal sub-intervals of width ‘1’ with right end points, then which of the following will be the Truncation Error provided that I(definite integral) = 2 and approximate sum = 3 ?
- A) 0
- B) 2
- C) 1
- D) -1
In Simpson’s 1/3 rule, the global error is of ………………
- A) O(h2)
- B) None of the given choices
- C) O(h4)
- D) O(h3)
Simpson’s 3/8 rule represents the area between the curve y = f(x) in the interval say [a,b] above x-axis by approximating the given curve by the ----------.
- A) Cubic curve through one point
- B) Cubic curve through four points
- C) Cubic curve through three points
- D) Cubic curve through two points