3025
BOARD DIPLOMA EXAMINATIONS APRIL/MAY 2010
D.C.M.E. –FIRST YEAR EXAMINATION
COMPUTER FUNDAMENTALS & PROGRAMMING IN ‘C’
TIME: 3 Hours Total Marks: 80
PART-A 10*3=30
Instructions: (1) Answer all questions. Each question carries three marks.
(2) Answers should be brief and straight to the point and shall not exceed five simple sentences
1) list the major functional blocks of CPU
2) write about word length
3) what is the need of an Operating system
4) what is web browser? Give two examples of web browsers
5) list any three advantages of flow chart
6) list any four important features of C language
7) write any three differences between variable and array
8) write any thee differences between address operator and de referencing operator
9) what is self referential structure? Give an example of self referential structure declaration
10) list bitwise operators in C with their meaning?
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. Explain generations of computers
12 (a).write a C program to generate 10 fibonacci numbers
(b).write short notes on
(i). malloc ( )
(ii). Calloc( )
13. Explain procedure to change resolution, color appearance and screen saver options of the display
14. explain the process of sending and receiving email
15. explain about syntax of :
(a) if- statement
(b) if –else statement
(c) nested-if statement in C
16.(a). write a C program to check whether a given number is palindrome or not?
17. write a C program to add two matrices
18. write a C program to print multiplication table of a given number using function
Answers:
Short
1) list the major functional blocks of CPU
2) write about word length
3) what is the need of an Operating system
4) what is web browser? Give two examples of web browsers
Ans:
A web browser is a software program developed to provide a friendly interface on the web.
Browsing or surfing refers to getting information on internet. surfing on internet is done by programs which are called ‘Browsers’
Ex~
www.google.com
5) list any three advantages of flow chart
Ans:
1. It provides an easy way of communication because any other person besides the programmer can understand the way they are represented.
2. It represents the data flow.
3. It provides a clear overview of the entire program and problem and solution.
4. It checks the accuracy in logic flow.
5. It documents the steps followed in an algorithm.
6. It provides the facility for coding.
7. It provides the way of modification of running program.
2. It represents the data flow.
3. It provides a clear overview of the entire program and problem and solution.
4. It checks the accuracy in logic flow.
5. It documents the steps followed in an algorithm.
6. It provides the facility for coding.
7. It provides the way of modification of running program.
6) list any four important features of C language
7) write any three differences between variable and array
8) write any thee differences between address operator and de referencing operator
9) what is self referential structure? Give an example of self referential structure declaration
10) list bitwise operators in C with their meaning?
Long
11. Explain generations of computers
12 (a).write a C program to generate 10 fibonacci numbers
Ans:
#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(“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 ();
}
(b).write short notes on
(i). malloc ( )
(ii). Calloc( )
Ans:
malloc()
It is used to the create the array at runtime. It is predefined in <alloc.h>.
Syntax:
pointer=(type casting)malloc(type);
calloc()
It is also similar to malloc() which creates array variable, structures with zeros (0’s)
Ex~ int *a;
a=(int *)calloc(3,size of(int));
13. Explain procedure to change resolution, color appearance and screen saver options of the display
Ans:
CHANGING SCREEN RESOLUTION:
Resolution is a unit to determine the quality to displayed or priented text and graphics .text and pictures on the display are formed by dots called ‘pixels’.
Resolution is measured in dpi ( dot per inch ).the most common screen resolutions are 640*480 pixels and 800*600 pixels.
PROCEDURE TO CHANGE RESOLUTION:
Right click with mouse on a blank area of the desktop and point to properties and click.
· The display dialogue box appears
· Click the setting tab
· To change the screen resolution,drag the slider to select the resolution you want to use.
· You will notice as you move the slider towards higher resolutions that the number of colors displayed in the colors box changes
· The preview box in the dialogue box displays how your screen will look at the new screen resolution
· Click ok to confirm your change .a dialogue box appears ,stating that windows will take a few seconds to change the screen resolution .your screen may flicker during this time.
· The monitor setting dialogue box appears,asking if you want to keep the new screen resolution
COLOUR APPEARANCE :
· Right click on blank area on your desktop,a menue appears
· Click properties .the ‘display properties’ dialogue box appears .
· Click the appearance tab .the appearance tab showshow the screen currently looks
· Click the scheme drop-down list display a list of the available color schemes
· Click the color scheme you require
· Select any of the following options based on your requirements
· To change the color of the individual item ,for example ,to change desktop from the item drop-down list
· Click color drop-down list and choose appropriate color of your choice
· Click on ok to confirm your changes
SCREEN SAVER :
A screen saver automatically appears when you don’t use your computer for a period of time
TO CHANGE A SCREEN SAVER,FOLLOW THESE STEPS :
· Right click with mouse on a blank area of the desktop .a menu appears.
· Click properties.The display properties dialogue box appears
· Click the screen saver tab.the screen saver tab contains the following options
· Screen saver lists the available screen savers
· Setting allows you to set the speed and density of the pattern of the screen saver
· Preview .click this button to get the full screen view of the selected screen saver .to return the dialogue box ,move your mouse or press any key on the keyboard
· Password protected allows you to require a password before allowing access beyond the screen saver until the correct password is given
· Change allows you to change the oassword
· Wait sets the amount of time before the screensaver is activated
Click ok confirm your changes
14. explain the process of sending and receiving email
· You can create and send an e-mail message to exchange ideas or request information
TO SEND AN E-MAIL MESSAGE ,FOLLOW THESE STEPS :
· On the tool bar,click the new mail button
· In the to and 1 or cc boxes ,type the e-mail name of each recipient ,separating names with a comma or semicolon (;)
To: send the message to each person you specify
· In the subject box,type a message title
· Type your message,and then click the send button on the new message toolbar
RECEIVING E-MAIL :
The inbox stores all the e-mail messages you receive.you can display the contents of the message to read the message
· Click the inbox icon either on the outlook bar or the folder list
· To view the message on the preview plane ,click the message in the message list
15. explain about syntax of :
(a) if- statement
(b) if –else statement
(c) nested-if statement in C
16.(a). write a C program to check whether a given number is palindrome or not?
Ans:
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char a[6],b[6];
printf(“enter any string\n”);
fflush(stdin);
gets(a);
strcpy(b,a);
if(strmp(a,strrev(b))==0)
{
printf(“palindrome”);
}
else
{
printf(“not a palindrome”);
printf(“not a palindrome”);
}
getch();
}
17. write a C program to add two matrices
18. write a C program to print multiplication table of a given number using function
No comments:
Post a Comment