Wednesday 27 March 2013

OCT /NOV-2010 (C-09)



BOARD DIPLOMA EXAMINATION, (C09)

OCT /NOV-2010
DCM-I YEAR EXAMINATION
COMPUTER FUNDAMENTALS & PROGRAMMING IN “C”2009

TIME: 3 HOURS                                                                              TOTAL MARKS:80

           
Time :3 Hours                                                                                       (Total Marks :100
1.      State the use of Secondary Storages Devices used in a Computer. List any two 2+1 devices.
2.      Convert the following :                                                                                                        3
(1011100111110.01100)2 = (?)10
3.      Define a File and list any two File types.                                                              1+2
4.      Write any three difference between Internet and intranet.                                         3
5.      Draw the flowchart to print the numbers between 1 to 10.                                       3
6.      List the rules for naming an Indentifier.                                                                     3
7.      Define a String and List any four String functions.                                                 1+2
8.      What is the purpose of calloc() function and give it’s syntax?                                2+1
9.      Give any three differences between structure and union.                                                                      3
10.  List the input functions for reading data from a file.                                                               3
PART-B                                      10*5=50


Instructions :    (1) Answer any five questions and each question carries ten marks.
                  (2) The answers should be comprehensive and the criteria for valuation   is the content but not the length of the answer.

11.   (a) Explain the function of the CPU and major functional blocks of CPU.                            4+3
 (b) What is the need of Cache memory ?
12.   What is meant by disk Defragmentation ? What is its use and how to Defragment using System tools ?        2+2+6
13.   (a) Explain about IP address and write its format                                                                  3+3
(b) What is meant by search engine and list any two search engine                             2+2
14.  (a) Write any three important features of C language.
(b) Write a C program to find the roots of a quadratic equation ax2+ bx+c.                  7
15.  (a) Give the syntaxs of iterative statements.                                                                   6
      (b) Write a C program to check whether the given numbers is perfect number or not 4
16. (a) Write  C program to find the largest number in a single dimension Array.        5
      (b) Write a C program to check whether the given string is palindrome or not.                5
17. (a) Write any four differences between call by value                                                                   4
      (b) Write a C program to print Fibonacci numbers upto                                                6
18. (a) Write any three advantages of pointers                                                                   3
      (b) Write a C program to check whether the given matrix is symmetric or no.               7
Answers:
Short:
1.      State the use of Secondary Storages Devices used in a Computer. List any two 2+1 devices.
2.      Convert the following :                                                                                                        3
(1011100111110.01100)2 = (?)10
3.      Define a File and list any two File types.                                                              1+2
4.      Write any three difference between Internet and intranet.                                         3
5.      Draw the flowchart to print the numbers between 1 to 10.                                       3
6.      List the rules for naming an Identifier.                    
Ans:
Identifier: identifier is nothing but giving the name to the variable, function name is known as the identifier
RULES OF THE IDENTIFIER:
1.       It should start with alphabetical letters only
2.       It should not star with numbers, special symbols
3.       It should not exist more than 32 characters
Key words are not used as variables
7.      Define a String and List any four String functions.                                                 1+2
8.      What is the purpose of calloc() function and give it’s syntax?                                2+1
9.      Give any three differences between structure and union. 
Structure
Union
4.       Structure stores different types of data in different locations. That is each member within a structure is assigned its own unique storagr area.
5.       All members can be accessed at a time
6.       The memory size of the structure variable is the sum of the sizes of its members.

4.       Union stores different types of data in a single memory location tha are the members that compose    a union all share the same storage area.
5.       Only one member of the union  and thus one data type can be accessed  at any one time
6.       The memory size of the union variable is the largest size of its members
                                                                   
10.  List the input functions for reading data from a file.                                                              
Long

11.   (a) Explain the function of the CPU and major functional blocks of CPU.                            4+3
 (b) What is the need of Cache memory ?
12.   What is meant by disk Defragmentation ? What is its use and how to Defragment using System tools ?        2+2+6
13.   (a) Explain about IP address and write its format                                                                  3+3
(b) What is meant by search engine and list any two search engine                             2+2
14.  (a) Write any three important features of C language.
(b) Write a C program to find the roots of a quadratic equation ax2+ bx+c.                  7
15.  (a) Give the syntaxs of iterative statements.                                                                   6
      (b) Write a C program to check whether the given numbers is perfect number or not 4
16. (a) Write  C program to find the largest number in a single dimension Array.        5
      (b) Write a C program to check whether the given string is palindrome or not.                5
17. (a) Write any four differences between call by value and call by address
Call by value
Call by reference
1.       The variable/value/expression is sent to the function is known as call by value.
1.       If the address is sent to the function it is known as call by reference
2.       Syntax: function(variable,variable2);
3.       Syntax:function(&variable,&variable2);
4.here formal parameters is variable
Ex: intx
4.       Here formal parameters is pointers
Ex:int*x
5.       If the value is sent to the function ,that value cannot be modified
6.       Whenthe address is sent to the function the value is modified by using ‘*’operator

      (b) Write a C program to print Fibonacci numbers upto  n
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,n,I;
clrscr();
a=0; b=1;
printf(“how many no’s\n”);
scanf (“%d”,&n);
printf(“fibnoccie series are\n”);
printf(“%d\n%d\n”,a,b\n”);
for (i=1;I<=n-2;i++)
{
c=a+b;
printf(“%d\n”,c);
a=b;
b=c;
}
getch ();
}                                 
18. (a) Write any three advantages of pointers                                                                   3
Ans:
  1. Indirect accessing
  2. fast execution
  3. Dynamic memory allocation.
  4. saving the time
We can return more than one value.
      (b) Write a C program to check whether the given matrix is symmetric or no.               7

No comments:

Post a Comment