0% found this document useful (0 votes)
482 views15 pages

Desd Edd QP

1. The document provides instructions to candidates taking an exam for an Embedded Systems Programming course. It details rules like not closing the browser, marking attendance, duration of sections, and prohibited items. It explains the exam interface and functions of buttons. Calculators, phones and other electronics are banned. 2. Each section contains 40 multiple choice questions worth +1 mark for correct answers and 0 for wrong/unattempted answers. Candidates are given one hour per section and must notify invigilators of any issues. 3. Rough work sheets will be provided and must be returned before leaving along with recording name, hall ticket and session ID. Malpractice will lead to disqualification.

Uploaded by

desdcdac2023
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
482 views15 pages

Desd Edd QP

1. The document provides instructions to candidates taking an exam for an Embedded Systems Programming course. It details rules like not closing the browser, marking attendance, duration of sections, and prohibited items. It explains the exam interface and functions of buttons. Calculators, phones and other electronics are banned. 2. Each section contains 40 multiple choice questions worth +1 mark for correct answers and 0 for wrong/unattempted answers. Candidates are given one hour per section and must notify invigilators of any issues. 3. Rough work sheets will be provided and must be returned before leaving along with recording name, hall ticket and session ID. Malpractice will lead to disqualification.

Uploaded by

desdcdac2023
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Paper Code

CENTRE FOR DEVELOPMENT OF ADVANCED COMPUTING

E5 Common Course End Exam (CCEE) – August 2013

INSTRUCTIONS TO CANDIDATES

DESD-Embedded Systems Programming

Candidate should read the following instructions before attempting the question paper.

1. DO NOT CLOSE THE BROWSER ANYTIME DURING THE EXAM.

2. Candidate should check his/her name and extended enrollment Number (enrollment
number prefixed with 20) being displayed on the screen. In case of any discrepancy, it
should be reported to Invigilator immediately.

3. Candidate should ensure that he/she has marked attendance on the attendance sheet and
also ensure that session id has also been recorded. Any other session id which has not been
mentioned in the attendance sheet would not be considered and all responses on that
session id would be treated as null and void.

4. Do not start the exam (do not click Next button) before instructed to do so by the
Invigilator.

5. Every Section has 40 objective-type questions. Each objective-type question has four
choices of which only one is correct. Candidate should select the radio button, given below
the question, corresponding to his/her correct choice.

6. Marking scheme of CCEE is as follows:

a. +1 (plus one) marks for each correct answer.


b. 0 (zero) mark for each un-attempted/ wrong question.

7. Duration of each Section is ONE hour. No candidate will be allowed to leave the
examination hall before the completion of exam duration.

8. On clicking the Next button given at the bottom of the Instructions page, candidate will
be directed to the question display screen.

9. Candidate should note down the Session ID that is displayed on the question screen after
clicking on Next button.
Paper Code
CENTRE FOR DEVELOPMENT OF ADVANCED COMPUTING

E5 Common Course End Exam (CCEE) – August 2013


10. Once the exam is started:-

a. Candidate should not close the browser. In case the browser is closed accidentally,
it SHOULD BE reported to the Invigilator immediately.
b. Candidate should not open any other software application on the computer system.
c. Candidate should neither shut down the machine nor fiddle with allocated hardware
or software.
d. In case of any problem it should be reported to Invigilator.

11. Candidate can navigate through questions using scroll bar or directly through the question
number grid.

12. CCEE screen contains the following buttons with the below specified functionality:

Button Functionality

Examination This link will open the instructions for the exam. After reading the
Instruction instructions candidate has to click on Back button to move back to the
questions interface.

Mark for In case a candidate is not sure about the answer, then he/she can use this
Review Button to mark the question for a visit later. It will be shown with
a ? against the question (in the question number grid) if the question has
not been answered but has marked it for review. In case candidate has
answered the question and marked it for review, then √? will be displayed
against the question in the question number grid.

Clear Answer This button will clear the option marked and the question will be shown
as un-answered.

13. Each candidate will be provided one A4 size sheet for rough work. Candidates have to
record their Name, hall ticket number and session ID on the rough sheet. They have to
return the rough sheet to the Invigilator before leaving the exam hall.
14. Calculators, mobile phones, pagers and electronic gadgets in any form are not allowed to be
used in the Exam Hall.

15. Candidate will be disqualified if found indulging in any kind of malpractice.


Paper Code
CENTRE FOR DEVELOPMENT OF ADVANCED COMPUTING

E5 Common Course End Exam (CCEE) – August 2013


Date: 16-01-2014

Module Name: Embedded Systems Programming

1. For a device driver to access the I/O memory address it must be mapped to virtual address.
This can be done by using the function

A. ioremap();

B. io_map();

C. request_mem_region();

D. both (A) and (B)

2. The major number

A. used by kernel to determine which device is being referred to

B. can be used as an index into a local array of devices

C. identifies the driver associated with the device

D. all of the above

3. Device that can be accessed as a stream of bytes

A. character devices

B. block devices

C. network devices

D. none of these
Paper Code
CENTRE FOR DEVELOPMENT OF ADVANCED COMPUTING

E5 Common Course End Exam (CCEE) – August 2013


4. mknod is used for creating

A. character device file

B. block device file

C. FIFO

D. all of the above

5. Which mechanism is not used for delayed code execution?

A. timers

B. ioctl

C. workqueues

D. tasklets

6. In a kernel Makefile, the tag ’obj-m’ compiles the source code as

A. a dynamically loaded module

B. a system call

C. a statically built in module

D. the kernel core component

7. To which directory printk message goes?

A. /proc/messages

B. /var/log/messages

C. /proc/kall

D. /var/log/message
Paper Code
CENTRE FOR DEVELOPMENT OF ADVANCED COMPUTING

E5 Common Course End Exam (CCEE) – August 2013

8. Using which utility in Linux, will load the kernel module

A. insmod

B. rmmod

C. dmesg

D. load

9. Which of the following macros is used to pass an array as a parameter to the kernel module?

A. module_param_array (name, type, num, perm);

B. module_param(name, type, num, perm);

C. module_param_char[size](name, type, perm);

D. module_param[size](name, type, num, perm);

10. Which of the following is true for the 'dev_t' data type?

A. it is used to hold the driver name

B. it is used to hold the major-minor number

C. it holds the major-minor numbers and the driver name

D. none of the above

11. All I/O memory allocations are listed in

A. /proc/iomem

B. /proc/ioports

C. /proc/meminfo

D. /proc/mem
Paper Code
CENTRE FOR DEVELOPMENT OF ADVANCED COMPUTING

E5 Common Course End Exam (CCEE) – August 2013

12. Debugging kernel code can be done by

A. monitoring

B. printk message

C. gdb

D. all of the above

13. Module stacking means

A. a module will be using symbols exported by other module

B. a module loaded at run time

C. modules to which parameters are passed at insertion time

D. none of the above

14. The field in the file operation structure which is not an operation at all

A. ssize_t read();

B. loff_t *llseek();

C. struct module *owner;

D. int *ioctl();
Paper Code
CENTRE FOR DEVELOPMENT OF ADVANCED COMPUTING

E5 Common Course End Exam (CCEE) – August 2013


15. The function which is used to allocate and initialize a character device

A. int register_chrdev_region();

B. void chdev_init();

C. int register_chrdev_region();

D. int register_chrdev();

16. What is the preferred mechanism to dynamically find out the IRQ number of a device?

A. probing
This probe function starts this per-device initialization:
B. seeking
initializing hardware, allocating resources, and registering this
C. polling device with this kernel as a block or network device
D. masking

17. Which of the following should be avoided in the interrupt handlers?

A. calling wait_event/allocating memory

B. calling schedule

C. locking a semaphore

D. all of the above

18. Find the odd function out with reference to short delays inside the kernel

A. ndelay();

B. udelay();

C. mdelay();

D. pdelay();
Paper Code
CENTRE FOR DEVELOPMENT OF ADVANCED COMPUTING

E5 Common Course End Exam (CCEE) – August 2013

19. A character device driver is written to access the serial port of the PC. The driver requests a
device number from the kernel by calling the function 'alloc_chrdev_region'. The kernel
allocates the Major-Minor number combination of 253,0.

Using which utility can a user space application create a device node to access the driver?

Can two device nodes be created bearing the same major-minor number combination?

A. mknod, TRUE

B. mknod, FALSE

C. mkdev, TRUE

D. mkdev, FALSE

20. What will happen if the return a negative value from the module initialization function
(init_module)?

A. kernel crashes

B. error during compilation of the module

C. error while inserting the module

D. no problems will arise


Paper Code
CENTRE FOR DEVELOPMENT OF ADVANCED COMPUTING

E5 Common Course End Exam (CCEE) – August 2013


21. If a function or variable defined in one driver is to be shared with other drivers, which of the
following functions should be called?

A. module_param

B. EXPORT_SYMBOL()

C. module_param_novers

D. module_param_novers

22. If you export any symbol from your driver, if you want to see the exported symbols, which
file you need to refer ……………….

A. /proc/symbols

B. /proc/ksyms

C. /proc/kcallsyms

D. none of the above

23. In a module if its license is not explicitly specified its default license would be

A. GPL

B. GPLV2

C. Dual BSD/GPL

D. Proprietary

24. The devices that can host a filesystem

A. character device

B. block devices

C. network interfaces

D. none of the above


Paper Code
CENTRE FOR DEVELOPMENT OF ADVANCED COMPUTING

E5 Common Course End Exam (CCEE) – August 2013

25. The function which is used to access the i/o memory

A. outb

B. insb

C. insb

D. ioread8

26. For allocating big chunk of memory we use

A. malloc

B. lmalloc

C. get_free_page

D. none of these

27. Modules run in

A. user space

B. kernel space

C. anywhere

D. all of the above

28. SMP stands for

A. simple machine process

B. symmetric multiprocessor system

C. symmetric module system

D. none of the above


Paper Code
CENTRE FOR DEVELOPMENT OF ADVANCED COMPUTING

E5 Common Course End Exam (CCEE) – August 2013

29. ……………………..structure used by the kernel internally to represent files

A. mknode

B. inode

C. structdev

D. all of these

30. The function …………is used to copy a kernel data segment to user data segment

A. get_user

B. put_user
copy_to_user
C. write_to_user

D. copy

31. What is kernel module?

A. each piece of code that can be added to the kernel at run time

B. file used to talk to hardware

C. main kernel image that is built as a static image

D. none of these
Paper Code
CENTRE FOR DEVELOPMENT OF ADVANCED COMPUTING

E5 Common Course End Exam (CCEE) – August 2013


32. I/O Mapped Memory means

A. the I/O devices are mapped in the same Address Space thereby preventing memory
access to those regions

B. the same address may be used for both I/O as well as Memory

C. only one instruction is required to talk to the hardware

D. none of these

33. Barriers in device drivers are used to

A. tell the compiler to maintain order before and after the barrier

B. tell the compiler to maintain order only after the barrier

C. tell the compiler to ignore code around the barrier

D. tell the compiler to compiler with greatest optimzation

34. Which of the following functions is used for I/O port allocation?

A. request_region();

B. check_region();

C. register_io_region();

D. alloc_io_region();
Paper Code
CENTRE FOR DEVELOPMENT OF ADVANCED COMPUTING

E5 Common Course End Exam (CCEE) – August 2013


35. Find the odd option out with reference to f_flags in the file structure

A. O_RDONLY

B. O_NONBLOCK

C. O_SYNC

D. FMODE_READ

36. There is a driver which executes in the kernel. The driver implements the open, read, write
and close functions apart from module initialization and cleanup. In the user space, there are
number of read and write applications working on the driver. Every write should be signaled
by the read. In such scenarios, where should the function 'init_completion' be called?

A. in the init_module of the driver

B. in the open function implemented by the driver

C. does not have to be called. The kernel takes care of it

D. in the read function of the driver

37. In which method of a character driver should the functions 'cdev_init' and 'cdev_add' be
called? Choose the most appropriate answer?
int init_module(void)
{
int i, err;
A. module init function and module open function respectively err = register_chrdev_region(MKDEV
(MY_MAJOR, 0), MY_MAX_MINORS,"
my_device_driver");
B. both in module init function

C. both in open function cdev_init(&devs[i].cdev, &my_fops);


cdev_add(&devs[i].cdev,MKDEV
D. none of the above (MY_MAJOR, i), 1);

return 0;
}
Paper Code
CENTRE FOR DEVELOPMENT OF ADVANCED COMPUTING

E5 Common Course End Exam (CCEE) – August 2013


38. The loglevel strings in printk are defined in the header file

A. <linux/module.h>

B. <linux/init.h>

C. <linux/kernel.h>

D. <linux/fs.h>

39. Block size in block devices is of

A. 1MB

B. 512 bytes

C. 256 bytes

D. 8 bits

40. PCI peripheral are defined by

A. bus number

B. device number

C. function number

D. all
Paper Code
CENTRE FOR DEVELOPMENT OF ADVANCED COMPUTING

E5 Common Course End Exam (CCEE) – August 2013

You might also like