foc anna univ ques

22
B.E./B.Tech DEGREE EXAMINATION, APRIL / MAY 2009 First Semester CS 16 – FUNDAMENTALS OF COMPUTING AND PROGRAMMING (Regulation 2008) Time: Three hours Maximum: 100 Marks Answer ALL questions PART – A (10 X 2 = 20 marks) (1) Why computer is known as data processor? (2) What is cache memory? How is it different from primary memory? (3) Different between web page and web site. (4) What is the difference between interpreter and compiler? (5) What are the rules for pseudocode? (6) Write algorithm to print biggest of three numbers. (7) What is the purpose of main()? (8) What is an argument? Differentiate between formal arguments and actual arguments. (9) How a variable is declared to be a pointer? (10) Why use arrays?

Upload: sumathi-bas

Post on 24-Oct-2014

160 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: FOC Anna Univ Ques

B.E./B.Tech DEGREE EXAMINATION, APRIL / MAY 2009

First Semester

CS 16 – FUNDAMENTALS OF COMPUTING AND PROGRAMMING

(Regulation 2008)

Time: Three hours Maximum: 100 Marks

Answer ALL questions

PART – A (10 X 2 = 20 marks)

(1) Why computer is known as data processor?

(2) What is cache memory? How is it different from primary memory?

(3) Different between web page and web site.

(4) What is the difference between interpreter and compiler?

(5) What are the rules for pseudocode?

(6) Write algorithm to print biggest of three numbers.

(7) What is the purpose of main()?

(8) What is an argument? Differentiate between formal arguments and actual arguments.

(9) How a variable is declared to be a pointer?

(10) Why use arrays?

PART –B (5X16=80marks)

11 a) i) Explain in detail the characteristics of Computers. (8)

ii) Discuss in detail the classification of computers. (8)

(OR)

b)Write short notes on:

i) Menory of a computer

ii) Secondary storage devices. (8+8)

12 a) Discuss about the different steps involved in the software development. (16)

(OR)

b) How the software are classified? Explain each with relevant example. (16)

Page 2: FOC Anna Univ Ques

13.a) What is the difference between an algorithm and pseudocode? Also write an Algorithm

and pseudocode for solving a quadratic equation. (16)

(OR)

b) i) Explain any eight formatting features with suitable example. (8)

ii) Explain application of software packages. (8)

14. a) Describe various data types in C. 

b) Describe any four I/O statement of 'C'. (8+8)

(OR)

c) Draw a flowchart and write a C program to print student grade using structure. (16)

15. a) Write C program to read and write employee and their data of joining using nested 

structure. (16)

(OR)

b) i) Describe what is meant be passing by reference. Explain with your own example.

ii) Describe how to declare two dimensional array using pointers. And write a for loop to 

store information and later modification to the declared pointer. (8+8)

Page 3: FOC Anna Univ Ques

B.E. / B.Tech DEGREE EXAMINATION, JANUARY 2009

First Semester

GE 2112 – FUNDAMENTALS OF COMPUTER PROGRAMMING

Time: Three hours Maximum: 100 Marks

Answer ALL questions

PART – A (10 X 2 = 20 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.

PART –B (5X16=80marks)

11. a) i) Explain the evolution of computers. (8) 

ii) With suitable diagram explain about computer organization. (8)

(OR)

b) With suitable example, explain about Number Systems. (16)

12. a) Explain the various types of software with suitable examples. (16)

(OR)

b) Explain in detail about the software development steps. (16)

13. a) i) Draw a flowchart to multiply two matrices. (8) 

ii) Write the pseudo code to multiply two matrices. (8)

(OR)

Page 4: FOC Anna Univ Ques

b) i) What is an algorithm? Write an algorithm to print even numbers from 2 to 100. (8)

ii) Explain any 8 Formatting features of an Application packages. (8)

14. a) i) Explain the various looping constructs. Give an example for each and explain the

Working f the construct. (8)

ii) Write a C program to find the sum of the series:

S = 1+x+x2+x3+…+xn (8)

(OR)

b) i) write a C program to print the given numbers in reverse order. (8)

ii) Explain any 2 constructs used for decision making. Given an example for 

each and Explain the working of the construct. (8)

15. a) i) Explain about the different parameter passing methods with examples. (8)

ii) Write notes on storage classes in C. (8)

(OR)

b) i) Explain about structures and unions suitable examples. (8)

ii) Write notes on Pointers. (8)

Page 5: FOC Anna Univ Ques

B.E./B.Tech DEGREE EXAMINATION, JANUARY / FEBRUARY 2009

First Semester

Civil Engineering

GE 2112 – FUNDAMENTALS OF COMPUTING AND PROGRAMMING

(Regulation 2008)

Time: Three hours Maximum: 100 Marks

Answer ALL questions

PART – A (10 X 2 = 20 marks

1. What are the factors needed to classify computers?

2. Write the binary and octal equivalent of hexadecimal number 7BD.

3. What is IP Address?

4. List the different types of software.

5. What is pseudo code?

6. List any four office packages.

7. Distinguish between While..Do and Do…While statement in C.

8. Write a C program to print the number 10 ten times, the number 9 nine times and so on.

9. Write a C function to check whether the given year is leap or not.

10. Write any two different between structures and union.

PART –B (5X16=80marks)

11.a) i) Explain different types of computers. (8)

ii) Discuss about the evolution of computers. (8)

(OR)

b) With suitable diagram, explain the basic organization of computers. (16)

12. a) Explain the step involved in software developments with suitable example. (16)

(OR)

b) i) Discuss the services provided by the internet. (8) 

ii) Describe the basic Internet terminologies used. (8) 

Page 6: FOC Anna Univ Ques

13. a) i) Write algorithm to print the Fibonacci series: (0,1,1,2,3,5,8,13,…) (8)

ii) Draw a flowchart to add two matrices. (8)

(OR)

b) i) Write a pseudo code for calculating compound interest. (8)

ii) Write the uses of flowchart and algorithm with suitable examples. (8)

14.a) Explain different data types in C with suitable examples. (16)

(OR)

b) i) Write a C program to count the letters in a sequence of characters. (8)

ii) Write the use of switch… case construct with its syntax and an example. (8)

15. a) i) Write a C program to concatenate two strings. (8)

ii) Discuss about pointers and its use in C. (8)

(OR)

b) i) Explain about structure declaration in C with suitable example. (8)

ii) Discuss about preprocessor facility in 'C'. (8)

Page 7: FOC Anna Univ Ques

GE 2112 – FUNDAMENTALS OF COMPUTING AND PROGRAMMING

(Regulation 2008)

Time: Three hours Maximum: 100 Marks

Answer ALL questions

PART – A (10 X 2 = 20 marks

1.What are different components of computer?

2.Draw flow chart to find the lowest of two numbers.

3.Write C assignment statements to evaluate the following equation T=(2ab)*g/(a+b).

4.Write a C program to find the greatest of given 10 numbers.

5.What is the advantage of using register variable?

6.Give an example for enumerated data type.

7.What is the difference between structure and union?

8.What do you mean by dynamic memory allocation?

9.Define Stack and Queue.

10.What is the main advantage of linked list?

PART-B(5x16=100)

11 (a) (i) Discuss about different services provided by the internet.

(ii) List the different categories of softwares.

OR

(b) (i) Draw a flow chart to solve a quadratic equation

Ax2+Bx+c=0 where A!=0

(ii)Draw a flow chart for finding the sum of first ten natural numbers.

12 (a) (i) Write a C program to find the simple interest? Inputs are principal amount, period in

year and rate of interest.

(ii)Write a program to calculate the sum of remainders obtained by dividing with modular

division operation by 2 on 1 to 9 numbers.

OR

(b) (i) Write a C program to evaluate the following series.

x-x3/3!+x5/5!-x7/7!+...xn/n!

Page 8: FOC Anna Univ Ques

13 (a) Write a C program to arrange the names in alphabetical order.

OR

(b) (i)Illustrate the principles of different storage classes in C.

(ii)Write a C program to find the factorial of a given number using recursion.

14 (a) (i)Write a program to display array elements and their address using pointers.

(ii)Write a program to assign pointer value to another variable and write program to add two

numbers through their pointers.

OR

(b) (i) Write a program to write data to a text file and to read it.

(ii)Write note on self referential structures.

15 (a) Implement a queue so that each element of the queue hold a list of integers. Write the

funcions add_Q and remove_Q for such a queue.

OR

(b) Write a C program to insert to note in the beginning, middle and end of the linked list. 

Page 9: FOC Anna Univ Ques

B.E./B.T ech. DEGREE EXAMINATI ON. MAY/JUNB 2007.

First Semester

Civil engineering

GE 1102 - FUNDAMIINTALS OF COMPUTING

(Common to all branches except Marine Engineering)

(Regulation 2004)

Time : Three hours Maximum : 100 marks

Answer ALL questions.

PARTA-(10 x2=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 two's

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?

10. Write the C code for finding the sum of N integers using pointers?

PARTB-(5 x 16=80marks)

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 computers based on their usage and explain their characteristics. (8)

12. (a) (i) What are the functions of an operating systems? @)

(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

(i) Explain the working of an interpreter using a flow chart. (8)

Page 10: FOC Anna Univ Ques

(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 pseudocodefo r finding the factorial of given number. (8)

14. (i) Explain the following control statements using examples: WHILE statement; IF ELSE

IF statement. (8)

(ii) Write a C program to read a line of mixed text and to display after converting all upper

case to lower case, all digits to 0 and all other special characters to*.

Or

(b)(i)Write a C program to sort thc elements of an n display the elements in the following

pattern :

543

662

789

(ii) With examples, explain how input and output 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 element of last column of each other columns in that row.

x n matrix and to check whether the row is the sum of the elements of the (8)

(ii) Explain the use of structure within a structure and structures using examples. (8)

Page 11: FOC Anna Univ Ques

B.E./B.TECH. DEGREE EXAMINATIONS, JANUARY 2010GE2112 FUNDAMENTAL OF COMPUTING AND PROGRAMMING

REGULATIONS 2008

TIME:THREEHOURS                                                               MAXIMUM:100 MARKS

ANSWER ALL QUESTIONS

PART A-(10*2=20MARKS)

1.Distinguish between Analog and Digital computer.

2.Convert 0.4375 decimal to binary system.

3.Distiguish between complier and interpreters.

4.What is web server?

5.What is an algorithm?

6.Give the importance of a graphic 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.

(a)a=5 <= 8 && 6!=5(b)a = b++ + ++b where b = 50

9.How strings are represented in c language?

10.What are the advantages of unions over structures?

PART B-(5*16=80 MARKS)

11.(a)(i)What are the characteristic of a computer? Discuss

(ii)Briefly explain the various generations of computers.

(iii)Convert the decimal number 59.8125 into binary and octal. (OR)

11(b)Explain the different components of a computer system with block diagram.

Page 12: FOC Anna Univ Ques

12.(a)(i)Describe the differnt types of software with examples.

(ii)List the differnt software development steps and explain.

(OR)12.(b)(i)Explain the common types of internet access.

(ii)Write short notes on web browser.

(iii)Explain a typical structure URL.

13. (a)Draw and explain the various symbols of flowchart and also draw the flowchar to add an array of N elements

(OR)

13.(b)(i)Explain the features of Power Point package.

(ii)List and explain the features supported by spreadsheet package.

(iii)Briefly write about Desktop Publishing Software.

14.(a)(i)What are the different operators available in C? Explain with examples.

(ii)Differentiate between signed and unsigned integer.

(OR)

14.(b)(i)Explain the following conditional statements.1.nested if-else statement2.switch-case statement

(ii)Write a Cprogram that reads a number and display whether the number is prime or not.

15.(a)(i)Write a C program to reverse a given string.

(ii)Differentiate pass by value and pass by address in c.

(OR)

15.(b)Write a Cprogram that gets and display the report of n students with their personal and academic detals using structures.

Page 13: FOC Anna Univ Ques

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

Time: Three Hours Maximum: 100 Marks

Answer ALL Questions

Part A - (10 x 2 = 20 Marks)

1. What are 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

Page 14: FOC Anna Univ Ques

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 the 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 software in detail. (8) (ii) Briefly explain t he steps i n software development. (8)

OR

12. (b) (i) What is an internet? Explain its evolution and 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

Page 15: FOC Anna Univ Ques

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 numberusing 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)