ge2112 question bank

5
M.A.M SCHOOL OF ENGINEERING SIRUGANUR, TIRUCHIRAPPALLI – 621105 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING GE2112- FUNDAMENTALS OF COMPUTING AND PROGRAMMING Anna University important Questions Common to all departments Part A (2 MARKS) 1. State the characteristics of computers. 2. How will you classify computer systems? 3. Differentiate Application software and System software? 4. Name any two Internet applications. 5. Draw a flowchart to find the maximum among the three numbers. 6. Name any four Application Software Packages. 7. Write the following conditions using "?" operator. 4x+100 for x<40 Salary = 300 for x=40 4.5x+150 for x>40 8. Write the limitations of using getchar() and scanf() functions for reading strings. 9. Define a C function to exchange the content of two variables. 10. Write the format of the following functions: (a) fseek (b) fopen. 11. What are Super computers? Give examples. 12. Find the hexadecimal and decimal equivalent of the number (1110101101)2 13. List few application software's. 14. How each computer in the internet is being identified? 15. What is the difference between program and algorithm? 16. What are the main software's in office package. 17. What do you mean by `C' Tokens? 18. Write a C program for the following expressions. i. a = 5 <= 8&& 6! = 5 ii. a = b++ + ++b where b = 50 19. What is the value of b [0] in the following program? main() { int a[5]={1,3,6,7,0}; int *b;

Upload: chockalingam-ramanathan

Post on 01-Dec-2015

26 views

Category:

Documents


0 download

DESCRIPTION

study this throughly it is enough for you.

TRANSCRIPT

Page 1: ge2112 question bank

M.A.M SCHOOL OF ENGINEERING SIRUGANUR, TIRUCHIRAPPALLI – 621105

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

GE2112- FUNDAMENTALS OF COMPUTING AND PROGRAMMING

Anna University important Questions Common to all departments

Part A (2 MARKS)

1. State the characteristics of computers. 2. How will you classify computer systems? 3. Differentiate Application software and System software? 4. Name any two Internet applications. 5. Draw a flowchart to find the maximum among the three numbers. 6. Name any four Application Software Packages. 7. Write the following conditions using "?" operator. 4x+100 for x<40 Salary = 300 for x=40 4.5x+150 for x>40 8. Write the limitations of using getchar() and scanf() functions for reading

strings. 9. Define a C function to exchange the content of two variables. 10. Write the format of the following functions: (a) fseek (b) fopen. 11. What are Super computers? Give examples. 12. Find the hexadecimal and decimal equivalent of the number (1110101101)2 13. List few application software's. 14. How each computer in the internet is being identified? 15. What is the difference between program and algorithm? 16. What are the main software's in office package. 17. What do you mean by `C' Tokens? 18. Write a C program for the following expressions. i. a = 5 <= 8&& 6! = 5 ii. a = b++ + ++b where b = 50 19. What is the value of b [0] in the following program? main() { int a[5]={1,3,6,7,0}; int *b;

Page 2: ge2112 question bank

b=&a[2]; } 20. Consider the declaration: struct

{ char name; int num; } student; Illustrate the application of size of operator to this structure.

21. What are Mainframe computers? Give the name of any one Mainframe 22. Find the Octal Equivalent of the number (10111001100.1101011)2 23. How are operating system classified 24. What is web server? 25. List the advantages of algorithm 26. State the usage of Excel application software 27. Write a ‘C’ program to implement the expression ((m+n)/p-m)*m), where

m=4, n=6, p=8. 28. What will be the outputs for the following program, when the value of i is 5

and 10 void main ()

{ int i; scanf(“%d”,&i); if(i==5) printf(“Five”);

} 29. What is the value of b[0] in the following program?

main () {

int a[5]={1,3,6,7,0}; int *b; b=&a[2];

} 30. What are the operators exclusively used with pointers?

Page 3: ge2112 question bank

Part B (16 MARKS)

UNIT I 1. Explain in detail the evolution of computers. 2. Discuss basic organization of computer system and explain the functions of

the various units. 3. Explain the various generations of computers 4. Explain the classification of the computer 5. With suitable example, explain about Number Systems. 6. Illustrate the

process of addition and subtraction in 1s and 2s complement system with suitable examples.

7. Find the decimal equivalent of the number (A2B:D8)16 8. Find the binary equivalent of the number (108:625)10

UNIT II

1. List the different software development steps and explain 2. Describe the different types of software with examples. 3. Explain the various types of software with examples 4. Discuss the services provided by the internet 5. Explain the following:

WWW, URL, Internet Service Provider, and Web Browser. 6. Explain the various types of internet connection. UNIT III 1. Write the uses of flowchart and algorithm with suitable examples. 2. Draw and explain the various symbols of flowchart and also draw the

flowchart to add an array of N elements. 3. Write an algorithm for finding sum and average of n numbers 4. What is a pseudo code? How does it differ from flowchart? Write a pseudo

code to add up all the even numbers between 0 and 100 and print the results 5. Draw a flowchart to multiply two matrices. 6. Write the pseudo code to multiply two matrices. 7. What is an algorithm? Write an algorithm to print even numbers from 2 to

100. 8. Explain any 8 Formatting features of an Application packages. 9. Explain guidelines for preparing flowcharts, benefits and limitation of

flowcharts. 10. Write an algorithm for finding sum and average of n numbers. Also state the

properties of a good algorithm.

Page 4: ge2112 question bank

11. What is pseudo code? How does it differ from flowchart? Write a pseudo code to add up all the even numbers between 0 and 100 and print the result.

12. What are the different operators available in C? Explain with examples. 13. Differentiate between signed and unsigned integer. 14. Write a C program to compute the following function: S = (x2 +x4 +...+

x2n) =n. Trace the program for the values x = 2 and n = 5. 15. Compare `for', `while' and `do-while' loops. 16. Draw a flowchart to multiply two matrices. 17. Write the pseudo code to multiply two matrices. 18. What is an algorithm? Write an algorithm to print even numbers from 2 to

100. 19. Explain any 8 formatting features with an example for each. UNIT IV 1. What are the different operators available in C? Explain with examples. 2. Explain the following conditional statements with an example program 3. Explain briefly the formatted and unformatted I/O functions in C 4. Explain briefly the various decision making statements with examples 5. Explain the various looping constructs. Give an example for each and

explain the Working f the construct. 6. Write a C program to find the sum of the series:

S = 1+x+x2+x3+…+xn 7. Write a C program to print the given numbers in reverse order 8. Explain any 2 constructs used for decision making. Given an example for

each and Explain the working of the construct. 9. Explain the various looping constructs. Give an example for each and

explain the working of the construct. 10. Write a C program to find the sum of the series:

11. Write a C program to print the given number in reverse order. 12. Explain any 2 constructs used for decision making. Give an example for each and explain the working of the construct. UNIT V 1. Explain, with examples, the different types of storage classes in C. 2. Explain in detail with program about Call by value and call by address in C 3. Briefly explain the various string handling functions in C 4. Explain about structures and unions in detail

Page 5: ge2112 question bank

5. Explain about the different parameter passing methods with examples. 6. Write notes on storage classes in C. 7. Explain about structures and unions suitable examples. 8. Write notes on Pointers. 9. Explain, with examples, the different type of storage classes in C. 10. Discuss the different forms of macro substitution in preprocessed directives. 11. Define a structure called student that would contain name, reg-no and marks of five subjects and percentage. Write a program to read the details of

name, reg-no and marks of five subjects for 30 students, calculate the percentage and display the name, reg-no, marks of 30 subjects and percentage of each student.

12. Explain about the different parameter passing methods with examples. 13. Write notes on storage classes in C. 14. Explain about structures and unions with suitable examples. 15. Write notes on pointers