Sei sulla pagina 1di 3

06CCP13/23

First/Second Semester B.E. Degree Examination


Computer Concepts and ‘C’ Programming

Time: 3 hrs MODEL QUESTION PAPER Max. Marks: 100

Note: 1. Answer any five full question selecting atleast two questions from each part
2. Answer all objective types questions only in first and second writing pages.
3. Objective types questions should not be repeated.
only

PART - A
1 a.
i) Any computer is controlled by
(A) Hardware (B) Information (C) User (D) Instruction
ii) Which of these is a powerful type of personal computer?
(A) Workstation (B) Notebook (C) Mainframes (D) Supercomputer
iii) The term dots per inch (dpi) refers to the printer’s
(A) Resolution (B) Speed (C) Output (D) Colors
iv) Which printer’s speed is not measured in pages per minute?
(A). Inkjet (B) Dot Matrix (C) Laser (D) Plotter
(04 Marks)
b. With the help of a block diagram explain the different functional units of a digital computer.
(08 Marks)
c. What is an assembler? How does it differ from a compiler?
(04 Marks)
d. Differentiate between primary memory and secondary memory (04 Marks)

2. a
i) The process of mapping magnetic disk surface is called
(A) Polarizing (B) Charging (C) Formatting (D) Accessing
ii) Magnetic disk tracks are divided into smaller parts called
(A) Clusters (B) Sectors (C) Slices (D) Bytes
iii) An example for magnetic storage device is
(A). Flash Memory (B) CD ROM (C) Hard Disk (D) Optical
iv) Each side of a standard DVD ROM disc can hold up to_____
(A) 4.7GB (B) 9.4GB (C) 17GB (D) 140GB

(04 Marks)
b. Explain the following storage devices with figures?
i) Magnetic tape ii) Magnetic disk (08 Marks)
c. Discuss the factors that affect the processing speed of a computer? (08 Marks)

3. a
i) The operating system is the intermediary between programs and
(A) User (B) Utilities (C) Firmware (D) Hardware
ii) In a GUI, the window that is currently in use is called
(A) Top (B) Active (C) Biggest (D) Framed
iii) A nibble is
(A) 4 bits (B) 8 bits (C) 10 bits (D) 32 bits
iv) The following is one of the benefits of using a network.
(A) File security (B) Peripherals sharing (C) Protection from virus (D) All of the above
(04 Marks)
b. What is an operating system? What are the functions of an operating system? List any two
operating systems. (06 Marks)
c. What is a Network? Discuss the different network topologies (06 Marks)
d. Define the following terms: i) Hub ii) Router (04 Marks)

4. a.
i) What is graphical representation of a solution to a given problem, called?
(A) Algorithm (B) Flowchart (C) Icon (D) Wizard
ii) What kind of language C is?
(A) Machine (B) Procedural (C) Assembly (D) Object Oriented
iii) The hexa constant is preceded by
(A) OX (B) O (C) HX (D) H
iv) The operator % yields
(A) Quotient (B) Reminder (C) Percentage (D) Fractional part
(04 Marks)
b. What is an algorithm? Write an algorithm and flowchart to find the largest of three numbers.
(08 Marks)
c. Explain with examples.
i) Relational operators ii) Bitwise operators (08 Marks)

PART – B
5. a
i) Identify formatted console input function.
(A) getchar( ) (B) gets( ) (C) scanf( ) (D) fgets( )
ii) What is the output of the following code?
main( )
{
printf(“%d”,’A’);
}
(A) 65 (B) A (C) 65.0 (D) error
iii) Each case statement in switch is separated by
(A) break (B) continue (C) exit( ) (D) goto
iv) In C, “x?y : z” is equivalent to
(A) if(x==0) y; else z (B) if(x==1) z; else y (C) if(x==0) y; z (D) if(x==1) y; else z;
(04 Marks)
b. Write the syntax of formatted output statement and Explain with an example? (06 Marks)
c. Write a C program to find the roots of a quadratic equation using switch statement.
(10 Marks)

6. a
i) Consider the following program segment:
for(i=0; i!=10;i+=2)
printf(“…….”);
How many times the printf( ) will be executed?
(A) 10 (B) 1 (C) 5 (D) Not even once
ii) Which of the following commands will place the program control at the end of the
loop, when it gets executed?
(A) continue (B) break (C) end (D) all the above
iii)The minimum number of times the do..while loop is executed
(A) 0 (B) 1 (C) 2 (D) both a & b
iv) The keyword else can be used with
(A) if statement (B) switch( ) (C) do-while (D) while
(04 Marks)
b. Differentiate between while and do-while statement? Write a C program to print from 5 to
50 in steps of 5 using these loops. (10 Marks)
c. Using do-while write a C program to generate N prime numbers. (06 Marks)

7. a
i) How many elements will be there in a[10][5] array?
(A) 15 (B) 5 (C) 50 (D) 20
ii) The array elements are represented by
(A) Index value (B) Subscripted variables (C) Array name (D) Size of an array.
iii) An array subscript may be
(A) integer constant (B) integer variable (C) integer expression (D) all of these
iv) Identify the correct declaration
(A) int a[10][10]; (B) int a[10,10] (C) int (10)(10) (D) int a(10,10)
(04 Marks)
b. How do you declare and initialize one dimension array? Explain with an example
(04 Marks)
c. Write a C program to accept two matrices A(mxn) and B(pxq) and find the product matrix C
(08 Marks)
d. What are the advantages and disadvantages of Binary search (04 Marks)

8. a.
i) The default return type of function is
(A) int (B) float (C) void (D) long int
ii) Which is the user defined function
(A) main (B) sqrt (C) clrscr( ) (D) gets( )
iii) A function that calls itself is known as ________ function
(A) recursive (B) iterative (C) main (D) none of the above
iv) A variable declared inside a function by default assumes the following storage class.
(A) extern (B) static (C) register (D) auto
(04 Marks)
b. What is a user-defined function? What are its advantages (04 Marks)
c. Discuss the different methods of passing parameters to the function (06 Marks)
d. Write a C function to find the factorial of a given integer number. Using the above function
write a C program to compute the Binomial coefficient. (06 Marks)

*******

Potrebbero piacerti anche