PART-A 1. List some important hardware and software technologies of fifth generation computers. Super Large Scale Integrated Chips(SLSI) Parallel Technologies Dual Core Processor Artificial Intelligence, Natural Language Processing. 2. Write two characteristics of pseudocode. Composed of a sequence of statements or steps Statements are often numbered sequentially. Statements are written in simple English Each statement is written on a separate line Keywords and indentation are used to signify control structures or blocks of repetition There is no fixed syntax. Clarity of expression is essence of pseudocode. 3. What are various types of C operators. Arithmetic Operator Relational Operator Logical Operator Bitwise Operator Assignment Operator 4. Write a for loop statement to print numbers from 10 to 1. for(count = 10; count >0; count--) printf("%d ", count); 5. Define array Array is a datastructure that is used for storage of homogeneous data , i.e. the data of same type. 6. Name any two library functions used for string handling functions. strlen strcmp strcpy strrev strcat strstr 7. What is the need for functions? Reduction in code redundancy Enabling code reuse Better readability Information Hiding 8. What is the use of pointers? Pointers increase the execution speed A pointers enable us to access a variable that is defined outside the function Pointers are more efficient in handling the data tables Pointers reduce the length and complexity of a program
This upload contains answers for Computer Programming University Question paper.It will helps to the students who are studying First Year in Engineering. Thank You.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
PART-A
1. List some important hardware and software technologies of fifth generation computers.
Super Large Scale Integrated Chips(SLSI)
Parallel Technologies
Dual Core Processor
Artificial Intelligence, Natural Language Processing.
2. Write two characteristics of pseudocode.
Composed of a sequence of statements or steps
Statements are often numbered sequentially.
Statements are written in simple English
Each statement is written on a separate line
Keywords and indentation are used to signify control structures or blocks of repetition
There is no fixed syntax.
Clarity of expression is essence of pseudocode.
3. What are various types of C operators.
Arithmetic Operator
Relational Operator
Logical Operator
Bitwise Operator
Assignment Operator
4. Write a for loop statement to print numbers from 10 to 1.
for(count = 10; count >0; count--)
printf("%d ", count);
5. Define array
Array is a datastructure that is used for storage of homogeneous data , i.e. the data of same type.
6. Name any two library functions used for string handling functions.
strlen strcmp
strcpy strrev
strcat strstr
7. What is the need for functions?
Reduction in code redundancy
Enabling code reuse
Better readability
Information Hiding
8. What is the use of pointers?
Pointers increase the execution speed
A pointers enable us to access a variable that is defined outside the function
Pointers are more efficient in handling the data tables
Pointers reduce the length and complexity of a program
9. Write any two preprocessor directives in C.
# include<stdio.h>
#include<conio.h>
#include<string.h>
10. Differentiate between structures and union.
Structure Union
'struct' keyword is used to declare structure. 'union' keyword is used to declare union.
Memory is allocated for all variables. Allocates memory for variable which
variable require more memory.
struct struct_name
{
structure element 1;
structure element 2;
----------
----------
structure element n;
}struct_var_nm;
union union_name
{
union element 1;
union element 2;
----------
----------
union element n;
}union_var_nm;
struct item_mst
{
int rno;
char nm[50];
}it;
union item_mst
{
int rno;
char nm[50];
}it;
PART-B
11.a)write in detail about the evolution and the various generations of computer. (16).
Evolution of computers
ABACUS:
NAPIER BONES and SLIDE RULE:
PASCALINE-1642:
STEPPED RECKONER-1694:
DIFFERENCE ENGINE-1822:
1889: ->Jacquared loom concept to computing.
1944: ->Invention of “Mark-I”, built in partnership between Harvard Aiken and IBM.
1946: ->developed ENIAC-Electronic Numerical Integrator and Calculator.