INTERNET OF THINGS WEEK 6 QUIZ SOLUTIONS NPTEL JAN 2022....




      1) What is the output of the following pieces of python code?

            x = [ 32, 'u' , 'i', 8, '34']

            x = [0:]

            print(x)

        solution) d) [ 32, 'u' , 'i', 8, '34']


    2) How many GPIO (General Purpose Input output pins) pins are there in Raspberry Pi 4?

    solution) c) 40



    3) Which of the following is NOT an example of python IDE?

    solution) a) Sublime text


    4) What is the value of 'x' in the following expression in python programming?

        x=3^3

    solution) a)  0


    5) In Python programming which of the following is a null statement?

    solution) a) Pass


    6) Which of the following  is an unordered data type in python?

    solution) b) Dictionary


    7) What is the value of 'x' in the following expression in python programming?

                 x= 2**3^3**1

    solution) a) 11


    8) Which of the following symbol is used to comment out multiple lines at once in python?

    solution) d) None of these


    9) With on-board Raspberry Pi camera, which one of the following is not correct for image related         operations in python?

    solution) d) All of these


    10)Which of the following bit processor is used in Raspberry Pi Zero 2 W?

    solution) a) 64


    11)Which of the following shortcut exits the nano editor?

    solution) c) Ctrl+X


    12) Which of the following syntax is correct for networking in python?

    solution) b) s=socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)


    13)Which of the following is correct to open text file for write mode?

    solution) a) open('file.txt', 'w') 


    14) Which of the following is an immutable data type in python?

    solution) d) All of these


    15) Does python follow rigid identation?

    solution) a) yes






Post a Comment

0 Comments