Is used to create an object a class b constructor c

This preview shows page 2 - 4 out of 4 pages.

python Q&A_final.doc

7 .   _ ____ is used to create an object .
a ) class
b ) constructor
c ) User- defined functions
d) In - built functions
Answer:  b )   constructor
8 .   What is the output of the below program ? x = 50 def func ( x ) : print ( 'x is ' , x ) x = 2 print ( ' Changed local x to ' , x ) func ( x ) print ( 'x is now ' , x )
Get answer to your question and much more
9 .   Which of the following operator in python evaluates to true if it does not finds a variable in the specified sequence and false otherwise ?
Get answer to your question and much more
10 .   Raspberry - Pi is a ________________
Get answer to your question and much more
11 .   What is the Size of RAM for Raspberry - Pi Model 3
A ) 256 MB
B ) 512 KB
C ) 512 MB
D ) 1 GB
Answer:  D )   1 GB
12 .   How to access IO Pins as per GPIO Configure through Python
Get answer to your question and much more
13 .   Library used for accessing Raspberry pi GPIO
Get answer to your question and much more
14 .   How to assign input pin for raspberry pi using python ?
Get answer to your question and much more
15 .   How many pins are there in ultrasonic sensor HC - SR04 to interface with microcontroller ?
A ) 3
B ) 4
C ) 5
D ) 2
16 .   What is the range of IPv6 addresses ?
Get answer to your question and much more
17 .   MQTT stands for _ _ _ __________
Get answer to your question and much more
18 .   MQTT is _________ protocol .
Get answer to your question and much more
19 .   Which protocol is lightweight ?
a ) MQTT
b) HTTP
20 .   What is NodeMCU Module ?
Get answer to your question and much more
21 .   Standard ports of MQTT are __ ________
Get answer to your question and much more
22 .   In a Publish / Subscribe model publish does n’t know who is subscribing .
Get answer to your question and much more
23 .   An MQTT broker can use any port , but by default it uses port 1883 ?
a . True
b. False
24 .   MQTT transmits data to and from a broker in which format .
Get answer to your question and much more
25 .   Which not one of the features of IoT ?
Get answer to your question and much more
26 .   How many digital I/O pins are there in arduino Uno ?
Get answer to your question and much more
7. _____ is used to create an object. a) class b) constructor c) User-defined functions d) In-built functions Answer: b
8. What is the output of the below program? x = 50 def func(x): print('x is', x) x = 2 print('Changed local x to', x) func(x) print('x is now', x)
9. Which of the following operator in python evaluates to true if it does not finds a variable in the specified sequence and false otherwise?
10. Raspberry-Pi is a ________________
11. What is the Size of RAM for Raspberry-Pi Model 3 A) 256 MB B) 512 KB C) 512 MB D) 1 GB
Answer: D
12. How to access IO Pins as per GPIO Configure through Python
13. Library used for accessing Raspberry pi GPIO
14. How to assign input pin for raspberry pi using python?

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture