Pages

This blog is under construction

Thursday, November 14, 2019

IoT Questionnaire

61) ISR in Arduino stands for:
a. Interrupt service routine
b. Information service route
c. Interrupt service route
d. Information service router

62) Unique identification codes associated with device interoperability are:
a. Electronic Product Code (EPC)
b. Universal Product Code (UPC)
c. Uniform Resource Identifier (URI)
d. All of these

63)The function pinmode() in Arduino programming is used to:
a.   Change the on /off  mode of a pin 
b. Change the input/output mode of a pin
c.Change digital/analog mode of a pin
d. None of these 

64) What is the function for reading humidity from DHT sensor from Arduino?
a.dht.readHumidity()
b.dht.readTemperature()
c.dht.begin()
d.dht(pin,DHT22)

65) Arduino UNO supports output supply voltage of:
a. 5V
b. 3.3 V 
c. 9 V
d. 5V, 3.3V 

66) Which is the following is not an Actuator?
a. Servo motor
b. Stepper motor 
c. DHT
d. Relay

a,b,d are all actuators. They activate upon receiving electric input. Only c is a sensor.

67) The code written in Arduino IDE is referred to as:
a. Script 
b. Block 
c. Sketch 
d. Arduino Script  

68) Some of the basic ready-to-use sample examples available in which of the following menu in an Arduino IDE?
a. File->Open ->Examples->select any program
b. File->New->Create->Examples 
c. Examples ->Try->Choose
d. File-> Examples ->Select any program

69) The interoperability between devices and device users in terms of syntax is termed as:
a. Syntactic interoperability
b. Synthetic interoperability
c. Both a and b
d. None of these

70) What is the servo library command to move the shaft of servo motor back and forth?
a. Knob()
b. Sweep()
c.write()
d. detach()

71) void Loop(){
      value=analogRead(LDR);
      if(value>1000){
      Serial.println(value);
        }
            delay(100);
       }

a. prints the value from sensor to console every 1000 milliseconds
b. prints the value from the sensor to console every 100 milliseconds
c. prints the value from the sensor to console if it is more than 1000, every 100 milliseconds
d. prints the value from the sensor to console if is delayed by 1000 seconds.

72) why interoperability is required in Internet of Things?
a. Heterogeneous wireless communication protocols
b.Different programming languages 
c. Different control models
d. All of the above 

73) Which of the following is not a valid arithmetic operator in Arduino?
a. *
b. x
c. +
d. -

74) The function delay(xx) in Arduino programming counts the values of delay in:
a. Seconds
b. Minutes
c. Milliseconds
d. Hours

75) What kind pin of Arduino is used to give command to Servo motor?
a. Analog pin
b. Digital pin
c. Any one of (a) and (b)
d None of these 

76) What are the types of GPIO pin modes in Raspberry pi 2/3?
a. Board.
b. BCM.
c. Both a and b.
d. None of these

raspberry pi 2 and 3 supports only two pin modes – Board and BCM (Broadcom SOC channel). The pin configuration changes according to these modes.

78) Which of these is a datatype in Python?
a. Dictionary
b. Float
c. Tuples
d. All of these

79) The following python snippet does the following task:
file=open(‘data.txt’, ‘r’)
a. Opens a file (data.txt) in write mode
b. Opens a file (data.txt) in read mode
c. Opens a file (data.txt) in append mode
d. None of these

80) The output of the following code snippet is (consider approximate value):
from math import pi
print (pi)
a. 3.14
b. 2.73
c. pi
d. 9.8

81) The following python snippet does the following task:
file=open(‘data.txt’, ‘r+’)
a. Opens a file (data.txt) in write mode
b. Opens a file (data.txt) in read mode
c. Opens a file (data.txt) in append mode
d. Both a and b

82) Which interface is present in Raspberry Pi?
a. I2C
b. SPI
c. UART
d. All

83) What is the functionality of the following python code?
Import time
i = 0;
function_a(k):
i+=k
time.sleep(5)
print i
function_a(1)
a. Prints 1 on the console after 5 seconds
b. Prints 5 on the console after 5 milliseconds
c. Prints 0 on the console after 5 seconds
d. Prints 5 on the console after 1 second.

84) IoT devices must have:
a. A USB port
b. A unique identification
c. Wired connectivity
d. All of the above

85)  Relay is a kind of:
a. Sensor
b. Actuator
c. Hub
d. Router

relays are activated by external electric signals and can be made to act as switches. Relays are actuators.

86) Which one is correct for the nested controlling statement in python?
a. elseif
b. elif
c. ifwhile
d. none

87) Which of the following is mutable object in python?
a. Tuple
b. Bool
c. Int
d. List
mutable object can be changed after it is created, and an immutable object can't. Objects of built-in types like (int, float, bool, str, tuple, unicode) are immutable. Objects of built-in types like (list, set, dict) are mutable

88) The Tx and Rx serial pins are assigned to which GPIO pins in Raspberry Pi 3?
a. GPIO 14 and 15 
b. GPIO 12 and 13
c. GPIO 3 and 4 
d. GPIO 1 and 2 

89) A raspberry pi has:
a. An inbuilt OS on the board itself.
b. An OS on a memory card.
c. Both a and b
d. None of these

the raspberry pi OS is hosted on an external memory card. There is no provision for an inbuilt memory on the raspberry pi as of now

90) Hardware PWM is available on which of the Raspberry Pi 3 pins?
a. GPIO 12 and 13
b. GPIO 18 and 19
c. Both a and b
d. None of these 

 Pulse Width Modulation (or PWM) is a technique for controlling power. We use it here to control the amount of power going to the motor and hence how fast it spins

92) A standard Raspberry Pi 3 has the following voltage pins:
a. 3.3 v only 
b. 3.3 v and GND 
c. 3. 3 v, 5 v and GND 
d. None of these 

93) Control message from a switch to the controller in SDN is termed as:
a. Flow-rule message
b. PACKET-IN message
c. Control message
d. Data message

94) Which one is an SDN controller:
a. POX
b. OpenDayLight
c. ONOS
d. All of the above

95) Which of the following libraries is generally used for plotting in Python?
a. Pythonplot
b. Matplotlib
c. Plotpython
d. Numpy

96) SDN decouples ________________ from the traditional devices:
a. Data Plane and Control Plane
b. Data Plane and Application Plane
c. Control Plane and Application Plane
d. None of the above


97) Application program interface (API) used between application and control planes is known as:
a. Northbound API
b. Eastbound API
c. Southbound API
d. Westbound API

98) In SDN-based sensor network, one can pursue:
a. Sensor management
b. Delay management
c. Sleep management
d. All of the above

99) Which of the following are the limitations of current networks:
a. Vendor-specific switches
b. OS-specific switch configuration
c. Unavailability of centralized control
d. All of the above

100) A typical socket program on raspberry pi using python:
a. Creates a two-way communication between two nodes in a network
b. Server performs the task/service requested by the client
c. Both a and b
d. None of these

101) The grid() function in Python is typically associated with the Matplotlib library, and used for:
a. Enabling or disabling axis grids during plot
b. Divides a matrix into grids
c. Both a and b
d. None of the above

102) In Python based socket programming, which of these is/are represent a socket type?
a. AF_UNIX
b. AF_INET
c. SOCK_STREAM
d. SOCK_DATA

103) Which of the following statement is TRUE?
a. SDN is OpenFlow
b. SDN is a concept
c. For SDN is dependent on MAC OS
d. None of the above is true

104) The bind() function in Python socket programming is used for:
a.specify the port for service on the specified host 
b. Read data from the socket 
c. Send data to the socket 
d. Initiate the connection 

105) An SDN Controller can be placed based on:
a. Hierarchical manner
b. Ring topology
c. Mesh topology
d. All of the above

106) The basic SDN concept involves:
a. Separate control logic from hardware switches
b. Define the control logic in a centralized manner
c. Control the entire network including individual switches
d. All of the above

107) Arrange the following events sequentially (starting from the first step to the last) for sending data from client to server using sockets and saving it?
A. Create a client and server
B. Establish connection between the two
C. Send data from the client to the server
D. Save the data in a file
a. A-B-C-D
b. A-C-D-B
c. C-B-D-A
d. None of the sequences are true

108) The major difference between Cluster and Grid Computing is:
a. Cluster Computing supports homogeneous and Grid Computing supports heterogeneous computing nodes
b. Grid Computing supports homogeneous and Cluster Computing supports heterogeneous computing nodes
c. Both are same
d. None of the above

109) Pre-configure facility for allocation of virtualized resources comes under
a. Availability and reliability
b. Scalability and elasticity
c. Manageability and interoperability
d. Measured Services

110) Which of the following is not used for Database-as-a-service?
a. ClearDB
b. DatabaseHome
c. Database.com
d. MicrosoftAzure/SQLDatabase 

111) In which of the following cloud deployment model is owned by an organization and offers the cloud service?
a. Private Cloud
b. Public Cloud
c. Hybrid Cloud
d. None of the above

112) Access control layers in cloud include
a. Cloud access
b. Server access
c. Service access
d. All the above

113) Which of the following is an example of Software-as-a-Service (SaaS) in cloud computing?
a. Google App
b. Windows Azure
c. GoGrid
d. Rackspace Cloud Servers

114) Cloud simulation tools provide
a. Pre-deployment tests of services
b. Evaluation of protocols
c. Controlled environment
d. All of the above


115) Which of the following is not a cloud simulator?
a. CloudSim
b. NS-3
c. DCSim
d. GroudSim

116) Which of the following service model of cloud computing is an application middleware offered as a service to developers?
a. IaaS
b. PaaS
c. SaaS
d. None of the above

117) GreenCloud is
a. capable of monitoring the energy consumption of servers
b. capable of providing the SaaS only
c. a commercial cloud platform
d. oldest cloud platform

118) From the below given options, which is not a characteristic of cloud computing?
a. Low management effort
b. Low level generalization of computation
c. On-demand solutions
d. Configurable computing resources

119) Broad network access in cloud deals with
a. Dynamic allocation for scale out
b. Recorded resource usage
c. Availability of cloud resources over the network
d. All of the above

120) The top most layer of CloudSim architecture
a. enable modeling and simulation
b. manages the clock
c. provide cloud environment
d. presents different machines and application specifications

121) Which of the following is a feature of the Amazon EC2?
a. Firewall rules
b. Elastic IP addresses
c. Virtual private clouds
d. All of the above

122) The disadvantage(s) of private cloud is/are:
a. Total control over the system and data
b. Regular maintenance
c. Minimum security concerns
d. All of the above

NEXT>>

1 comment: