KERALA UNIVERSITY OF DIGITAL SCIENCES,
INNOVATION AND TECHNOLOGY
END SEMESTER EXAMINATION
SCHOOL OF ELECTRONIC SYSTEMS AND AUTOMATION
YEAR 2024, JANUARY
COURSE NAME: PROGRAMMING IN PYTHON
COURSE CODE: M3110030
COURSE LEVEL: 300
Reg No: TOTAL DURATION: 3 hours
TOTAL MARKS: 100
INSTRUCTIONS TO STUDENTS
1. Attempt all questions.
2. Draw neat diagrams wherever applicable.
FORMULA, CHEAT SHEETS AND HINTS
Students can use books and materials stored on desktops for reference without
accessing the internet or any artificial intelligence tools.
*************************
QUESTIONS
Section-A FOUNDATIONAL KNOWLEDGE ON THE SUBJECT (30%)
1. (a) Write a Python program to generate numbers with Gaussian distribution and plot the
histogram.
(b) Solve the following linear system using the Python program-
x + 2y - 3z = -3; 2x - 5y + 4z = 13; 5x + 4y - z = 5
(5+10=15 Marks)
2. Demonstrate the following task using Python programming- read the Misc image from the
SciPy library and convert it into a grayscale image. Now, apply the Sobel mask in different
directions and show individual and combined edges.
(15 Marks)
Section-B CONCEPTUAL UNDERSTANDING ON THE SUBJECT (50%)
3. (a) Analyse the possibility of MicroPython execution on any microcontroller. Provide
justification to support your response.
(b) Examine the possibility of standard Python libraries being used with MicroPython.
Provide justification to support your response.
(c) Demonstrate different steps of flashing MicroPython firmware onto an ESP32.
(5+5+10=20 Marks)
4. (a) Write a program using MicroPython to enable the ESP32/ ESP8266 Wi-Fi, scan Wi-Fi
networks, display the list of available networks and demonstrate the working model.
(30 Marks)
Section-C CRITICAL THINKING (20%)
5. Analyse and explain the various stages involved in debugging a MicroPython programming
with ESP8266. (20 Marks)
***********END OF EXAM**************