How To Exam?

a knowledge trading engine...


Uttar Pradesh Technical University (UPTU) 2009-1st Sem M.C.A --ester- Computer Concepts and Programming in C - Question Paper

Monday, 22 July 2013 05:00Web


MCA
(I sem) ODD semester theory exam
Computer Concepts and Programming in C

Printed Pages: 8    JVICA113

(Following Paper ID and Roll Nix to be filled in jour Answer Book)

Roll No. [tT    6 1 M I a ? f


M.C.A

(SEM I) ODD SEMESTER THEORY EXAMINATION 2009-10 COMPUTER CONCEPTS \ND PROGRAMMING IN C

Time : j Honrs]


j Total Marks : ]()/)


Note : Question Paper carries three Sections. Read the

instructions carefully and answer accordingly.

SECTION* - A .

1 This question contains 20 objective type / 20x1=20 Matching / Fill in the blank / True - False type questions. Choose / matter / Fill / True or False correct answer.

(a)    Which of the following is an example of application software ?

(i)    Database Management System

(ii)    Language Translator

(iii)    Operating System

(iv)    Security Monitor

(b)    The tool used by the programmer to comment a source program to a machine object modulus is a

JJ-7303] I 111 llll II Hill UK III Ml III llll

[Contd...


(i)    Compiler

(ii)    Language Translator

(iii)    Linear

(iv)    Preprocessor.

(c)    The conversion specification that is used to record or write a short integer is

(i) %d

(ii) %f

(iii) %hd

(iv) %Lf

(d)    Which of the following is not a valid identifier in C ?

(i)    A3

(ii)    4A

(iii)    if

(iv) IF

(e)    Which of the following is not a unary expression

(i)    ++X

(ii)     X

(iii)    Sizeof (X)

(iv)    +5

(t) Match the following ;

(i)    Linux    (i) Single user Multitasking

(ii)    Window XP (ii) Multiuser multitasking

(iii)    DOS    (iii) single user single tasking

(iv)    Novel Network (iv) multiuser single tasking

U-7J03] ipilllllllinillljll 2    [Contd...

(g)    Which of the following is not a part of a function header 9

(i)    name

(ii)    parameter list

(iii)    return type

(iv)    title

(h)    What would be the output of following program ?

main ( )

{

int t = 2;

prentf ("d\n%d%d", ++i, ++i)

}

(i)    3 4

(ii)    4 3

(iii)    4 4

(iv)    Output may vary from computer to computer.

(i)    What error would the following function give on compilation ?

f (int a, int b)

f

\

int a; a = 20,

return a;

)

/

JJ-7303] III11| 11| ||; HI Mill 11| 3

j : - ; 3    J

(i)    Missing parentheses in return statement

(ii)    The function should be defined as int f (int a, int b)

(iii)    Redeclaration of a

(iv)    None of the above.

(j) What would be the output of the following program ?

main ()

i

char str[7]="strings";

printf ("%s". strfc

f

!

(i)    Error

(ii)    Strings

(iii)    Cannot predict

(iv)    None of these.

(k) In the following code :

# include (stdio h) main( )

{

FILE *fp;

fp=fopen ('trial", %"); f

fp points

(i)    The first character in the file.

(ii)    A structure that conditions a char pointer which points to the just character in the file.

(iii)    The name of the file

(iv)    None of the above.

(1) Which of the following is not unary expression

(i)    ++x

(ii)    sizeofi(x)

(iii)    +5

(iv)    x=4

(m) Which of the following is not part of a function header ?    t

(i)    name

(ii)    parameter list

(iii)    return type

(iv)    title.

(n) One example of external DOS command is

(n) Structure is__ data type in C.

(p) Compiler is a program that converts a high level language into low ievei language only (True / False).

(q) Associativity is a term related to operand. (True / False)

(r) Is function may have several declaration but only one definition. (True / False)

(s) j = i + + and i + + is a legal assignment

in C. (True / False)

(t) The expression on the RHS of 22 and 11 operator does not get evaluated if the LHS determines the output. (True / False).

SECTION - B

2 Attempt any three parts of the following : 10x3=30

I

(a)    (i) Define an operating system and explain

multitasking.

(ii) Convert the following as stated below

(1)    ,<11S.125)10 to ( )2

(2)    (1110011.101)2 to (    )10

(3)    <2110)10 to ( )g

(4)    (3075.06)g to (    )2

(5)    (5F&K4A3C)16 to ( )i0

(b)    (i) Explain the concept of structured

programming.

(ii) What are the various data types used in C language 9

(c)    Differentiate between user defined and library functions, with one example for each. Write C program for factorial evaluation.

JJ-730.'! mm* Mill 6    IConld...

(d) (i) Draw a flow chart for checking an integer for prime number and write algorithm.

(ii) What are the rules for naming identifiers in "C" ? W'hat do you understand from reserved Lay words ?

SECTION - C

Note : Attempt all questions :

3    Attempt any two parts of the following :

5x2=10


(a)    How does a if-then else structure differ from switch structure. Explain with example.

(b)    Write a C program to generate first n prime numbers.    *

(c)    Explain the following :

(1)    goto

(2)    break

(3)    continue

(4)    exit.

4    Attempt any two parts of the following ;

5x2-10


(a)    Explain difference between call by value and call by reference by suitable example.

(b)    Write a C program to find greatest common

divisor of 3 numbers nn2 and using user defined function gcd (n-p n2, ft3) .

fContd..


(c) Differentiate between local and glcfbal variables with appropriate examples.

<r'jJ

Attempt any two parts only :    

(a) What do you mean by an array ? In wnat way array is different from an ordinary variab9 W'rite a C program to find transpose ora    

(b)


of order m x    ~

(c) How can a list of strings be stored within

dimensional firray ? How can individual string be processed ? Explain with suitable example.

Attempt any two parts :    5x2=10

(a)    What is a pcWer ? Discuss the applications of pointers ftnd list the disadvantages of

(b)    Write a progt am it C. to find the length of a string using a pointer,

(c)    What is dynamic njemory allocation ? How does it help in developing complex programs ?

Attempt any two parts only .    5x2=10

(a)    Distinguish between an array and a structure.

Give example.

(b)    How can the size of a structure be determined in C ? How does it differ from union 7

(c)    Describe differenr r> pes of linked lists with examples.

[ 7425 ]


JJ-7303]








Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Uttar Pradesh Technical University (UPTU) 2009-1st Sem M.C.A --ester- Computer Concepts and Programming in C - Question Paper