Model Questions

CONTENTS

1. C Programming
2. Micro controller & embedded Systems
 
B.Sc Electronics II Internal Examination March. 2013
IV SEMESTER 
C Programming
Max Weight: 10

PART A

1.      How many values a function can return to the calling function
a) One value   b) Two values c) Any number of values d) zero value
2. When an array is passed to a function?
            a) The value of array elements passed to the function b) arguments are passed by reference 
            c) both a  and b d) None of these.
3. By default, the return type of value from a function is -----
            a) float b) char c) int d) void
4. Which options will return the address of a variable, say k ?
            a) ß k b) *k c) k d) &k                                                                                (weight: 1)

PART B
Answer any Three

5. Explain what is a function? What are the advantages of writing functions in the program?
6. What is Prototyping? Why it is necessary?
7. Distinguish between formal and actual arguments?
8. Explain what are pointers?
(weight: 1x 3)

PART C
Answer any One

12. What is user defined functions and built-in functions. Give examples?
13. Differentiate between Structures and Unions?
(weight: 2 x 1)
PART D
Answer any One

14. Write the syntax of a user defined function in C? Give an example.
15. Explain the different types of function call? Give suitable examples.
(weight: 4 x 1)



MICROCONTROLLER AND EMBEDDED SYSTEMS JUL.2012
V Semester B. Sc (Electronics) I INTERNAL

PART A
1.     How many pins in 8051 microcontroller is set aside for the four ports?
a)      32 b) 24 c) 40 d) 36
2.     In additional to the use as universal input/output, which Port has alternate function?
a)      Port 3 b) Port 2 c) Port 1 d) Port 0
3.     The size of 8051 internal RAM memory is?
a) 256B                 b) 128B                 c) 2KB    d) 64KB
4.     Which of the following is also known as Flag Register?
a) PSW  b) PC     c) IE        d) SP
5.     Stack Pointer (SP) points to ---------- location of the Stack.
6.     --------------- Register in SFR is used for assigning interrupt priority.
7.     ------------ And ---------------- are the two internal interrupts in 8051.
8.     ------------------- Instruction is an unconditional jump instruction supported by 8051.

PART B
(Answer any one)
9.     What are addressing modes? List the addressing modes in 8051?
10.                        Explain what is meant by embedded systems?
11.                         Compare microcontroller vs. microprocessor?

PART C
(Answer any one)
12.                         Explain the 8051 memory map?
13.                         Draw and explain the block diagram of 8051?

PART D
(Answer any one)
14.                         What are logical instructions? Explain any four?
15.                         Briefly explain what are SFRs?

II. Micro controller & embedded Systems


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.