Sunteți pe pagina 1din 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. 2. 3. 4. 5. 6. 7. State the characteristics of computers. How will you classify computer systems? Differentiate Application software and System software? Name any two Internet applications. Draw a flowchart to find the maximum among the three numbers. Name any four Application Software Packages. Write the following conditions using "?" operator. 4x+100 for x<40 Salary = 300 for x=40 4.5x+150 for x>40 Write the limitations of using getchar() and scanf() functions for reading strings. Define a C function to exchange the content of two variables. Write the format of the following functions: (a) fseek (b) fopen. What are Super computers? Give examples. Find the hexadecimal and decimal equivalent of the number (1110101101)2 List few application software's. How each computer in the internet is being identified? What is the difference between program and algorithm? What are the main software's in office package. What do you mean by `C' Tokens? Write a C program for the following expressions. i. a = 5 <= 8&& 6! = 5 ii. a = b++ + ++b where b = 50 What is the value of b [0] in the following program? main() { int a[5]={1,3,6,7,0}; int *b;

8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18.

19.

20.

b=&a[2]; } Consider the declaration: struct { char name; int num; } student; Illustrate the application of size of operator to this structure. What are Mainframe computers? Give the name of any one Mainframe Find the Octal Equivalent of the number (10111001100.1101011)2 How are operating system classified What is web server? List the advantages of algorithm State the usage of Excel application software Write a C program to implement the expression ((m+n)/p-m)*m), where m=4, n=6, p=8. 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); } 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]; } What are the operators exclusively used with pointers?

21. 22. 23. 24. 25. 26. 27. 28.

29.

30.

Part B (16 MARKS) UNIT I Explain in detail the evolution of computers. Discuss basic organization of computer system and explain the functions of the various units. Explain the various generations of computers Explain the classification of the computer With suitable example, explain about Number Systems. 6. Illustrate the process of addition and subtraction in 1s and 2s complement system with suitable examples. Find the decimal equivalent of the number (A2B:D8)16 Find the binary equivalent of the number (108:625)10

1. 2. 3. 4. 5.

7. 8.

1. 2. 3. 4. 5. 6.

UNIT II List the different software development steps and explain Describe the different types of software with examples. Explain the various types of software with examples Discuss the services provided by the internet Explain the following: WWW, URL, Internet Service Provider, and Web Browser. Explain the various types of internet connection. UNIT III Write the uses of flowchart and algorithm with suitable examples. Draw and explain the various symbols of flowchart and also draw the flowchart to add an array of N elements. Write an algorithm for finding sum and average of n numbers 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 Draw a flowchart to multiply two matrices. Write the pseudo code to multiply two matrices. What is an algorithm? Write an algorithm to print even numbers from 2 to 100. Explain any 8 Formatting features of an Application packages. Explain guidelines for preparing flowcharts, benefits and limitation of flowcharts. Write an algorithm for finding sum and average of n numbers. Also state the properties of a good algorithm.

1. 2. 3. 4. 5. 6. 7. 8. 9. 10.

11. 12. 13. 14. 15. 16. 17. 18. 19.

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. What are the different operators available in C? Explain with examples. Differentiate between signed and unsigned integer. 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. Compare `for', `while' and `do-while' loops. Draw a flowchart to multiply two matrices. Write the pseudo code to multiply two matrices. What is an algorithm? Write an algorithm to print even numbers from 2 to 100. Explain any 8 formatting features with an example for each. UNIT IV What are the different operators available in C? Explain with examples. Explain the following conditional statements with an example program Explain briefly the formatted and unformatted I/O functions in C Explain briefly the various decision making statements with examples Explain the various looping constructs. Give an example for each and explain the Working f the construct. Write a C program to find the sum of the series: S = 1+x+x2+x3++xn Write a C program to print the given numbers in reverse order Explain any 2 constructs used for decision making. Given an example for each and Explain the working of the construct. Explain the various looping constructs. Give an example for each and explain the working of the construct. Write a C program to find the sum of the series:

1. 2. 3. 4. 5. 6. 7. 8. 9. 10.

11. 12.

Write a C program to print the given number in reverse order. Explain any 2 constructs used for decision making. Give an example for each and explain the working of the construct.

1. 2. 3. 4.

UNIT V Explain, with examples, the different types of storage classes in C. Explain in detail with program about Call by value and call by address in C Briefly explain the various string handling functions in C Explain about structures and unions in detail

5. 6. 7. 8. 9. 10. 11.

12. 13. 14. 15.

Explain about the different parameter passing methods with examples. Write notes on storage classes in C. Explain about structures and unions suitable examples. Write notes on Pointers. Explain, with examples, the different type of storage classes in C. Discuss the different forms of macro substitution in preprocessed directives. 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. Explain about the different parameter passing methods with examples. Write notes on storage classes in C. Explain about structures and unions with suitable examples. Write notes on pointers

S-ar putea să vă placă și