You are on page 1of 11

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

4. (8) (OR) b) i) Explain about structures and unions suitable examples. Find the hexadecimal and decimal equivalent of the number (1110101101)2 3. int num. Write a C program for the following expressions. What is the difference between program and algorithm. What is the value of b[0] in the following program? main() { int a[5]={1. What are the main software's in o±ce package. What do you mean by `C' Tokens? 8.E.3. 2. } student. (8) B. i. (a) (i) Illustrate the process of addition and subtraction in 1s and 2s complement . a = b++ + ++b where b = 50 9. a = 5 <= 8&& 6 ! = 5 ii.ii) Explain any 2 constructs used for decision making. How each computer in the internet is being identified? 5.(5 x 16 = 80 Marks) 11./B.0}. Illustrate the application of size of operator to this structure.Tech. Part B . List few application software's. int *b. What are Super computers? Give examples. Consider the declaration: struct { char name. a) i) Explain about the different parameter passing methods with examples. } 10. Given an example for each and Explain the working of the construct. 6.7. (8) ii) Write notes on storage classes in C. b=&a[2]. (8) ii) Write notes on Pointers. (8) 15.(10 x 2 = 20 Marks) 1.Nov/Dec 2010 GE2112 Fundamentals of Computing and Programming Time: Three Hours Maximum: 100 Marks Answer ALL Questions Part A . 7.6.Degree Examinations.

(a) (i) Explain guidelines for preparing flowcharts. reg-no and marks of five subjects and percentage. (Marks 8) OR 11. URL. (Marks 16) OR 15. (Marks 8) 13. (Marks 8) (ii) Explain the various types of internet connection. (Marks 8) OR 12. (Marks 6) (ii) Define a structure called student that would contain name. (Marks 8) (ii) Differentiate between application software and system software. (b) (i) Write a C program to compute the following function: S = (x2 +x4 +. calculate the percentage and display the name. (b) (i) Discuss the different forms of macro substitution in preprocessed directives. (a) (i) What are the different operators available in C? Explain with examples. Web Browser. Also state the properties of a good algorithm. (Marks 8) (ii) Write an algorithm for finding sum and average of n numbers. (a) (i) State and explain the various steps involved in development of a software.benefits and limitation of flowcharts. (Marks 16) 14.. reg-no and marks of five subjects for 30 students. (Marks 12) (ii) Compare `for'. (Marks 8) OR 13.system with suitable examples. (Marks 8) (ii) Explain the evolution of computers. (Marks 4) OR 14. reg-no. with examples. (Marks 12) (ii) Differentiate between signed and unsigned integer. (a) Explain. `while' and `do-while' loops. (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. (Marks 4) 15.+ x2n)=n. marks of 30 subjects and . Internet Service Provider. Write a program to read the details of name. Trace the program for the values x = 2 and n = 5. (Marks 10) 12. the different types of storage classes in C. (b) (i) Explain the following: WWW. (b) (i) Find the decimal equivalent of the number(A2B:D8)16 (Marks 3)(ii) Find the binary equivalent of the number(108:625)10 (Marks 3) (iii) Draw the block diagram to illustrate the basic organization of computer system and explain the functions of the various units..

PART –B (5X16=80marks) 11. (16) (OR) b) i) Write a C program to count the letters in a sequence of characters. (8) (OR) b) With suitable diagram. Distinguish between While. (8) 13. List the different types of software. (8) ii) Describe the basic Internet terminologies used. List any four office packages. (8) (OR) b) i) Write a pseudo code for calculating compound interest. What is pseudo code? 6. a) Explain the step involved in software developments with suitable example. (16) (OR) b) i) Discuss the services provided by the internet. 7. 5.3. (16) 12.8. Write a C program to print the number 10 ten times. explain the basic organization of computers. (8) ii) Write the uses of flowchart and algorithm with suitable examples. 10. 9. Write the binary and octal equivalent of hexadecimal number 7BD.percentage of each student.1. (8) .a) i) Explain different types of computers.…) (8) ii) Draw a flowchart to add two matrices. the number 9 nine times and so on.Do and Do…While statement in C. (8) 14. What are the factors needed to classify computers? 2. 3. (8) ii) Write the use of switch… case construct with its syntax and an example. 8.. What is IP Address? 4.1.13. Write a C function to check whether the given year is leap or not.a) Explain different data types in C with suitable examples.2. a) i) Write algorithm to print the Fibonacci series: (0. (Marks 10) GE 2112 – FUNDAMENTALS OF COMPUTING AND PROGRAMMING Answer ALL questions PART – A (10 X 2 = 20 marks 1.5. (8) ii) Discuss about the evolution of computers. Write any two different between structures and union.

b) Describe any four I/O statement of 'C'. a) Write C program to read and write employee and their data of joining using nested . (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. (7) What is the purpose of main()? (8) What is an argument? Differentiate between formal arguments and actual arguments. a) i) Write a C program to concatenate two strings.a) What is the difference between an algorithm and pseudocode? Also write an Algorithm and pseudocode for solving a quadratic equation. 14. (16) 15. (8) (OR) b)Write short notes on: i) Menory of a computer . 12 a) Discuss about the different steps involved in the software development. (8+8). (8) CS 16 – FUNDAMENTALS OF COMPUTING AND PROGRAMMING Time: Three hours Maximum: 100 Marks 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. (8) ii) Discuss about pointers and its use in C. (8) ii) Discuss about preprocessor facility in 'C'. (8+8) (OR) c) Draw a flowchart and write a C program to print student grade using structure. a) Describe various data types in C. (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. (8) ii) Explain application of software packages. (16) (OR) b) i) Explain any eight formatting features with suitable example.15. (8) (OR) b) i) Explain about structure declaration in C with suitable example. (16) (OR) b) How the software are classified? Explain each with relevant example. (8) ii) Discuss in detail the classification of computers. (16) 13.ii) Secondary storage devices.

FUNDAMIINTALS OF COMPUTING Time : Three hours Maximum : 100 marks Answer ALL questions.structure. Explain with your own example. What is the difference between union and structure? 10. What are the functions of an editor? 7. (8) (ii) Describe the features of MS-word. (8) 13. (a) (i) Draw the flow chart for find the sum of all the odd numbers in a given set of numbers. (6) www. 5.225 to octal and hexadecimal. Write the procedure for subtracting two binary numbers using two's complement. (8) t2. What are the characteristics of von Neumann architecture? 2. 8.com (b) (i) f)raw the basic block diagram of a digital computer and explain the functions of each unit. (8) Or . Find the equivalent octal number for AF6. (8) (ii) Explain how multiplication and division of binary numbers can be done using arithmetic shift operation. List the bitwise operators supported by C language. What is meant by Desktop publishing? 6. (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. (8+8) GE 1102 . (6) (iii) Convert 225. What is an icon? Give an example. Write the C code for finding the sum of N integers using pointers? PARTB-(5 x 16=80marks) 11. 3. (8) (ii) classify computers based on their usage and explain their characteristics. And write a for loop to store information and later modification to the declared pointer. (a) (i) What are the advantages of stored program computers? (4) (ii) List the registers used in a computer and explain their use. What are the advantages of switch statement? 9. 4. ii) Describe how to declare two dimensional array using pointers.MaanavaN. (9) Or (i) Explain the working of an interpreter using a flow chart. (16) (OR) b) i) Describe what is meant be passing by reference. PARTA-(10 x2=20 marks) 1.

Or Write a C program to sort thc elements of an n display the elements in the following pattern : 543 6t2 789 With examples.(i) Describe the features of Spreadsheet. (8) 15. 10.Give an example for enumerated data type.(8) COMPUTER PROGRAMMING (Common to all branches) PART-A(10x2=20) Answer all questions 1.What is the main advantage of linked list? PART-B(5x16=100) 11 (a) (i) Discuss about different services provided by the internet.Draw flow chart to find the lowest of two numbers.Define Stack and Queue. 4. (8) (iii) Explain the following control statements using examples: WHILE statement.What are different components of computer? 2.Write C assignment statements to evaluate the following equation T=(2ab)*g/(a+b).Write a C program to find the greatest of given 10 numbers. 7.What is the difference between structure and union? 8. all digits to 0 and all other special characters to*. (8) (ii) Write notes on preprocessor directives. (8) (ii) Write a C program to read a line of mixed text and to display after converting all upper case to lower case. What are its applications? (8) (ii) Write a pseudocodefo r finding the factorial of given number. explain how input and output managed in C. (ii) List the different categories of softwares. 5. (a) (i) Write a C program using pointers to concatenate two strings. 3.What do you mean by dynamic memory allocation? 9. IF ELSE IF statement. OR . (8) Or (b) (i) Write a C program to read m element of last column of each other columns in that row.What is the advantage of using register variable? 6. x n matrix and to check whether the row is the sum of the elements of the array (8) (ii) Explain the use of structure within a structure and structures using examples.

. OR (b) (i)Illustrate the principles of different storage classes in C. 9. Write a C function to check whether the given year is leap or not. Write the binary and octal equivalent of hexadecimal number 7BD. period in year and rate of interest.. (ii)Write a program to assign pointer value to another variable and write program to add two numbers through their pointers.. Write a C program to print the number 10 ten times.Do and Do…While statement in C. Distinguish between While. What are the factors needed to classify computers? 2.(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. x-x3/3!+x5/5!-x7/7!+. OR (b) (i) Write a program to write data to a text file and to read it. PART –B (5X16=80marks) . 3. 5. Write any two different between structures and union. What is IP Address? 4. (ii)Write note on self referential structures. the number 9 nine times and so on. OR (b) (i) Write a C program to evaluate the following series. List the different types of software. (ii)Write a C program to find the factorial of a given number using recursion. (ii)Write a program to calculate the sum of remainders obtained by dividing with modular division operation by 2 on 1 to 9 numbers. 7.xn/n! 13 (a) Write a C program to arrange the names in alphabetical order. 15 (a) Implement a queue so that each element of the queue hold a list of integers. List any four office packages. 8. What is pseudo code? 6. OR (b) Write a C program to insert to note in the beginning. 12 (a) (i) Write a C program to find the simple interest? Inputs are principal amount. 14 (a) (i)Write a program to display array elements and their address using pointers. 10. Write the funcions add_Q and remove_Q for such a queue. middle and end of the linked list GE 2112 – FUNDAMENTALS OF COMPUTING AND PROGRAMMING PART – A (10 X 2 = 20 marks 1.

/B.3.11. (16) (OR) b) i) Write a C program to count the letters in a sequence of characters. (16) 12. a) i) Write a C program to concatenate two strings. (8) ii) Discuss about the evolution of computers. (8) ii) Discuss about preprocessor facility in 'C'.13.What is web server? .Distiguish between complier and interpreters. 4. (8) (OR) b) i) Explain about structure declaration in C with suitable example.Distinguish between Analog and Digital computer. a) i) Write algorithm to print the Fibonacci series: (0.4375 decimal to binary system.a) Explain different data types in C with suitable examples. (8) 13. 3. (8) ii) Write the uses of flowchart and algorithm with suitable examples. (8) ii) Discuss about pointers and its use in C. (8) ii) Describe the basic Internet terminologies used.E. a) Explain the step involved in software developments with suitable example. (8) 14.5.a) i) Explain different types of computers.TECH. JANUARY 2010 REGULATIONS 2008 FIRST SEMESTER COMMOM TO ALL BRANCHES GE2112 FUNDAMENTAL OF COMPUTING AND PROGRAMMING TIME:THREE HOURS MAXIMUM:100 MARKS ANSWER ALL QUESTIONS PART A-(10*2=20MARKS) 1. (8) ii) Write the use of switch… case construct with its syntax and an example. (16) (OR) b) i) Discuss the services provided by the internet. (8) B.8. DEGREE EXAMINATIONS. 2. (8) (OR) b) i) Write a pseudo code for calculating compound interest. explain the basic organization of computers. (8) 15.Convert 0.1. (8) (OR) b) With suitable diagram.1.…) (8) ii) Draw a flowchart to add two matrices.2.

Write a code segment using while statement to print numbers from 10 down to 1. 12.How strings are represented in c language? 10.What is an algorithm? 6. (OR) 11(b)Explain the different components of a computer system with block diagram. (ii)List the differnt software development steps and explain.What are the advantages of unions over structures? PART B-(5*16=80 MARKS) 11. (ii)List and explain the features supported by spreadsheet package.Give the importance of a graphic packages. (a)Draw and explain the various symbols of flowchart and also draw the flowchar to add an array of N elements (OR) 13. (OR) 12. 7. (iii)Explain a typical structure URL.(a)(i)Describe the differnt types of software with examples. 8. .(b)(i)Explain the features of Power Point package.(a)(i)What are the characteristic of a computer? Discuss (ii)Briefly explain the various generations of computers. (ii)Write short notes on web brwer.(b)(i)Explain the common types of internet access. (a)a=5 <= 8 && 6!=5 (b)a = b++ + ++b where b = 50 9. (iii)Convert the decimal number 59.Write a c program for the following expressions. (iii)Briefly write about Desktop Publishing Software.5. 13.8125 into binary and octal.

(OR) 15. 1.(b)Write a Cprogram that gets and display the report of n students with their personal and academic detials using structures.switch-case statement (ii)Write a Cprogram that reads a number and display whether the number is prime or not. 15. . (OR) 14.nested if-else statement 2. (ii)Differentiate pass by value and pass by address in c.(b)(i)Explain the following conditional statements. (ii)Differentiate between signed and unsigned integer.(a)(i)Write a C program to reverse a given string.(a)(i)What are the different operators available in C? Explain with examples.14.