Explore topic-wise MCQs in Csharp.

This section includes 1967 Mcqs, each offering curated multiple-choice questions to sharpen your Csharp knowledge and support exam preparation. Choose a topic below to get started.

1.

Fast clipping algorithm has similarities with Liam Barsky algorithm.

A. True
B. False
Answer» C.
2.

Fast clipping algorithm is an example of ____________ clipping algorithm.

A. text
B. polygon
C. line
D. curve
Answer» D. curve
3.

A plane duality is a map from a ______________________ to its dual plane.

A. projective plane
B. incident plane
C. parallel plane
D. reference plane
Answer» B. incident plane
4.

Which method of clipping is based on duality?

A. Skala
B. Sutherland clipping
C. Liam Barsky method
D. NLN clipping
Answer» B. Sutherland clipping
5.

Which of the following function is contained by both full text search and Xquery?

A. search()
B. contain()
C. contains()
D. query()
Answer» D. query()
6.

Following content of XML elements are indexed in full text?

A. Content of the XML value
B. Non numerical value in content of XML attributes
C. The content of XML elements.
D. None of the mentioned
Answer» C. The content of XML elements.
7.

Sample applications to illustrate XML functionality in SQL Server are _____________

A. Implementing XML in SQL Server
B. XmlOnlineCatalog
C. XmlSurvey
D. All of the mentioned
Answer» E.
8.

Different xml modes available for xml clauses are __________

A. RAW
B. AUTO
C. PATH
D. All of the mentioned
Answer» E.
9.

Statement for dropping XML index is __________

A. DROP INDEX
B. DELETE INDEX
C. REMOVE INDEX
D. None of the Mentioned
Answer» B. DELETE INDEX
10.

What is the purpose of the primary XML index?

A. Persisted representation of data
B. Shredded representation of data
C. Structured representation of data
D. None of the Mentioned
Answer» E.
11.

Which of the following is not a xml data type method?

A. query()
B. value()
C. nodes()
D. none of the Mentioned
Answer» E.
12.

The breakdown voltage of the P-N junction diode decreases due to the increase in.

A. Reverse saturation current
B. Reverse leakage current
C. Bias voltage
D. Barrier voltage
Answer» C. Bias voltage
13.

What will be the reverse saturation current in the junction when the voltage across the junction is 0?

A. 0.3A
B. 0.7A
C. 0A
D. 1.24A
Answer» D. 1.24A
14.

The magnitude of the electric charge (e) is given by ____________

A. -1.6*10-19 C
B. 1.6*10-19 C
C. 9.11*10-31 C
D. 1.637*10-37 C
E. is given by ____________a) -1.6*10-19 Cb) 1.6*10-19 Cc) 9.11*10-31 Cd) 1.637*10-37 C
Answer» B. 1.6*10-19 C
15.

Which is better in terms of performance for iterating an array?

A. for(int i=0; i<100; i++)
B. for(int i=99; i>=0; i–)
C. for(int i=100; i<0; i++)
D. for(int i=99; i>0; i++)
Answer» C. for(int i=100; i<0; i++)
16.

Which of the below is false about java coding?

A. variable names should be short
B. variable names should be such that they avoid ambiguity
C. test case method names should be created as english sentences without spaces
D. class constants should be used when we want to share data between class methods
Answer» B. variable names should be such that they avoid ambiguity
17.

Which of the below is true about java class structure?

A. The class name should start with lowercase
B. The class should have thousands of lines of code
C. The class should only contain those attribute and functionality which it should; hence keeping it short
D. The class attributes and methods should be public
Answer» D. The class attributes and methods should be public
18.

What one of the following is best practice to handle Null Pointer exception?i) int noOfStudents = line.listStudents().count;ii) int noOfStudents = getCountOfStudents(line);

A. Option (i)
B. Option (ii)
C. Compilation Error
D. Option (ii) gives incorrect resultView Answer
E. ; a) Option (i)b) Option (ii)c) Compilation Errord) Option (ii) gives incorrect resultView Answer
Answer» C. Compilation Error
19.

Which of the following is a best practice to measure time taken by a process for execution?

A. System.currentTimeMillis()
B. System.nanoTime()
C. System.getCurrentTime()
D. System.getProcessingTime()
Answer» C. System.getCurrentTime()
20.

Which one of the following causes memory leak?

A. Release database connection when querying is complete
B. Use Finally block as much as possible
C. Release instances stored in static tables
D. Not using Finally block often
Answer» E.
21.

Which of the following is good coding practice to determine oddity?i)

A. i
B. ii
C. (i) causes compilation error
D. (ii) causes compilation errorView Answer
Answer» C. (i) causes compilation error
22.

What causes the program to exit abruptly and hence its usage should be minimalistic?

A. Try
B. Finally
C. Exit
D. Catch
Answer» D. Catch
23.

What data structure should be used when number of elements is fixed?

A. Array
B. Array list
C. Vector
D. Set
Answer» B. Array list
24.

What should the return type of method where there is no return value?

A. Null
B. Empty collection
C. Singleton collection
D. Empty String
Answer» C. Singleton collection
25.

A time series with ambient humidity observations expressed in ___________

A. Degree Fahrenheit
B. Degree Celsius
C. Percentage
D. Fahrenheit
Answer» D. Fahrenheit
26.

A time series with ambient temperature observations expressed in _________

A. Degrees Fahrenheit
B. Degrees Celsius
C. Percentage
D. Fahrenheit
Answer» B. Degrees Celsius
27.

A series of values captured from the sensor is _________

A. Actuator
B. Time series
C. API
D. UI
Answer» C. API
28.

_________ setting that can be modified on a device.

A. Actuator
B. Time Series
C. API
D. UI
Answer» B. Time Series
29.

We need to invest in storage and prepossessing capacity to perform _________

A. C analytics
B. Bigdata analytics
C. Python analytics
D. IoT analytics
Answer» E.
30.

The number of idle states (Ti), that is allowed between two INTA cycles, to meet the 8259A speed and cascade address output delay is

A. 1
B. 2
C. 3
D. 4
Answer» D. 4
31.

The LOCK (active low) signal is activated during

A. Ti of first INTA cycle
B. Ts of first INTA cycle
C. Th of second INTA cycle
D. Ts of second INTA cycle
Answer» C. Th of second INTA cycle
32.

The signal of 82C288, that enables the cascade address drivers, during INTA cycles is

A. DEN
B. DT/R (active low)
C. MCE
D. MB
Answer» D. MB
33.

The slave (which is selected) sends the vector on data bus after the

A. first INTA (active low) pulse from 80286
B. second INTA (active low) pulse from 80286
C. third INTA (active low) pulse from 80286
D. sends the vector on data bus after thea) first INTA (active low) pulse from 80286b) second INTA (active low) pulse from 80286c) third INTA (active low) pulse from 80286d) none of the mentioned
Answer» C. third INTA (active low) pulse from 80286
34.

Which of the following is the highest priority usage among them?

A. second transfer cycle of a processor extension data transfer
B. third transfer cycle of a processor extension data transfer
C. hold request
D. second byte transfer of 2-byte transfer at an odd address
Answer» E.
35.

An API is an application programming interface consisting of methods and properties which allow the author to get or set data or execute commands to the user agent.

A. True
B. False
Answer» B. False
36.

Which of the following methods must empty the list of subpaths so that the context once again has zero subpaths?

A. closePath()
B. beginPath()
C. moveTo(x, y)
D. endPath()
Answer» C. moveTo(x, y)
37.

The ____________ method must fill all the subpaths of the current path, using fillStyle, and using the non-zero winding number rule.

A. fill()
B. stroke()
C. clip()
D. get()
Answer» B. stroke()
38.

Which of the following is a 16 kbyte block?

A. register
B. vector table
C. buffer
D. lookaside buffer
Answer» C. buffer
39.

Which bits control the floating point exceptions?

A. EE
B. FE0
C. FE1
D. both FE1 and FE2
Answer» E.
40.

Which of the following can be done to ensure that all interrupts are recognised?

A. reset pin
B. external ready pin
C. handshaking
D. acknowledgment
Answer» D. acknowledgment
41.

Control system are normally designed to be:

A. Overdamped
B. Under damped
C. Un damped
D. Critically damped
Answer» C. Un damped
42.

Rise time, Peak time, maximum peak overshoot, settling time, and steady state error are mutually dependent.

A. True
B. False
Answer» B. False
43.

Normalized difference between the time response peak and steady state output is ______________

A. Maximum peak overshoot
B. Damping factor
C. Minimum peak overshoot
D. Undershoot
Answer» B. Damping factor
44.

The characteristic equation of a control system is s(s2+ 6s+13)+K=0. The value of k such that the characteristic equation has a pair of complex roots with real part -1 will be :

A. 10
B. 20
C. 30
D. 40
Answer» C. 30
45.

Consider the input with the inputs 4 u(t) and the impulse response 5 +7 , the time constants of the output are,

A. 0.2, 0.33 and 0.5
B. 4.5 and 7
C. 0.2, 0.4 and 0.7
D. 0.2, 0.1 and 0.25
Answer» B. 4.5 and 7
46.

The standard second order system to a unit step input shows the 0.36 as the first peak undershoot, hence its second overshoot is:

A. 0.135
B. 0.216
C. 0.1296
D. 0.116
Answer» C. 0.1296
47.

What is the return type of session_set_save_handler() function?

A. boolean
B. integer
C. float
D. character
Answer» B. integer
48.

The session_start() function must appear _________

A. after the html tag
B. after the body tag
C. before the body tag
D. before the html tag
Answer» E.
49.

Which function is used to transform PHP’s session-handler behavior into that defined by your custom handler?

A. session_set_save()
B. session_set_save_handler()
C. Session_handler()
D. session_save_handler()
Answer» C. Session_handler()
50.

Which function effectively deletes all sessions that have expired?

A. session_delete()
B. session_destroy()
C. session_garbage_collect()
D. SessionHandler::gc
Answer» E.