250+ TOP MCQs on Multithreading and Answers

IOT Multiple Choice Questions on “Multithreading”.

1. _______ 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 SingleThreading

Answer: a
Clarification: MultiThreading makes it possible for two or more activities to execute in parallel on a single processor.

2. In ______ an object of type Thread in the namespace System.Threading represents and controls one thread.
a) . PY
b) .SAP
c) .NET
d) .EXE

Answer: c
Clarification: 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.

3. The method will be executed once the thread’s ______ method is called.
a) EventBegin
b) EventStart
c) Begin
d) Start

Answer: d
Clarification: 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.

4. Command to make thread sleep?
a) Thread.Sleep
b) Thread_Sleep
c) ThreadSleep
d) Thread_sleep

Answer: a
Clarification: A particular thread of the application can be blocked forever by calling Thread.Sleep(Timeout.Infinite).

5. An instance of class Buffer provides a threadsafe way of communication between ________
a) Actors
b) Objects
c) Locking
d) Buffer

Answer: b
Clarification: 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.

6. _______ method puts zero into the buffer.
a) HandlePut(object o)
b) HandletGet(object o)
c) HandletGet()
d) HandletPut()

Answer: a
Clarification: void HandlePut(object o) method puts 0 into buffer. The new value in the buffer replaces the old one.

7. HandlePut(object o) performs what?
a) Fixing values
b) Locking
c) Changing values
d) Unlocking

Answer: d
Clarification: 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.

8. In HandlePut(object o), o represents?
a) Null
b) Zero
c) Empty
d) Origin

Answer: a
Clarification: 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.

9. 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 changing

Answer: b
Clarification: 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.

10. What is the result for HandleGet()?
a) Null
b) Zero
c) Empty
d) Origin

Answer: a
Clarification: 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.

11. Multithreading is a mechanism for splitting up a program into several parallel activities called _________
a) Methods
b) Objects
c) Classes
d) Threads

Answer: c
Clarification: 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.

12. Each thread is a single stream of execution.
a) False
b) True

Answer: a
Clarification: 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.

13. Multithreading on a single processor is possible with the help of _________
a) Threader
b) Scheduler
c) Method
d) Divider

Answer: b
Clarification: 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.

14. Scheduler switch threads in ________
a) Multilevel queue scheduling
b) Priority Scheduling
c) Round robin fashion
d) Multilevel feedback queue scheduling

Answer: c
Clarification: It switches among threads in a round robin fashion so that every thread gets its fair share of processing time.

15. What is the switching speed?
a) 60 times per second
b) 50 times per second
c) 55 times per second
d) 66 times per second

Answer: b
Clarification: Switching among threads occurs so frequently -50 times per second that all threads appear to run in parallel.

250+ TOP MCQs on API Based Architecture and Answers

IOT Multiple Choice Questions on “API Based Architecture”.

1. API enables services portability between ____________
a) Systems
b) Devices
c) Networks
d) Services

Answer: a
Clarification: API enables services portability between sysyems, I.e., service may be allocated to end-systems or servers, with possible relocation and replication throughout its lifecycle.

2. Ubiquitous service provision depends on _________
a) QoS
b) Management
c) Interoperability
d) Routing

Answer: c
Clarification: Ubiquitous service provision depends on interoperability, not only for provisioning of a standard QoS controlled IP bearer, but also for cross domain naming, security, mobility, multicast, including fair compensation for utility provisioning.

3. API architecture not only includes critical elements but also caters for _________
a) System
b) Devices
c) Network
d) Multi homing

Answer: d
Clarification: API architecture not only includes critical elements but also caters for multi homing, mobile networks with dynamic membership, and third party persistent storage based on indirection.

4. All portals are embedded into a single supercomputer, known as _________
a) Network
b) Web
c) Internet
d) System

Answer: b
Clarification: The web is now one, enormous, global computer. Our devices are them phones, tablets, TVS, watches, glasses, etc. These all are all portals into this single computer, known as Web.

5. _________ is uniquely identifiable embedded computing devices.
a) Internet
b) IoT
c) Bigdata
d) Cloud

Answer: b
Clarification: The IoT is the part of the Internet that is made up of “uniquely identified embedded computing devices,” as Wikipedia status. Just like the world Wide Web is a Internet, so does the IoT.

6. Web is a mesh of computers, so too is _________
a) IoT
b) Bigdata
c) Cloud
d) Internet

Answer: a
Clarification: Just like the World Wide Web runs over the Internet, so does the IoT. Similarly to how the Web is a mesh of computers, so too is the IoT.

7. Without _________ computers embedded in house keys are worthless.
a) Data
b) Services
c) Both Data and Services
d) Neither data nor services

Answer: c
Clarification: Without data and services, the little computers embedded in thermostat, house keys, baby monitors, trash cans, fire extinguishers, and store shelve are nearly worthless.

8. _________ Services are the way in which the IoT is connected to data.
a) Cloud
b) Bigdata
c) Internet
d) Network

Answer: a
Clarification: Cloud based services are the way in which the IoT is connected to data. Just like World Wide Web runs over the Internet, so does the IoT.

9. APIs are the skybridge.
a) True
b) False

Answer: a
Clarification: APIs are the skybridge – IoT on one side, useful information and plentiful data crunching capabilities on the other. APIs make IoT useful, turning limited little things into powerful portals of possibilities.

10. IoT solutions are at the heart of IDC’s view of the _________
a) Three
b) Two
c) One
d) Four

Answer: d
Clarification: IoT solutions are at the heart of IDC’s view of the four pillars:
Mobility
Social business
Big data
Cloud
Resulting in the millions of applications available to the billions at the end point.

11. _________ are the inter connectors.
a) Web
b) Internet
c) Network
d) APIs

Answer: d
Clarification: APIs are the inter connector which provides the interface between the Internet and Things.

12. Is APIs are glue?
a) True
b) False

Answer: a
Clarification: JavaWorld’s Andrew Oliver calls APIs “the glue and interesting part where the Internet of Things starts to become useful and more than a buzzword.”

13. Most IoT problems are addressed at _________ layer
a) TCP
b) IP
c) API
d) UDP

Answer: c
Clarification: As more and more devices are connected to the net, however, certain recurring problems must be solved. These problems are addressed at the API layer.

14. IoT-A stands for ________
a) Internet of Things Address
b) Internet of Things Architecture
c) Internet of Things Area
d) Industrial of things Architecture

Answer: b
Clarification: The EU’s Internet of Things Architecture is another example of the way in which we can solve IoT related challenges.

15. IoT-A reference model is a _________
a) Scalable
b) Secure
c) Both scalable and secure
d) Neither scalable nor secure

Answer: c
Clarification: IoT-A architectural reference model is a scalable and secure solution intended to guide the design of protocols, interface and algorithms necessary to scale the IoT.

250+ TOP MCQs on Pressure Sensor and Answers

IOT Multiple Choice Questions on “Pressure Sensor”.

1. Which devices measures gases or liquid?
a) Proximity sensor
b) Pressure sensor
c) Temperature sensor
d) Touch sensor

Answer: b
Clarification: The pressure sensor is a device for pressure measurement of gases or liquid. Pressure is an expression of the force required to stop a fluid from expanding.

2. Which sensor measures the pressure relative to perfect vacuum?
a) Absolute pressure sensor
b) Gauge pressure sensor
c) Vacuum pressure sensor
d) Differential pressure sensor

Answer: a
Clarification: Pressure sensor can be classified in terms of pressure ranges they measure, temperature ranges of operation, and most importantly the type of pressure they measure. Absolute pressure sensor is a sensor that measures the pressure relative to perfect vacuum.

3. Which sensor measure the pressure relative to atmospheric pressure?
a) Absolute pressure sensor
b) Gauge pressure sensor
c) Vacuum pressure sensor
d) Differential pressure sensor

Answer: b
Clarification: This sensor measures the pressure relative to atmospheric pressure. A tire pressure gauge is an example of gauge pressure measurement; when it indicates zero, then the pressure it is measuring is the same as the ambient pressure.

4. Barometer is which type of sensor________
a) Pressure sensor
b) Touch sensor
c) Temperature sensor
d) Humidity sensor

Answer: a
Clarification: Barometers and pressure gauges are the most popular sensors used for IOT ecosystem. Barometers are an absolute help in weather forecasting as in accurately measures the ambient air.

5. Touch screen devices use which sensor?
a) Touch sensor
b) Temperature sensor
c) Humidity sensor
d) Pressure sensor

Answer: d
Clarification: Pressure sensors are ultimate solution for IOT as they can be used in various areas such as touch screen devices.

6. What is the stability of pressure sensor?
a) +/-0.75% FS
b) +/-0.5% FS
c) +/- 0.35% FS
d) +/-0.125% FS

Answer: c
Clarification: One of the main feature of pressure sensor is its stability which is +/-0.35% FS(Full Scale).

7. What is the operating voltage of pressure sensor?
a) 3.5v
b) 1.5v
c) 5v
d) 3v

Answer: d
Clarification: The pressure sensor has and absolute pressure of 1.2 bar to 10 bar. The typical operating system is 3v. With a supply voltage of 5v they offer sensitivities of between 15 mV/bar and 80 mV/bar, depending on type.

8. The feature of c39 is its low insertion height.
a) True
b) False

Answer: a
Clarification: The c39 is especially suitable for IOT and consumer applications. One feature of c39 is its low insertion height of just 0.24mm, which makes the low-profile MEMS pressure sensor die ideal for applications in smartphones and wearables.

9. What is the absolute pressure of c39?
a) 2.0 bar
b) 1.5 bar
c) 1.2 bar
d) 1.35 bar

Answer: c
Clarification: The c39 is designed for an absolute pressure of 1.2 bar and, like the c33 series, offers long-term stability of +/-0.35% FS.

10. Which pressure standard is used for gauge?
a) Dead-weight tester
b) Manometer
c) Pressure switches
d) Stain gauge pressure sensor

Answer: b
Clarification: A mercury manometer is a simple pressure standard and may be used for gauge, differential, and absolute measurements with a suitable reference.

11. Pressure measured relative to perfect vacuum is termed as ______
a) Absolute Pressure Measurement
b) Differential Pressure Measurement
c) Gauge Pressure Measurement
d) Both Absolute and Differential

Answer: a
Clarification: Pressure measured relative to perfect vacuum is termed as Absolute Pressure Measurement. Perfect vacuum is a condition where there is no matter present in the atmosphere and hence nil air pressure exits in that region.

12. In which pressure measurement, pressure of two distinct positions are compared?
a) Absolute Pressure Measurement
b) Differential Pressure Measurement
c) Gauge Pressure Measurement
d) Both Absolute and Differential

Answer: b
Clarification: In differential pressure measurement, pressure of two distinct positions are compared. For example, pressure difference calculated by measuring it at different floors of a tall building will give us differential pressure.

13. ______ can be defined as a subtype of differential pressure measurement.
a) Absolute Pressure Measurement
b) Differential Pressure Measurement
c) Gauge Pressure Measurement
d) Both Absolute and Differential

Answer: c
Clarification: Gauge Pressure Measurement is defined as subtype of differential pressure measurement where we compare pressure pressure at any point to the current atmospheric pressure. Gauge Pressure measurement is used in applications like tire pressure of blood pressure measurement.

14. The computer devices and smart phones that have _______ with pressure sensor.
a) Automotive Industry
b) Industrial
c) Aviation
d) Touch screen

Answer: d
Clarification: The computer devices and smart phones that have touch screen display with pressure sensor. Whenever slight pressure is applied on touch screen through a finger, the sensor determines where it has been applied.

15. In which place the pressure sensor is needed for monitoring gases and their partial pressures.
a) Touch screen
b) Automotive Industry
c) Industrial
d) Aviation

Answer: c
Clarification: Pressure sensors are used to monitor gases and their partial pressures in industrial units so that the large chemical reactions take place in precisely controlled environmental conditions.

250+ TOP MCQs on Transport Layer and Answers

IOT Multiple Choice Questions on “Transport Layer”.

1. What are the functions of the transport layer?
a) Multiplexing/ Demultiplexing
b) Connection less Services
c) Connection oriented service
d) Congestion control

Answer: a
Clarification: Transport layer functions are:
–> Multiplexing / DE multiplexing : Normally the transport layer will create distinct network connection for each transport connection required by the session layer.
–> Fragmentation and Re assembly: The data accepted by the transport layer from the session layer is split up into smaller units if needed and then passed to the network layer.

2. Which services are provided by transport layer?
a) Error control
b) Connection service
c) Connection less service
d) Congestion control

Answer: a
Clarification: The transport layer also decides the type of service that should be provided to the session layer. The message may or may not be received in the order in which it was sent. The decision regarding the type of service to be provided is taken at the time when the connection is established.

3. TCP and UDP are called ________
a) Application protocols
b) Session protocols
c) Transport protocols
d) Network protocols

Answer: c
Clarification: Above the network layer, we find TCP and UDP, the two transport protocols. TCP is used for most of our human interactions with the web. UDP is also better suited for real-time data applications such as voice and video.

4. Security based connection is provided by which layer?
a) Network layer
b) Session layer
c) Application layer
d) Transport layer

Answer: d
Clarification: IOT is, of course all about connection to the internet. And even more so, it is about security. Without security and without encrypted communication, anyone can see what I send and receive. So encryption and secure communication are key. The solution is to use a connection that uses the TLS(Transport Layer Security) Protocol.

5. TCP is the standard protocol with std no?
a) 5
b) 4
c) 7
d) 3

Answer: c
Clarification: TCP is a standard protocol with STD number 7. TCP is described by RFC 793-Transmission Control Protocol. Its status is recommended, but in practice, every TCP/IP implementation that is not used exclusively for routing will include TCP.

6. Using which method in transport layer data integrity can be ensured?
a) Checksum
b) Repetition codes
c) Cyclic redundancy checks
d) Error correcting codes

Answer: a
Clarification: Using checksum’s, the data integrity across all the delivery layers can be ensured. These checksum’s guarantee that the data transmitted is the same as the data received through repeated attempts made by other layers to have missing data resent.

7. Buffer overrun can be reduced by using what?
a) Traffic control
b) Flow control
c) Byte orientation
d) Data integrity

Answer: b
Clarification: Devices at each end of a network connection often have no way of knowing each other’s capabilities in terms of data throughput and can therefore send data faster than the receiving devices is able to buffer or process it. In these cases, buffer overruns can cause complete communication breakdowns.

8. Transport layer can identify the symptoms of overload nodes using _________
a) Flow control
b) Traffic control
c) Byte orientation
d) Data integrity

Answer: b
Clarification: Digital communications networks are subject to bandwidth and processing speed restrictions, which can mean a huge amount of potential for data congestion on the network. This network congestion can affect almost every part of a network. The transport layer can identify the symptoms of overload nodes and reduced flow rates.

9. Transport layer receives data in the form of __________
a) Packets
b) Byte streams
c) Bits stream
d) Both packets and Byte stream

Answer: b
Clarification: Some applications prefer to receive byte stream instead of packets; the transport layer allows for the transmission of byte-orientated data stream if required.

10. Transport layer is which layer in OSI model?
a) Fourth layer
b) Third layer
c) Second layer
d) Fifth layer

Answer: a
Clarification: The transport layer is the fourth layer from the bottom in the OSI reference model. It is responsible for message delivery from process.

11. Congestion control can control traffic entry into a telecommunications network, so to avoid _________
a) Congestive connection
b) Connection collapse
c) Congestive collapse
d) Collapse congestive

Answer: c
Clarification: Congestion control can control traffic entry into a telecommunications network, so to avoid Congestive collapse by attempting to avoid oversubscription of any of the processing or link capabilities of the intermediate nodes.

12. FCP stands for _________
a) Fiber Channel Protocol
b) Field Channel Protocol
c) Fast Channel Protocol
d) Fiber Carrying Protocol

Answer: a
Clarification: Fiber Channel Protocol is the SCSI interface protocol utilizing an underlying Fiber channel connection.

13. UDP packets are called as _________
a) Segments
b) Checksum
c) Frames
d) Datagrams

Answer: d
Clarification: UDP is a very simple protocol, and does not provide virtual circuits, nor reliable communication, deleting these functions to the application program. UDP packets are called datagrams, rather than segments.

14. _________ does not provide reliable end to end communication.
a) TCP
b) UDP
c) Both TCP and UDP
d) Neither TCP nor UDP

Answer: b
Clarification: TCP, not UDP, provides reliable end to end communication, i.e. error recovery by means of error detecting code and automatic repeat request protocol.

15. ARQ stands for __________
a) Automatic Repeat Request
b) Automatic Request Repeat
c) Application Repeat Request
d) Application Request Repeat

Answer: a
Clarification: TCP, not UDP, provide end to end communication, i.e. error recovery by means of error detecting code and automatic repeat request protocol. The ARQ protocol also provides flow control, which may be combined with congestion avoidance.

250+ TOP MCQs on Publishing Data to the Cloud with Dweepy and Answers

IOT MCQs focuses on “Publishing Data to the Cloud with Dweepy”.

1. Dweet.io is used for __________
a) Sharing data
b) Storage
c) Publishing data
d) Alerting devices

Answer: c
Clarification: dweet.io is used to publish the data retrieved from the sensors and make it available to different computers and devices all over the world.

2. What utility of dweet.io allows publishing data?
a) Data sharing
b) Publishing data
c) Storage
d) Alerting devices

Answer: a
Clarification: The dweet.io data sharing utility allows us to easily publish data or messages and alerts from IoT devices and then use other devices to subscribe to this data.

3. dweet.io is similar as __________
a) GIUD
b) Insta
c) Web api
d) Twitter

Answer: d
Clarification: dweet.io data sharing utility defines itself as something similar to twitter for social machines.

4. dweet.io provides __________ to send data from IoT devices.
a) JSON
b) HTTP
c) Web API
d) POST HTTP

Answer: c
Clarification: The dweet.io data sharing utility provides we api that we can send data from our IoT device, known as thing in dweet.io documentation.

5. GUID full form is ___________
a) Global Unique Identifier
b) Global User Identifier
c) Gradual User Identifier
d) Gradual Unique Identifier

Answer: a
Clarification: We have to choose a unique name for our thing. It is convenient to combine a string with a GUID(Global Unique Identifier).

6. The processing of publishing data is called as __________
a) Yocto
b) Thing
c) Dweepy
d) Dweeting

Answer: d
Clarification: Once we have chosen a unique for one thing, we can start publishing data, a process known as Dweeting.

7. Dweepy is a simple python client for dweet.io.
a) False
b) True

Answer: b
Clarification: Dweepy is a simple python client for dweet.io that allows us to easily publish data to dweet.io with python.

8. Dictionary here define what?
a) Key-value pairs
b) JASON
c) dweet.io
d) Yocto

Answer: a
Clarification: The dictionary defines the key value pairs that we want to send as JASON data to dweet.io for our thing. The keys may be the values what we want to know like, temperature, humidity etc.

9. The visual view displays what?
a) Pie graph
b) Bar graph
c) Line graph
d) Histograms

Answer: c
Clarification: The visual view displays line graph of whatever we want the information that is getting from the sensors. Examples are temperature and humidity values.

10. ________ Command is used to retrieve the latest dweet made for our thing.
a) HTTP
b) HTTPie
c) cURL
d) RESTful API

Answer: b
Clarification: HTTPie command in any computer or device to retrive the latest dweet made for our thing.

250+ TOP MCQs on Designing for Emerging Technology and Answers

IOT Multiple Choice Questions on “Designing for Emerging Technology”.

1. IIoT stands for __________
a) Industrial Internet of Things
b) Internet Internet of Things
c) Intelligence Internet of Things
d) Internal Internet of Things

Answer: a
Clarification: Industrial IoT is the subset of IoT that associates itself with connected manufacturing operations to design and craft products and services.

2. IIoT is sophisticated.
a) True
b) False

Answer: a
Clarification: Using IIoT, the previous labor intensive, time consuming technique can be substituted with vibrant, sophisticated, and automated mechanisms.

3. What does design provide?
a) Technology
b) Ecosystem
c) Technology and ecosystem
d) Digital revolution

Answer: c
Clarification: Design not only provides the framework for how technology works and how it’s used but also places it in a broader context that includes the total ecosystem with which it interacts and the possibility of unintended consequences.

4. Which possibility ensures load balancing and peak levelling of energy consumption?
a) Transportation and logistics
b) Energy and utilities
c) Automotive
d) Connected supply chain

Answer: b
Clarification: Energy and utilities: A network of smart grids, smart meters and devices continuously communicate with each other to ensure load balancing and peak levelling of energy consumption, down to the device level.

5. Which possibility automatically communicates with other vehicles?
a) Transportation and logistics
b) Energy and utilities
c) Automotive
d) Connected supply chain

Answer: c
Clarification: Automotive: Within the automotive space, the connected car concept is a game changer. New models continuously generate data when in operation.

6. Which possibility connects the production line to suppliers?
a) Transportation and logistics
b) Energy and utilities
c) Automotive
d) Connected supply chain

Answer: d
Clarification: Connected supply chain: By connecting the production line to suppliers, all stakeholders can understand interdependencies, the flow of material and process cycle times.

7. Which possibility provides inter connectivity between shop floor and top floor?
a) Transportation and logistics
b) Energy and utilities
c) Plant control flow operation
d) Connected supply chain

Answer: c
Clarification: Plant control flow operation: The IoT data network provides inter connectivity between shop floor and top floor, which enables the automation of specific process and reduces the human intervention required to address issues.

8. Which possibility is the highest contributor to cost overhead for manufacturing facilities?
a) Transportation and logistics
b) Energy and utilities
c) Plant control flow operation
d) Energy management and resource optimization

Answer: d
Clarification: Energy management and resource optimization: Energy is among the highest contributor to cost overhead for manufacturing facilities.