C-09-CM-105/C09-IT-105
3025
BOARD DIPLOMA EXAMINATION, (C-09)
APRIL /MAY-2012
DCM-FIRST YEAR EXAMINATION
COMPUTER FUNDAMENTALS & PROGRAMMING IN “C”
TIME: 3 Hours] [Total Marks :80]
PART - A
INSTRUCTION: (1) ANSWER ALL QUESTION AND EACH QUESTION
CARRIES FOUR MARKS
(2) ANSWER SHOULD BE BRIEF AND STRAIGHT TO THE POINT AND SHALL NOT EXEED FIVE SIMPLE SENTENCES
1. Write any three differences between ROM and RAM.
2. What are: (i) bit (ii) Byte (iii) Word Length? 1+1+1
3. Write about the differences between Internal and External commands in DOS.
4. What is search engine ? give at least two examples of search engine.
5. Define an algorithm. Give any two symbols used in a flow chart.
6. What is the purpose of Break statement in c?
7. What is a string ? how to initialize a string.
8. What is a pointer? How is pointer variable is declared in c?
9. Write any three difference between structure and union.
10. List any three bit wise operators in c with their meaning.
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 about the generations of computers. 10
12. (a) explain: (i) Autoexec.bat (ii) config.Sys (2+2 ) (b) explain the process of Uninstalling a software. 6
13. Explain about: (a) file transfer Protocol (b) Telnet
14. (a) write about any four arithmetic operators in c (4m) (b)wap in c to generate Fibonacci series.
15. (a) explain about conditional operator in c. (4 mar) (b) wap to find the give number is prime or not?
16. Wap in c to find sum of two matrices (10 marks)
17. (a) explain about different function calling methods in c (b) wap to find sum of ‘n’ natural numbers using functions.
18. (a) list the string functions in c and explain any two of them with examples.(b) write about the relation between array and pointer in c.
Answers: (short)
1. Write any three differences between ROM and RAM.
Ans:
RAM
|
ROM
|
1. RAM is Random Access Memory
|
1. Read Only Memory.
|
2. RAM is volatile and is erased when the computer is switched off. ROM is non-volatile and generally cannot be written to.
|
RAM is used for both read and write while ROM is used only for reading.
|
3. RAM needs electricity(power) to flow to retain information while ROM is permanent.
|
ROM is permanent and can only be read. One example is BIOS (basic input output system) that runs when computer is switched on and it prepares disk drives and processor to load OS from disk.
|
4. RAM is considerably faster than ROM
|
5. It is slow execution
|
2. What are: (i) bit (ii) Byte (iii) Word Length? 1+1+1
Ans:
A bit (short for binary digit) is the smallest unit of data in a computer. A bit has a single binary value, either 0 or 1.
(ii) byte: 8 bits is 1 byte 1024 bytes is 1 kilobyte 1024 kb is 1 mb 1024 mb is 1 gb and one bit is a single binary value of 1 or 0. a byte is eight contiguous bits. The byte is the basic unit of measurement in PC's, the equivalent of one character.
(iii)
3. Write about the differences between Internal and External commands in DOS.
4. What is search engine ? give at least two examples of search engine.
5. Define an algorithm. Give any two symbols used in a flow chart.
6. What is the purpose of Break statement in c?
7. What is a string ? how to initialize a string.
8. What is a pointer? How is pointer variable is declared in c?
Ans:
Pointers is used to store the address of the existing variable or array or structure or pointer .
It is a De-referencing operator (*)
Syntax -- data type *variable name;
Variable =&existing variable;
Ex -- int *p;
int a;
p=&a;
9. Write any three difference between structure and union.
Structure
|
Union
|
1. Structure stores different types of data in different locations. That is each member within a structure is assigned its own unique storagr area.
2. All members can be accessed at a time
3. The memory size of the structure variable is the sum of the sizes of its members.
|
1. 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.
2. Only one member of the union and thus one data type can be accessed at any one time
3. The memory size of the union variable is the largest size of its members
|
10. List any three bit wise operators in c with their meaning.
Long:
11) explain about the generations of computers. 10
12) (a) explain: (i) Autoexec.bat (ii) config.Sys (2+2 )
Ans:
(i) AUTOEXEC.BAT
This file was used in MS-DOS and in early versions of Microsoft windows operating system. It manages and executes other programs that are listed in the file. It is a special DOS batch file stored in root directory. Upon starting or restarting the computer it is automatically executed and is used to load TSR(TERMINATE and Stray Resident) programs that are present in the memory and pop-up whenever used invokes them. The main purpose of AUTOEXEC.BAT file is to set environment variables such as keyboard, printer and temporary file location. It is also used to start low-level system utilities like virus scanners, mouse drivers, keyboard drivers, cd drivers etc.
(i) CONFIG.SYS This file consists of those commands required for setting up different parameters. It is a special file comprising of setup and configuration instructions belonging to the computer system. It is considered as the primary configuration for DOS and OS/2 operating system. CONFIG.SYS file is located in the root directory from which DOS can be booted. This files is loaded each time the computer first boots up. It is responsible for controlling the components connected to the computer such as memory and other hardware devices.
(b) explain the process of Uninstalling a software. 6
13) Explain about: (a) file transfer Protocol (b) Telnet
14) (a) write about any four arithmetic operators in c (4m) (b)wap in c to generate Fibonacci series.
15) (a) explain about conditional operator in c. (4 mar) (b) wap to find the give number is prime or not?
16) Wap in c to find sum of two matrices (10 marks)
17) (a) explain about different function calling methods in c (b) wap to find sum of ‘n’ natural numbers using functions.
(a) list the string functions in c and explain any two of them with examples.(b) write about the relation between array and pointer in c.
No comments:
Post a Comment