Vous êtes sur la page 1sur 8

B.E/B.Tech. DEGREE EXAMINATION, MAY/JUNE 2007.

First Semester Civil Engineering GE 1102 FUNDAMENTALS OF COMPUTING (Common ta all branches except Marine Engineering) (Regulation 2004) Time : Three hours Maximum : 100 marks Answer ALL questions. PART A (10 x 2 = 20 marks)

1. What are the characteristics of von Neumann architecture? 2. Find the equivalent octal number for AF6. 3. Write the procedure for subtracting two binary numbers using twos complement. 4. What is an icon? Give an example. 5. What is meant by Desktop publishing? 6. What are the functions of an editor? 7. List the bitwise operators supported by C language. 8. What are the advantages of switch statement? 9. What is the difference between union and structure? 1o. Write the C code for finding the sum of N integers using pointers? PARTB(5 *16 80 marks) 11. (a) (i) What are the advantages of stored program computers? (4) (ii) List the registers used in a computer and explain their use. (6) (iii) Convert 225.225 to octal and hexadecimal. (6) Or (b) (i) Draw the basic block diagram of a digital computer and explain the functions of each unit (8) (ii) Classify computer? based on their usage and explain their characteristics. (8) 12. (a) (i) What are the functions of an operating systems? (14) (ii) What are the merits of High level languages? (3) (iii) Show the step-by-step division process when (160)/(+12) is computed. (9) Or (b)(i) Explain the working of an interpreter using a flow chat. (ii) Explain how multiplication and division of binary numbers can be done using arithmetic shift operation. (8)

13. (a) (i) Draw the flow chart for find the sum of all the odd numbers in a given set of numbers. (8 (ii) Describe the features of MS-word. (8) Or (b)(i) Describe the features of Spreadsheet What are its applications? (8) (ii) Write a pseudo code for finding the factorial of given number, (8) 14. (a) (i) Explain the following control statements using examples: WHILE statement; IF ELSE IF statement. (8) (ii) Write a C program to read s line of mixed text and to display after converting all upper case to lower case, all digits to O and all other special characters to*.(8) Or (b) (i) Write a C program to sort the elements of an n x n matrix and to display the elements in the following pattern: (8) 543 612 789 (ii) With examples, explain how input and output operations are managed in C.(8) 15. (a) (i) Write a C program using pointers to concatenate two strings. (8) (ii) Write notes on preprocessor directives. (8) Or (b) (i) Write a C program to read m x n matrix and to check whether the element of last column of each row is the sum of the elements of the other columns in that row. (8) (ii) Explain the use of structure within a structure and array of structures using examples. (8)

Anna University B.E./B.Tech.Degree Examinations,Nov/Dec 2010 Regulations 2008 First Semester Common to all branches GE2112 Fundamentals of Computing and Programming

Answer ALL Questions Part A - (10 x 2 = 20 Marks) 1. What are Super computers? Give examples. 2. Find the hexadecimal and decimal equivalent of the number (1110101101)2 3. List few application software's. 4. How each computer in the internet is being identified? 5. What is the difference between program and algorithm. 6. What are the main software's in oce package. 7. What do you mean by `C' Tokens? 8. Write a C program for the following expressions. i. a = 5 <= 8&& 6 ! = 5 ii. a = b++ + ++b where b = 50 9. 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]; } 10. Consider the declaration: struct { char name; int num; } student; Illustrate the application of size of operator to this structure. Part B - (5 x 16 = 80 Marks) 11. (a) (i) Illustrate the process of addition and subtraction in 1s and 2s complement system with suitable examples. (8) (ii) Explain the evolution of computers. (8) OR 11. (b) (i) Find the decimal equivalent of the number(A2B:D8)16 (3) (ii) Find the binary equivalent of the number(108:625)10 (3) (iii) Draw the block diagram to illustrate the basic organization of computer system and explain the functions of the various units. (10) 12. (a) (i) State and explain the various steps involved in development of a software.(8) (ii) Differentiate between application software and system software.(8)

OR 12. (b) (i) Explain the following: WWW, URL, Internet Service Provider, Web Browser. (Marks 8) (ii) Explain the various types of internet connection. (8) 13. (a) (i) Explain guidelines for preparing flowcharts,benefits and limitation of flowcharts.(8) (ii) Write an algorithm for finding sum and average of n numbers. Also state the properties of a good algorithm. (8) OR 13. (b) 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. (16) 14. (a) (i) What are the different operators available in C? Explain with examples. (12) (ii) Differentiate between signed and unsigned integer. (4) OR 14. (b) (i) 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. (12) (ii) Compare `for', `while' and `do-while' loops. (4) 15. (a) Explain, with examples, the different types of storage classes in C. (16) OR 15. (b) (i) Discuss the different forms of macro substitution in preprocessed directives.(6) (ii) 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, calculatethe percentage and display the name, reg-no, marks of 30 subjects and percentage of each student. (10)

Anna University B.E./B.Tech. DEGREE EXAMINATIONS, MAY/JUNE 2010 Regulations 2008 First Semester Common to all branches GE2112 Fundamentals of Computing and Programming Answer ALL Questions Part A - (10 x 2 = 20 Marks) 1. What a re Mainframe computers? Give t he name of any one Mainframe computer. 2. Convert 0.4375 decimal to binary system. 3. Differentiate between hardware and software. 4. What do you mean by URL? Mention its uses. 5. Write down steps involved in writing a program to solve a problem. 6. Define the term Assembler 7. List out the rules to be followed i n forming a n identifier. 8. Write a C program for the following expressions.

9. What do you mean by a pointer? Mention its uses.. 10. Determine the output for the following printf statements

Part B - (5 x 16 = 80 Marks) 11. (a) Explain in detail t he evolution of computers. (16) OR 11. (b) (i) How does one specify t he configuration of a computer system? Give t he signifi- cance of each term in it. (6) (ii) Convert t he hexadecimal number A5B to octal number.Explain each step involved in t he conversion. (10)

12. (a) (i) What is system software? Explain various system softwarei n detail. (8) (ii) Briefly explain t he steps i n software development. (8) OR 12. (b) (i) What is an internet? Explain its evolution a nd its services (8) (ii) Explain how internet connection can be established? (8) 13. (a) (i) Write down the algorithm to find th e largest number among three given numbers and outline t he steps i n the algorithm with th e inputs 5, 17, 3. (8) (ii) Draw flowchart to compute the salary of a n employee i n a company. Assume that there a re two types of employees in t he company daily wages and regular. Salary is calculated as number of hours worked* wages per hour for daily wagers and basic pay +(% of DA * basic pay)/100 + HRA + medical allowance for regular employees. Sketch the flow of your design for a regular employee with basic pay = 5000, % of DA = 75 % a nd HRA = 500. (8) OR 13. (b) (i) What is pseudo code? Explain how it can be designed a nd its benefits a nd limitations. (8) (ii) Briefly discuss about word processor a nd spread sheets. (8) 14. (a) (i) Develop a C program that computes and prints a table offactorials for a given integer (8) (ii) Describe the features of different data types i n C (8) OR 14. (b) (i) Explain briefly t he formatted a nd unformatted I/O functions in C. (8) (ii) Write a C program to evaluate the following series.

(8) 15. (a) (i) Briefly explain the various string handling functions in C. (4) (ii) What do you mean by call by reference? Write a program i n C to exchange t he value of two variables using call by reference. (6) (iii) Write a C program to find the largest an d smallest number in the given array.(6) OR 15. (b) (i) Write a C program to find th e factorial of a given number using recursion. (6) (ii) Write a C program to accept records of 20 states using array of structures. The structure should contain name of the state andnumber of engineering colleges, medical colleges, management colleges, science colleges. Calculate a nd display the total colleges i n each state and th e state which is having highest number of colleges. (10)

B.E./B.Tech. DEGREE EXAMINATIONS, JANUARY 2010 Regulations 2008 First Semester Common to all branches GE2112 FUNDAMENTALS OF COMPUTING AND PROGRAMMING Answer ALL Questions Part A - (10 x 2 = 20 Marks) 1. Distinguish between Analog and Digital computer. 2. Convert 0.4375 decimal to binary system. 3. Distinguish between compilers an d interpreters. 4. What is a web server? 5. What i s an algorithm? 6. Give the importance of a graphics packages. 7. Write a code segment using while statement to print numbers from 10 down to 1. 8. Write a C program for the following expressions. (i) a=5 <= 8 && 6!=5 (ii) a = b++ + ++b where b = 50 9. How strings ar e represented in language C? 10. What are the advantages of unions over structures? Part B - (5 x 16 = 80 Marks) 11. (a) (i) What are th e characteristics of a computer? Discuss (6) (ii) Briefly explain t he various generations of computers. (6) (iii) Convert the decimal number 59.8125 into binary an d octal. (4) OR 11. (b) Explain the different components of a computer system with block diagram. (16) 12. (a) (i) Describe the different types of software with examples. (8) (ii) List the different software development steps an d explain. (8) OR 12. (b) (i) Explain the common types of internet access. (6) (ii) Write short notes on web browser. (5)

(iii) Explain a typical structure of URL. (5) 13. (a) Draw a nd explain th e various symbols of flowchart and also draw the flowchart to add an array of N elements. (16) OR 13. (b) (i) Explain the features of PowerPoint package. (6) (ii) List and explain th e features supported by spreadsheet package. (6) (iii) Briefly write about Desktop Publishing Software. (4) 14. (a) (i) What are th e different operators available in C? Explain with examples. (12) (ii) Differentiate between signed a nd unsigned integer. (4) OR 14. (b) (i) Explain th e following conditional statements. (10) 1. nested if-else statement 2. switch-case statement (ii) Write a C program that reads a number and display whether the number is prime or not. (6) 15. (a) (i) Write a C program to reverse a given string. (10) (ii) Differentiate pass by value and pass by address in C. (6) OR 15. (b) Write a C program that gets and displays th e report of n students with their personal and academic details using structures. (16)

Vous aimerez peut-être aussi