Explore topic-wise InterviewSolutions in .

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

1.

When a client makes a GET request for /voltage/actual, the request is passed to ________(a) MeasuredVariable(b) HandleRequest(c) Measured Variable’s HandleRequest(d) HandleRequest’s MeasuredVariableThe question was asked by my college director while I was bunking the class.The query is from Handling Sensor Request topic in section Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Right option is (c) Measured Variable’s HANDLEREQUEST

The explanation: When a CLIENT makes a GET request for /voltage/actual, the request is passed to Measured Variable’s HandleRequest method. When this happens, the MeasuredVariable object FIRST calls FromSensor.

2.

Multithreading is a mechanism for splitting up a program into several parallel activities called _________(a) Methods(b) Objects(c) Classes(d) ThreadsI got this question in class test.I'd like to ask this question from Multithreading topic in portion Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Right answer is (c) Classes

Explanation: MULTITHREADING is a mechanism for splitting up a PROGRAM into several parallel activities called threads. Multithreading MAKES it possible for TWO or more activities to execute in parallel on a single PROCESSOR.

3.

What is the result for HandleGet()?(a) Null(b) Zero(c) Empty(d) OriginI have been asked this question in an interview for internship.I would like to ask this question from Multithreading topic in division Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Correct choice is (a) Null

The explanation is: This method GETS the current buffer STATE, without CHANGING it. The method performs the necessary LOCKING to enable safe of the buffer from multiple THREADS. The result may be null.

4.

What is HandleGet() method function?(a) Current buffer state, with changing(b) Current buffer state, without changing(c) Previous buffer state, with changing(d) Previous buffer state, without changingI had been asked this question by my school principal while I was bunking the class.My enquiry is from Multithreading in portion Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Correct answer is (b) Current BUFFER state, without changing

Explanation: This method GETS the current buffer state, without changing it. The method PERFORMS the necessary locking to ENABLE safe of the buffer from multiple threads.

5.

________ is used to provide an object of type MeasuredVariable.(a) HandleRequest(b) RequetHandle(c) Handle_Request(d) Handle-RequestThis question was posed to me in homework.My question is based upon Handling Sensor Request in section Going Parallel, Handling Actuator and Sensor of IOT

Answer» RIGHT option is (a) HANDLEREQUEST

The EXPLANATION is: In the WEBSERVER initialization, We use the request handler HandleRequest provided by an object of type MeasuredVariable. A MeasuredVariable object has a property FromSensor.
6.

Multithreading on a single processor is possible with the help of _________(a) Threader(b) Scheduler(c) Method(d) DividerThis question was posed to me by my school principal while I was bunking the class.This key question is from Multithreading in section Going Parallel, Handling Actuator and Sensor of IOT

Answer»

The correct answer is (b) Scheduler

The explanation: MULTITHREADING on a SINGLE processor is possible with the HELP of scheduler, which briefly stops the currently execution THREAD of an application after each time SLICE.

7.

In HandlePut(object o), o represents?(a) Null(b) Zero(c) Empty(d) OriginI had been asked this question in homework.My question comes from Multithreading topic in chapter Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Correct choice is (a) Null

The explanation is: void HandlePut(object o) method puts 0 into BUFFER. The new value in the buffer replaces the old one. The method PERFORMS the NECESSARY locking to enable safe use of the buffer from multi threads. Object o MAY be NULL.

8.

Delegate properties must be compatible with the delegate types they represent.(a) True(b) FalseThe question was asked in an interview.This interesting question is from Handling Sensor Request topic in chapter Going Parallel, Handling Actuator and Sensor of IOT

Answer»

The correct answer is (a) True

The EXPLANATION: FromSensor is a PROPERTY to which you can assign a method I.e., a C#delegate property. Delegate PROPERTIES must be compatible with the delegate types they represent.

9.

Which property makes it possible for the analog sensor object to convert the integer input?(a) MinValue(b) MaxValue(c) Either MinValue or MaxValue(d) Both MinValue and MaxValueThis question was posed to me in an online interview.This intriguing question originated from Handling Sensor Request topic in chapter Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Right CHOICE is (d) Both MinValue and MaxValue

To explain: Properties MinValue and MaxValue make it possible for the ANALOG SENSOR object to convert the integer input of the analog input port to a VALUE in the given range.

10.

_______ method puts zero into the buffer.(a) HandlePut(object o)(b) HandletGet(object o)(c) HandletGet()(d) HandletPut()I have been asked this question in an online interview.This intriguing question comes from Multithreading in portion Going Parallel, Handling Actuator and Sensor of IOT

Answer»

The CORRECT option is (a) HandlePut(OBJECT o)

The explanation: void HandlePut(object o) METHOD puts 0 into buffer. The new value in the buffer replaces the old ONE.

11.

What is the range of analog input port?(a) 0 to 3(b) 0 to 3.3(c) 0 to 4(d) 0 to 4.5I had been asked this question in unit test.My question is taken from Handling Sensor Request topic in portion Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Correct choice is (b) 0 to 3.3

To explain: Properties MINVALUE and MAXVALUE make it POSSIBLE for the analog sensor object to convert the integer INPUT of the analog input PORT to a value in the given range, in this case it is between 0.0 to 3.3.

12.

HandlePut(object o) performs what?(a) Fixing values(b) Locking(c) Changing values(d) UnlockingThe question was posed to me at a job interview.I'd like to ask this question from Multithreading topic in section Going Parallel, Handling Actuator and Sensor of IOT

Answer»

The correct choice is (d) Unlocking

Easiest explanation: void HandlePut(OBJECT o) method puts 0 into buffer. The new VALUE in the buffer replaces the old one. The method performs the necessary LOCKING to enable SAFE use of the buffer from multi THREADS.

13.

What is the switching speed?(a) 60 times per second(b) 50 times per second(c) 55 times per second(d) 66 times per secondThis question was addressed to me during an internship interview.Origin of the question is Multithreading topic in portion Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Right choice is (b) 50 times per second

To elaborate: SWITCHING AMONG threads occurs so FREQUENTLY -50 times per second that all threads APPEAR to run in parallel.

14.

Command to make thread sleep?(a) Thread.Sleep(b) Thread_Sleep(c) ThreadSleep(d) Thread_sleepI had been asked this question during an interview for a job.The doubt is from Multithreading in chapter Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Correct OPTION is (a) THREAD.Sleep

The BEST I can explain: A particular thread of the application can be BLOCKED FOREVER by calling Thread.Sleep(Timeout.Infinite).

15.

In ______ an object of type Thread in the namespace System.Threading represents and controls one thread.(a) . PY(b) .SAP(c) .NET(d) .EXEI had been asked this question in an interview.This intriguing question comes from Multithreading in section Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Right choice is (C) .NET

The best I can explain: In .NET, an object of type Thread in the NAMESPACE System.Threading represents and controls ONE thread. Its constructor TAKES a parameterless method as a parameter.

16.

Each thread is a single stream of execution.(a) False(b) TrueThe question was posed to me in an interview.My question is based upon Multithreading topic in section Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Right answer is (a) False

The best explanation: Multithreading is a mechanism for SPLITTING up a program into SEVERAL parallel ACTIVITIES called threads. Each thread is a SINGLE stream of execution, yet they all share the same resources.

17.

_______ makes it possible for two or more activities to execute in parallel on a single processor.(a) Multithreading(b) Threading(c) SingleThreading(d) Both Multithreading and SingleThreadingThis question was posed to me during an internship interview.Question is taken from Multithreading topic in section Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Correct option is (a) Multithreading

To explain I WOULD SAY: MultiThreading MAKES it possible for two or more activities to EXECUTE in parallel on a single processor.

18.

An instance of class Buffer provides a threadsafe way of communication between ________(a) Actors(b) Objects(c) Locking(d) BufferThe question was posed to me in a national level competition.My question is taken from Multithreading in section Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Correct option is (b) Objects

To explain: An instance of CLASS BUFFER provides a threadsafe way of communication between actors. A buffer instance BASICALLY acts as a VARIABLE whose current VALUE can be read and written.

19.

Scheduler switch threads in ________(a) Multilevel queue scheduling(b) Priority Scheduling(c) Round robin fashion(d) Multilevel feedback queue schedulingI have been asked this question in my homework.This intriguing question comes from Multithreading in division Going Parallel, Handling Actuator and Sensor of IOT

Answer»

The correct ANSWER is (c) ROUND robin fashion

To explain: It switches among threads in a round robin fashion so that every thread GETS its FAIR share of PROCESSING time.

20.

The method will be executed once the thread’s ______ method is called.(a) EventBegin(b) EventStart(c) Begin(d) StartThe question was posed to me in an internship interview.My enquiry is from Multithreading topic in portion Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Correct OPTION is (d) START

The best explanation: In .NET, an OBJECT of type Thread in the namespace System.Threading represents and controls one thread. Its constructor takes a parameter LESS method as a parameter. The method will be executed once the threads Start method is called.

21.

Variable voltage Sensor is an instance of Analog Sensor.(a) True(b) FalseI got this question by my college professor while I was bunking the class.The doubt is from Handling Sensor Request in chapter Going Parallel, Handling Actuator and Sensor of IOT

Answer» RIGHT choice is (a) True

Explanation: For reading the current voltage, library CLASS ANALOG Sensor that wraps an analog input port in an OBJECT that provides the method HandleGet.

Variable voltage Sensor is an instance of Analog Sensor, initialized with pinA1.
22.

Can we use any web browser as client.(a) True(b) FalseThe question was asked by my school teacher while I was bunking the class.This interesting question is from Handling Sensor Request topic in section Going Parallel, Handling Actuator and Sensor of IOT

Answer» RIGHT option is (a) True

The explanation: You can use any web BROWSER as a client to inspect the CURRENT voltage. After all, a web browser is basically an ENGINE for initiating GET request.
23.

________ will show how to handle GET request to a sensor resources.(a) Monitor(b) VoltageMonitor(c) Voltage(d) Voltage-MonitorI have been asked this question during an online exam.My doubt is from Handling Sensor Request in chapter Going Parallel, Handling Actuator and Sensor of IOT

Answer»

The correct answer is (c) VOLTAGE

For explanation: VoltageMonitor, shows how to handle GET REQUEST to a SENSOR RESOURCE, more specially one that represent some voltage.

24.

Which endpoint shows application health information?(a) /health(b) /info(c) /metric(d) /traceThe question was asked in exam.This interesting question is from Handling Actuator Request in section Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Right choice is (a) /health

Easiest explanation: /health shows application health INFORMATION (a simple ‘status’ when accessed over an unauthenticated connection or full MESSAGE details when AUTHENTICATED). It is not SENSITIVE by default.

25.

Which endpoint shows metric information for the current application?(a) /health(b) /info(c) /metric(d) /traceI have been asked this question in an interview.I would like to ask this question from Handling Actuator Request in portion Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Right choice is (c) /METRIC

Easiest explanation: Endpoints ALLOW you to monitor the application and, in some cases, interact with it as well. /metric shows metric INFORMATION for the CURRENT application. It is also sensitive by DEFAULT.

26.

What should an URL contain?(a) ASCII values(b) Digits(c) Characters(d) ASCII values, digits, and charactersI had been asked this question during an internship interview.Question is from Handling Sensor Request in chapter Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Right option is (d) ASCII VALUES, digits, and characters

To ELABORATE: You can USE any URL as long you use ASCII letters, digits, and Characters. For example, the URL /root/sensor/analog/I would LOOK like:

http://192.168.5.100/root/sensor/analog/1.

27.

A resource with measured variable will reflect ________(a) Potential phenomenon(b) Resource phenomenon(c) Measured phenomenon(d) Physical phenomenonI got this question in an interview.This key question is from Handling Sensor Request in portion Going Parallel, Handling Actuator and Sensor of IOT

Answer»

The CORRECT OPTION is (d) Physical phenomenon

The best I can explain: A RESOURCE with measured variable will REFLECT a physical phenomenon as it currently is. The resource is updated with new sensor values from TIME to time.

28.

Enabled customization endpoint will be enabled only during __________(a) True cases only(b) False cases only(c) Either True or false cases(d) True and false casesThe question was posed to me at a job interview.My doubt stems from Handling Actuator Request in chapter Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Right answer is (a) True cases only

Explanation: Each ENDPOINT can be CUSTOMIZED with properties using the FOLLOWING FORMAT: endpoint.[endpoint name].[property to customize].

Enabled – if true then it can be accessed otherwise not.

29.

Using which customized endpoint will be accessed over HTTP?(a) Id and enabled(b) Enabled(c) Sensitive(d) IdI got this question in class test.My question is from Handling Actuator Request topic in portion Going Parallel, Handling Actuator and Sensor of IOT

Answer»

The correct answer is (d) ID

Easy explanation: Each endpoint can be customized with properties USING the FOLLOWING format: endpoint.[endpoint name].[PROPERTY to customize].

Id – by which this endpoint will be accessed over HTTP.

30.

When the user turns the potentiometer’s knob, the value is changed.(a) True(b) FalseThe question was asked in homework.My question is from Handling Sensor Request in section Going Parallel, Handling Actuator and Sensor of IOT

Answer»

The correct option is (a) True

Easy explanation: When the USER physically turns the potentiometer’s knob, the measured VARIABLE changes its VALUE accordingly. This means that subsequent GET request to the same resource may YIELD DIFFERENT responses.

31.

How many customizing properties are available?(a) 2 Properties(b) 3 Properties(c) 4 Properties(d) 5 PropertiesThe question was asked by my school teacher while I was bunking the class.The question is from Handling Actuator Request in division Going Parallel, Handling Actuator and Sensor of IOT

Answer»

The correct answer is (B) 3 Properties

Explanation: Each endpoint can be customized with properties using the FOLLOWING format: endpoint.[endpoint name].[property to CUSTOMIZE]. Three properties are:

1. Id

2. Enabled

3. SENSITIVE.

32.

Which endpoints are sensitive?(a) /health(b) /info(c) /metric(d) /traceThis question was posed to me in an internship interview.Question is from Handling Actuator Request in section Going Parallel, Handling Actuator and Sensor of IOT

Answer»

The correct option is (c) /METRIC

The explanation: Most endpoints are sensitive IE., MEANING they are not FULLY public. While a handful is not: /HEALTH and /metric.

33.

____________ enables production-ready feature to the spring boot application.(a) Actuators(b) Endpoint(c) Boot(d) Hyper mediaI have been asked this question during an online exam.The above asked question is from Handling Actuator Request topic in chapter Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Correct option is (a) Actuators

To explain: Actuators ENABLE production ready FEATURES to a SPRING boot application WITHOUT having to actually implement these things yourself.

34.

An HTTP server manages ____________(a) Websites(b) Devices(c) Resources(d) SensorsThe question was posed to me in homework.The query is from Handling Sensor Request in section Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Right answer is (c) Resources

To ELABORATE: An HTTP server manages resources. In this example, a RESOURCE is provided that has the meaning, “actual voltage value, as measured by a sensor ATTACHED to the BOARD”.

35.

__________ allows us to monitor the application.(a) Actuators(b) Endpoints(c) Boot(d) HypermediaI had been asked this question in an online quiz.The doubt is from Handling Actuator Request topic in portion Going Parallel, Handling Actuator and Sensor of IOT

Answer»

The correct CHOICE is (b) Endpoints

For explanation: Endpoints allow you to MONITOR the application and, in some cases, interact with it as well. The boot comes with many built-in endpoints and, like PRETTY MUCH anything in spring.

36.

Which endpoint is gathered and publishes information about OS?(a) /health(b) /info(c) /metric(d) /traceI have been asked this question during an interview for a job.Question is taken from Handling Actuator Request topic in division Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Right OPTION is (c) /METRIC

The best explanation: The metric endpoint is one of the most important endpoint as I gathers and publishes INFORMATION about OS, JVM and Application LEVEL metric.

37.

For reading the current voltage ________ library class is used.(a) Digital sensor(b) Analog sensor(c) Actuator(d) Potential sensorI had been asked this question by my college professor while I was bunking the class.This key question is from Handling Sensor Request topic in section Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Right choice is (a) DIGITAL sensor

Easiest explanation: For reading the current VOLTAGE, library class Analog Sensor that WRAPS an analog INPUT port in an object that provides the method HandleGet.

38.

__________ should be added to start the existing actuators in boot.(a) spring-boot-actuator(b) sprint-actuator-boot(c) boot-spring-actuator(d) actuator-spring-bootThe question was posed to me during an interview.My doubt stems from Handling Actuator Request topic in division Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Correct option is (a) spring-BOOT-actuator

The best EXPLANATION: To start USING the EXISTING actuators in boot we will just need to add the spring-boot-actuator dependency.

39.

A resource that contains an actual value is called as ________(a) Potential variable(b) Measured variable(c) Resource variable(d) Physical variableThe question was asked in a job interview.This intriguing question comes from Handling Sensor Request topic in division Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Correct answer is (B) Measured variable

Best explanation: A RESOURCE that contains an actual value is called a measured variable. A measured variable changes its value over TIME, DEPENDING on a physical PROCESS.

40.

Command to create new endpoint?(a) Endpoint_T(b) Endpoint(c) Endpoint-T(d) Endpoint-tI had been asked this question in my homework.The origin of the question is Handling Actuator Request in chapter Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Right option is (b) ENDPOINT

The explanation: Besides USING the EXISTING endpoint provided by SPRING boot we can create a new endpoint. We need to have endpoint implementation implement the endpoint.

41.

__________ endpoint displays arbitrary application information.(a) /health(b) /info(c) /metric(d) /traceThe question was asked in an interview for internship.I want to ask this question from Handling Actuator Request in chapter Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Correct option is (b) /info

The best I can explain: Endpoints allow you to MONITOR the application and, in some CASES, interact with it as well. /info endpoint DISPLAYS arbitrary application INFORMATION. Not sensitive by DEFAULT.

42.

Which endpoint displays trace information?(a) /health(b) /info(c) /metric(d) /traceI had been asked this question in a national level competition.This interesting question is from Handling Actuator Request topic in division Going Parallel, Handling Actuator and Sensor of IOT

Answer»

The correct ANSWER is (d) /trace

Easy EXPLANATION: ENDPOINTS allow you to monitor the application and, in some CASES, interact with it as WELL. /trace displace trace information by default the; last few HTTP requests.

43.

HelloWeb is an example of ____________ server.(a) HTTP(b) MQTP(c) SMTP(d) CoAPThis question was addressed to me by my school principal while I was bunking the class.Query is from Handling Sensor Request in section Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Right CHOICE is (a) HTTP

To elaborate: HelloWeb is an example of an HTTP server, but it does not USE any SENSORS or actuators.

44.

Health information is collected from all the beans implementing Health Indicator interface.(a) True(b) FalseThe question was posed to me in homework.Question is taken from Handling Actuator Request in section Going Parallel, Handling Actuator and Sensor of IOT

Answer»

The correct choice is (a) True

Best explanation: Health INFORMATION is COLLECTED from all the beans implementing Health INDICATOR interface CONFIGURED in your application CONTEXT.

45.

Enabled customization endpoint will be sensitive only during ________(a) True and false cases(b) False cases only(c) Either True or false cases(d) True cases onlyI got this question in an online quiz.Origin of the question is Handling Actuator Request in chapter Going Parallel, Handling Actuator and Sensor of IOT

Answer»

Right answer is (d) True cases only

To explain: Each endpoint can be customized with properties using the following FORMAT: endpoint.[endpoint name].[PROPERTY to customize].

SENSITIVE – if true then NEED the authorization to show CRUCIAL information over HTTP.