0 ratings0% found this document useful (0 votes) 51 views3 pagesSoftware For Embedded System 2022
Software for embedded systems
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
Reg. No. : [
Question Paper Code : 12135
MEM.
“Tech. DEGREE EXAMINATIONS, JANUARY 2022.
First Semester
Embedded System Technologies
ET 4102 - SOFTWARE FOR EMBEDDED SYSTEMS
(Regulations 2021)
Ti :
‘ime : Three hours Maximum : 100 marks
Answer ALL questions.
PART A — (10 x 2= 20 marks)
Identify the errors in the following statements and correct it
(a) _ printf(‘the value of ¢ is %d\n", &num);
(b) _if(a>5); {printf(‘a is greater than 5\n");}
2, Under which situation sentinel controlled loop is used?
3, State the merits and demerits of object oriented programming,
4... How the problem in the statement while (ewitch_pin = = 0) is rectified?
5... The ace compiling options for objective C are given below :
~ fgnu — runtime
~ {no — nil - receivers.
Write down the function of it?
6. What is purpose of GNU binary utilities?
7, Show the result of the following operations
>>>p <<2
>>>q= 80
poog >> 2
>>> pla10.
i.
12.
13.
Given the following code, oe iit
>>> vegetables = [“tomato”, “carrot”, “beans”, “cauliflower”, “drums!
>>> tuple—
= (1, 0,4, 6) -
>>> tuple — 2 = (6, 6,7, 9)
show the output of the following
>>> tuple — 1+ tuple - 2
>>> vegetables (1:4: 2]
Differentiate between module and package in python?
Using the imaging library write a python code to convert a color image to
grayscale image.
@)
)
(@)
(b)
(@)
PART B — (6 x 13 = 65 marks)
(@ Explain the C development environment with the help of a
diagram.
®
() With the help of an example explain about case and do while
statements. ©)
Or
(@ Write a function to find the minimum of three numbers x, y and z.
‘How functions are called by value and by references? ©
(i) With an example show how manipulations are done in two
dimensional array. (D
@ With an example explain about project header and port header? (7)
Gi)
How to create hardware delays using tim
ys usi i
Raplsta, g timers and interrupt?
Or
With suitable example explain the creation of loop time out and
ai
th f
a3)
(Discuss in detail about debugging with GDB. mM
(i) Explain briefly about the compilation stages. ()
Or
2
1218514.
15.
16.
b)
(@)
()
(a)
(b)
(a)
()
Describe in " %
detail about
the i
rn following,
@)
Features of GCO,
GNU conf ©)
‘gure and build system. a)
Discuss abo
s ut indentati
handling using ey Peon type conversion functions and exception
-€xcept.... finally statements in python. (a3)
Or
With an
os example show how functions, dictionaries, tuples, if-else
s are implemented in python. as)
Create modules and
x packages in python for a particular example. Also
discuss about GUI Libraries and networking libraries for python. (13)
Or
Describe in detail about imaging libraries and numerical plotting library
of python. (a3)
PART C — (1x 16 = 15 marks)
‘Write a structured code to count the number of goats passing a milk
parlour using embedded C. (15)
Or
Write a program to assign seats on each flight of the airlines only plane
(capacity 20 seats)
‘Your program should display the followings menu alternatives.
Please type 1 for “Business class”
Please type 2 for “Beonomy”
rogram should assign a seat in business
[£ the persons type 1, then your Prog 2
class (seats 1— 10).
», then your program should assign a seat in economy
If the person tyPeS 2)" your program should print a boarding pass
rational (seats © — 71 umber and whether it is in the business class or
agicating persons 6°86 Mould never assign a seat that has alveady
2, YoU Poe class i full, your program should ask the
cennoosigned. 1 PURIST tobe placed in economy class Tf yes, do
ieee at
Jerson if itis acme if no, then print the manage “Next flight will
appropriate ass (as)
Jeave in 3 hours
Be
3 12185