Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 3

Bachelor of Computer Application (BCA) Examination,

December 2005
ADVANCED PROGRAMMING IN C ON LINUX
Duration : 3 Hours Max. Marks 100
Min. Pass Marks 40
funsZ’k %
1. iz’ui= ik¡p bdkb;ksa esa foHkkftr gSaA izR;sd bdkbZ esa vkUrfjd fodYi fn;k x;k gSA
2. izR;sd bdkbZ ls ,d iz’u dk mÙkj nhft,A bl izdkj dqy ik¡p iz’uksa ds mÙkj nhft,A
3. lHkh iz’uksa ds fy, leku vad fu;r gSaA
4. tgk¡ vko’;drk gks ogk¡ mi;qDr MkVk ekuk tk ldrk gSA
5. vuqokn esa folaxfr gksus ij vaxzsth Lo:i dks lgh ekuk tk,A
6. iz’ui= ds fo:) vkifÙk] ;fn dksbZ gks rks] iz’ui= gks tkus ds i’pkr~~ foHkkxk/;{k@izHkkjh
v/;;u laLFk ds ek/;e ls izLrqr dh tk,A iz’ui= dk cfg"dkj fdlh Hkh ifjfLFkfr esa ijh{kkfFkZ;ksa
}kjk u fd;k tk,A

Instructions:
1. The Question Paper is divided in five units. Each unit carries an internal choice.
2. Attempt one question from each unit. Thus attempt five questions in all.
3. All questions carry equal marks.
4. Assume suitable data wherever necessary.
5. English version should be deemed to be correct in case of any anomaly in translation.
6. Protest against question paper, if any, should be lodged after paper through Head of
Department/Study Institute. No boycott of paper should be made under any circumstances by
the examinees.

bdkbZ I Unit I
1. ¼v½ ykbusDl flLVe dh eq[; fo’ks"krk,a ,oa ykHkksa dks le>kb;sA
Describe the basic features and advantages of Linux system. 10
¼c½ ykbusDl Qkby flLVe esa fuEufyf[kr dks le>kb;s%
Explain the following in Linux file system:
(i) Inode Table (ii) Boot Block (iii) Super Block (iv) Data Block 10
2. ¼v½ fuEufyf[kr ij laf{kIr fVIi.kh fyf[k,%
Write short notes on the following:
(i) Vi Editor (ii) Priority of Process
(iii) Background Processing (iv) Process Killing. 10
¼c½ fuEufyf[kr ds fy, ykbusDl dek.M~l fyf[k,%
(i) fMLd esa fjDr LFkku irk djus ds fy,A
(ii) orZeku esa dk;Zjr ;wtj dh la[;k iznf’kZr djus ds fy,A
(iii) nks izkslsl dks Pipe dh lgk;rk ls tksM+us ds fy,A
(iv) “.exe” ,DlVsa’ku okyh lHkh Qkbyksa dks iznf’kZr djus ds fy,A
(v) fdlh Qkby esa dksbZ 'kCn <wa<us ds fy,A
Write the Linux Commands for following:
(i) To find out the disk free space.
(ii) Display number of users logged on.
(iii) To connect two process with pipes.
(iv) Display all files with extension “.exe”.
(v) To find a word in a file. 10

bdkbZ II Unit II
3. ¼v½ LVªdpj ,oa IokbaVlZ dk iz;ksx djrs gq, fyad fyLV esa uksM tksM+us ds fy,
QaD’ku fyf[k,A
Write a function to insert a node in the link using structures and pointers. 10
¼c½ fuEufyf[kr QaD’ku dh mi;ksfxrk mnkgj.k lfgr crkb;s%
Explain the use of the following functions with examples:
(i) Malloc ( ) (ii) Realloc ( )
(iii) Free ( ) (iv) Sizeof ( ) 10
4. ¼v½ Mk;ukfed ,oa LVsfVd eseksjh ,yksds’ku esa mi;qDr mnkgj.k lfgr vUrj Li"V
dhft;sA
Differentiate between memory allocation and static memory allocation with suitable
example. 10
¼c½ IokbUVj dk iz;ksx djrs gq, nks (3x3) esfVªDl ds eYVhIyhds’ku gsrq ‘C’ izksxzke
fyf[k,A
Write a C Program to Multiply two (3x3) matrix using pointers. 10

bdkbZ III Unit III


5. ¼v½ ,d Text Qkby dks i<+dj nwljh text dkih djus ds fy, ‘C’ izksxzke fyf[k,A
Write a ‘C’ Program that read a text file and copy text into another file. 10
¼c½ LVªhEl D;k gSa \ ‘C’ ds LVs.MMZ LVªhEl crkb;sA flushing a stream dks Hkh
lr>kb;sA
What are streams? What are the standard streams in C? Also explain flushing a stream.
6. ¼v½ fuEufyf[kr ij laf{kIr fVIi.kh fyf[k,%
Write a short notes on the following:
(i) Command Line Arguments (ii) Formatted I/O Stream Function. 10
¼c½ ,d izksxzke fyf[k, tks ,d File ds Upper Case Letters dks Lower Case ,oa Lower
Case dks Upper Case esa ifjofrZr djrk gks (File esa gh)A
Write a Program to change all upper case to lower case and vice versa. Modification
should apply within file. 10

bdkbZ IV Unit IV
7. ¼v½ ‘#include’ Preprocessor directive dk D;k mn~ns’; gS \ ;wtj Lo;a dh gsMj Qkby fdl
izdkj cuk ldrk gSa \ mnkgj.k }kjk le>kb;s
¼c½ esØks D;k gS \ esØks dks arguments ds lkFk dSls define djrs gSa \ mnkgj.k lfgr
le>kb;sA
What are Macros? How Macro is defined with arguments? Give an example. 10
8. ¼v½ mnkgj.k lfgr fuEufyf[kr dks le>kb;s%
Explain the following with example:
(i) # pragma (ii) # undef 10
¼c½ izhizkslslj vkijsVlZ dks mnkgj.k lfgr le>kb;sA
Describe preprocessor operators with examples. 10

bdkbZ V Unit V
9. ¼v½ ROM BIOS ROUTINE esa arguments Hkstus dh izfØ;k dks foLrkj ls le>kb;sA
Explain method to pass arguments to ROM BIOS ROUTINE. 10
¼c½ xzkfQDl esa iz;qDr fdUgha ikap QaD’ku dks le>kb;sA
Describe five functions used in graphics. 10
10. ¼v½ ‘C’ esa xzkfQDl eksM fdl izdkj lfØ; fd;k tk ldrk gSa \ int 86( ) dks le>kb;sA
Explain graphics mode can be activated in ‘C’? Describe int 86 ( ). 10
¼c½ fuEufyf[kr ij laf{kIr fVIi.kh fyf[k,%
Write short notes on the following:
(i) Extended Keyboards Code (ii) Bitwise Operators. 10

You might also like