0% found this document useful (0 votes)
23 views51 pages

Programming in C University QP

The document contains question papers for various B.E./B.Tech. degree examinations in Computer Science and Engineering and Civil Engineering, covering topics such as programming in C, computer fundamentals, software development, and file processing. Each paper includes sections with multiple choice questions, short answer questions, and detailed programming tasks. The structure of the exams is consistent, with a maximum of 100 marks and a three-hour duration.

Uploaded by

Viola Sharon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views51 pages

Programming in C University QP

The document contains question papers for various B.E./B.Tech. degree examinations in Computer Science and Engineering and Civil Engineering, covering topics such as programming in C, computer fundamentals, software development, and file processing. Each paper includes sections with multiple choice questions, short answer questions, and detailed programming tasks. The structure of the exams is consistent, with a maximum of 100 marks and a three-hour duration.

Uploaded by

Viola Sharon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 51

*X10310* Reg. No.

Question Paper Code : X 10310

B.E./B.Tech. Degree Examinations, november/decembeR 2020/


APRIL/MAY 2021
Second Semester
Computer Science and Engineering
CS 8251 – Programming in C
(Common to : Computer and Communication Engineering/ Information Technology)
(Regulations 2017)

Time : Three Hours Maximum : 100 Marks

Answer all questions


Part – A (10×2=20 Marks)

1. Distinguish between character and string.

2. When to use global variable in programming ?

3. What is the starting index of an array ?

4. What are the different ways of initializing array ?

5. What is pointer arithmetic ?

6. Distinguish between call by value and call by reference.

7. How can you access the members of the Union ?

8. Specify the use of typedef.

9. What are unformatted data files ?

10. Write short note on State Transaction Processing.

Part – B (5×16=80 Marks)

11. a) Discuss about preprocessor directive with example program.


(OR)
b) Summarize the various types of operators in ‘C’ language along with its priority
and justification.
X 10310 *X10310*

12. a) Describe the following functions with examples.

i) strlen(). (4)

ii) strcpy(). (4)

iii) strcat(). (4)

iv) strcmp(). (4)


(OR)
b) Write a C program to sort the n numbers using selection sort and Trace it using
following values 64, 25, 12, 22, 11.

13. a) Explain in detail about recursive function with sample code.


(OR)
b) Write a C program for Swapping of two numbers and changing the value of a
variable using pass by reference.

14. a) Discuss about the following.

i) Singly linked list and operations (insertion, deletion, searching) with code
segment. (10)

ii) Advantages and disadvantages of singly linked list. (6)


(OR)
b) C program to Add Two Distance (in inch-feet) System Using Structures.

15. a) Explain the types of file processing with its suitable application.
(OR)
b) Write a C program to do the following.

i) Create a text file ‘input.txt’. (8)

ii) Print the contents of file in reverse order. (8)

___________________
Reg. No. :

Question Paper Code : 40386

B.E./B.Tech. DEGREE EXAMINATIONS, NOVEMBER/DECEMBER 2021.

Second Semester

Computer Science and Engineering

CS 8251 – PROGRAMMING IN C

(Common to Computer and Communication Engineering/ Information Technology)

(Regulations 2017)

Time : Three hours Maximum : 100 marks


Answer ALL questions.

PART A — (10 × 2 = 20 marks)

1. In which ways does a switch statement differs from an if statements.

2. What is associativity and why is in important?

3. What is the difference between NULL. ‘\0’ and 0?

4. How does the C language handle the values in an array internally?

5. Why addition of two pointers is impossible?

6. Why is the return statement not necessary when function is called by


reference?

7. Illustrate nested structure with an example.

8. What is a self-referential structure?

9. Explain argv and argc.

10. Distinguish between text mode and binary mode operation of a file.
PART B — (5 × 16 = 80 marks)

11. (a) (i) Explain enumeration constants with an example program. (8)
(ii) Write a ‘C’ program to compute student grades using switch case
statement. The input to be program are marks of 5 subjects,
compute the total and average and find respective grade of the
students. (8)
Grades
>90 ‘S’
80-90 A
70-79 B
60-69 C
50-59 D
40-49 E
<40 F

Or

(b) (i) Explain iterative statement in ‘C’ with an example. (8)


(ii) Discuss pre-processor directives with example program. (8)

12. (a) What is string? Explain about declaration and initialization of string in
‘C’. How strings are displayed with different formats? Explain with
examples.

Or

(b) Write a C program to check whether the given matrix is symmetric or


not.

13. (a) Explain different string handling functions available in C with examples.

Or

(b) Write a C program to access the values of an array of elements using


pointer.

14. (a) Explain nested structure and self-referential structure with an example.
Or

(b) Define a structure. Describe how to declare and initialize structure and
its members with an example.

2 40386
15. (a) Explain about the fopen (), fclose(), feof(), fprintf(), fscanf(), fseek() and
rewind() functions.

Or
(b) Create two text files and write a C program to add to contents of one file
at the end of another.

—————————

3 40386
Reg. No.

Question Paper Code : 51644

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


First Semester
Civil Engineering
GE 2112/CS 16/080230001 - FUNDAMENTALS OF COMPUTING AND
COMPUTER PROGRAMMING
(Common to All Branches)
(Regulations 2008)

Time : Three Hours Maximum : 100 Marks


Answer ALL questions.
PART -A (10 x 2 = 20 Marks)

1. List any two important characteristics of computer.


2. List some of the key hardware and software technologies of fifth generation
computers.
3. What are the types of web browsers ?
4. List some of the internet applications.
5. List any four office packages.
6. Define algorithm.
7. What do you mean by 'C' Tokens ?
8. What does the following fragment print ?
for (int i = 0;i < 10;i + +)
{
if (!(i%2)) continue;
printf("%d\t", i);
}

9. Define Array.
10. What is the use of pointer ?
16-06 1 51644

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
PART -B (5 x 16 = 80 Marks)

(16)
11. (a) Explain in detail about basic computer organization with a neat sketch.
OR
classification of
(b) What are the applications of computer ? Discuss in detail about
(16)
computer.

(8)
12. (a) (i) Explain in detail the types of computer software.
(8)
(ii) Explain in detail the various steps involved in software development.
OR
(6)
(b) (i) Explain the common types of internet access.
Write short note on web browser. (5)
(ii)
(5)
(iii) Explain a typical structure of URL.

(10)
13. (a) (i) Explain the features of Microsoft Ward.
(6)
(ii) Draw a flowchart to find the largest of three numbers.
OR
(8)
(b) (i) Discuss the features of Microsoft Excel.
(8)
(ii) What is pseudo code ? Explain its guidelines and benefits.

14. (a) Explain all the arithmetic, relational, logical operators used in C language with (16)
necessary expressions as examples.
OR
(b) Write a program in C language for listing and counting all the numbers divisible (16)
by 3 and not by 5 from 1 to 100.

15. (a) Differentiate between the following concepts and give example for each :
(8)
(i) Structure and union
(8)
(ii) Call by reference and call by value.
OR
(4)
(b) (i) Discuss about functions in 'C'.
and use it
(ii) Write a 'C' function to calculate the factorial of a given number
in the main program to calculate the binomial coefficient of a given
number. Given binomial coefficient
(12)
n! (k! x (n - k) ! )

2 51644

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
1111111 11111111 1111111111111111111111 Reg. No. :

Qu estion P
a er
p Co ed : 52636
B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER 2017
First Semester
Civil Engineering
GE 2112 - FUNDAMENTALS OF COMPUTING AND COMPUTER
PROGRAMMING
(Common to all branches)
(Regulations 2008)
Time : Three Hours Maximum : 100 Marks
Answer ALL questions
PART -A (10x2=20 Marks)

1. State the characteristics of computers.

2. Convert binary to hexadecimal 1100101010011000

3. What are the various types of software ?

4. List out the software development life cycle process.

5. Define algorithm and how it differs from program ?

6. Draw the flowchart for computing factorial of 'n'

7. Give any four examples from basic data types

8. Write about the arithmetic and logical operators

9. Briefly write about array

10. Distinguish between structure and union.

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
52636 11111 II
111111 11111111 III 1111 1111 II 1

PART -B (5 x 16=80 Marks)

11. a) Explain generation of computers and its classification.


(OR)
b) Explain the different components of a computer with required diagram.

12. a) Explain software development life cycle in detail.


(OR)
b) Illustrate basic internet terminology and also explain how to get connection to
internet application.

13. a) Draw the flowchart and write an algorithm to find the maximum value from
given values.
(OR)
b) Define flowchart and explain guidelines for drawing a flowchart with necessary
symbol.

14. a) Explain the structure of 'C' program with an example.


(OR)
b) Explain branching and looping with an example program

15. a) List the types of functions and explain with suitable example.
(OR)
b) Explain call by value and call by reference in detail.

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
Reg. No. :

Question Paper Code : 97147

B.E./B.Tech. DEGREE EXAMINATION, DECEMBER 2015/JANUARY 2016.

First Semester

Civil Engineering

GE 2112 - FUNDAMENTALS OF COMPUTING AND COMPUTER


PROGRAMMING

(Common to all Branches)

(Regulations 2008)

Time : Three hours Maximum : 100 marks


Answer ALL questions.
PART A - (10 x 2 = 20 marks)
1. Differentiate mini and micro computer.
2. Convert 24.3 to base 2, 8 and 16.
3. List the types of softwares.
4. What is black box testing and where is it used?
5. How will you perform what if analysis using excel worksheet?
6. Draw a flowchart to find the maximum of three numbers.
7. List the operator precedence in 'C'.
8. Compare Do -while and until,loop constructs.
9. What is a function prototype?
10. A 'C' program consists of the following statements
char u,v = 'A';
Char *pu, pv = &v;

*pv v+ 1;
u = *pv+1;
pu = &u;
Each character occupies 1 byte of memory. u is stored in F8C16 and v stored in
F8DIG. Give value assigned to &v, pv and * pv.

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
PART B - (5 x 16 = 80 marks)

11. (a) (i) Discuss on fifth generation computers. (8)

(ii) Perform binary addition and multiplication on


A = 1101012
B = 1111102. (4)
(iii) Convert 738 to binary and hexadecimal number system. (4)

. Or

(b) (i) Draw a block diagram of a computer and explain the functions of
various parts of computer. "(8)

(ii) Convert 100.10112 to octal, hexadecimal and decimal number. (6)

(iii) What is the advantages of using hexadecimal numbers?

12. (a) Explain software development life cycle in detail.

Or
(b) Discuss internet applications like E-mail, search engines and chatting in
detail. (16)

13. (a) (i) Write an algorithm to arrange a set of numbers in descending


order. (8)

(ii) Write a pseudocode for simulating a simple calculator for


performing +,-,* and /. (8)

Or

(b) (i) Explain the process of formatting text using MS -WORD text
processor. (8)

(ii) How will you include an object, picture and graphics in a


spreadsheet package? Explain. (8)

14. (a) (i) Write a menu driven program in C which has the following options.
(1) Factorial of a number
(2) Prime or not
(3) Odd or even
(4). Exit. (10)
(ii) Write a C program to get a five digit number as input through
keyboard and calculate the sum of its digits. (6)

Or

2 97147

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
41

to check whether a
(b) (i) Write a 'C' program using conditional operators
character entered is lower case alphabet, special symbol or upper
(8)
case character.
be calculated using
00 The approximate intelligence of a person can
the following formula i = 2 + (y + 0.6x) .
table of values of i, y and
Wkite a 'C' program 'which will produce a
for each value of y, x varies from
x where y varies form 1 to 6 and
(8)
5.5 to 12.5 in steps of 0.5.
calculation of area and
15. (a) (i) Write macro definitions with arguments for
these definitions
perimeter of a triangle, a square and a circle. Store
file in your program and call
in a file called "areaperi.h" include this for
and perimeter
the macro definitions for calculating area (10)
different squares, triangles and circles.
will generate a table
(ii) Write a C program using pointer notation that
containing the following three columns.
(6)
t a ebt sin c t a ebt cos Ct
Or
store
(b) (i) Write a program in C using file pointer and structures to
customer records in a bank having following entities.
old balance, new
Name, address, account number, account type,
allow insert, delete and
balance and payment. The program must (10)
updating customer records. 0

displays all the roots of a


Write a function that calculates and (6)
quadratic equation.

3
97147

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
Reg. No. :
11111

Question Paper Code : 97092

B.E./B.Tech. DEGREE EXAMINATION, DECEMBER 2015/JANUARY 2016

First Semester

Civil Engineering

CS 1101 - FUNDAMENTALS OF COMPUTING AND PROGRAMMING

(Common to Mechanical Engineering)

(Regulation 2008)

Time : Three hours Maximum : 100 marks

Answer ALL questions.

PART A - (10 x2 = 20 marks)

1. Difference between digital and analog quantities?

2. Do AND operation.
101101 -
011011

3. Convert Hexadecimal number C9D into decimal number.

4. What are the advantages of binary representation of data?

5. Subtract 1010 from 1000 using 2's complement method.

6. What are device drivers?

7. Define DSL and give its. classification.

8. What are the Common types of Networks?

9. What are identifiers?

10. Compare scanf and printf function.

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
PART B - (5 x 16 = 80 marks)

11. (a) (i) Describe the components of computer system in detail. (6)

(ii) How a source code is translate to executable code. Explain the three
language translators along with linker and loader module. Give its
pros and cons. (10)

Or
(b) Describe CPU and its interaction with other units. State the function of
various CPU register and its typical organization. (16)

12. (a) (i) What is Gray code? Discuss in detail about:


(1) Binary to Gray code conversion.
(2) Gray -to -Binary code conversion (10)

(ii) Convert the 37.8125(.0) decimal number to its binary number. (3)

(iii) Add the BCD Numbers 00010110 and 00010101. (3)

Or
(b) (i) Discuss in detail about arithmetic operations with signed numbers
using examples. (10)

(ii) Express +39 and -39 in Sign -Magnitude Form and 2's complement
Form. (6)

13. (a) Write brief note on the following:


(i) Optical input devices. (5)

(ii) Application software (5)

(iii) Storage devices. (6)

Or

(b) Write brief note on the following:


(i) Memory devices (5)

(ii) Audio visual input devices (5)

(iii) Graphics and multimedia (6)

14. (a) Name some of the basic services provided by the. internet. Explain how
each of these services helps the internet users. (16)

Or.

(b) Explain in detail about computer network basics and structure and its
types. (16)

2 97092

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15. (a) (i) Write C program to find a Fibonacci serious for a given number. (8)
(8)
(ii) Write 'C program to manipulate addition of two matrices.
Or

(b) (i) What is different between structures and unions? (3)

(ii) Discuss in detail about looping (While, Do - while, for) concepts


(13)
with suitable example.

3 97092

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
Reg. No.

Question Paper Code : 11166

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


First Semester
Civil Engineering
CS1101 - FUNDAMENTALS OF COMPUTING AND PROGRAMMING
(Regulation 2008)

Maximum : 100 Marks


Time : Three Hours

Answer ALL questions.


PART -A (10 x 2 = 20 Marks)

1. List the components of a computer system.

2. Explain the various types of software.

3. Convert the following into Decimal.

(a) 773(8) (b) 6BA(16)

4. Define l's complement and 2's complement.

5. What is the difference between volatile and non-volatile memory ?

6. What is application software ? Give example.

7. Describe the common types of networks.

8. How is the modem work ?

1 11166
16-06

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
9. Correct the error, if any, otherwise give the output of the following 'C' program :

Main ( )

int a, b = 5, c = 2;

a=b++c;
print fi"a is (Yod", a);

10. What is the use of including 'conio.h' in a 'C' program ?

PART -B (5 x 16 = 80 Marks)

11. ) Define computer ? Discuss in detail about block diagram of a computer with neat
diagram. (16)

OR
(b) What is binary digit ? Explain in detail about basic logic operations. (16)

12. (a) Convert the following numbers from the given base to the base indicated :
(i) Decimal 225.225 to binary and octal. (4)

(ii) Octal 623.77 to binary, decimal and hexadecimal. (6)

(iii) Hexadecimal 2AC5.D to decimal, octal and binary. (6)


OR

(b) Simplify the following Boolean function :


F(A, B, C, D) = E (0, I, 2, 5, 8, 9, 10) in (1) sum of products and
(2) product of sums. (4)

(ii) Perform the arithmetic operations :


(+42) + (-13) and
(-42) - (-13) in binary using
(1) sign l's complement representation
(2) sign 2's complement representation (6)
2 11166

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
(iii) What is the range of numbers that can be accommodated in a 16 bit register
when the binary numbers are represented in sign magnitude ?
Give the answer in equivalent decimal representation. (6)

13. (a) What are input devices and output devices ? Briefly explain some popular input
device and various types of output devices. (16)

OR
(b) (i) Describe the architecture of UNIX operating system. (6)

(ii) Specify the significant features of windows vista operating system. (6)

(iii) Write the applications of MS Word system. (4)

14. (a) (i) Explain in detail about Broadband Connection. (8)

(ii) Describe different types of network structures. (8)

OR
(b) (i) Describe about the Cable Modern Connections with Diagram. (8)

(ii) Write briefly about network hardware. (8)

15. (a) (i) Write a 'C' program for multiplying two matrices. (8)

(ii) Explain the concept, 'call by reference' with a programming example. (8)

OR
(b) (i) Write a 'C' program for customer purchase billing using the 'structure'
concept. (8)

(ii) Explain recursion with suitable example. (8)

3 11166

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
*X60639* Reg. No. :

Question Paper Code : X 60639

B.E./B.Tech. Degree Examinations, NOV./DEC. 2020


First Semester
Civil Engineering
GE 2112/CS 16/080230001 – fundamentals of computing and
programming
(Common to all branches)
(Regulations 2008)
Time : Three Hours Maximum : 100 Marks
Answer all questions.
Part – A (10×2=20 Marks)
1. Give the classification of computers.
2. Convert the (756)10 to octal and hexa decimal.
3. List any two types of software.
4. Define Internet.
5. What is an algorithm ?
6. What are the advantages of flowchart ?
7. What do you mean by ‘C’ Tokens ?
8. What does the following fragment print ?
for (int i = 0; i < 10; i + +)
{
if !(i%2)) continue;
printf(“%d\t”, i);
}
9. What is the need for user defined functions ?
10. What are the advantages of unions over structures ?

Part – B (5×16=80 Marks)

11. a) i) Explain the various generations of computers. (10)


ii) Briefly explain the characteristics of a computer. (6)
(OR)
b) i) Draw the block diagram of a computer and explain. (10)
ii) Convert the decimal number 698.125 into the binary and octal
equivalent. (6)
X 60639 *X60639*

12. a) Explain the steps of software developments with suitable examples. (16)
(OR)
b) i) Discuss the following internet terminologies.
1) Bandwidth
2) FTP
3) IP Address
4) Modem. (8)
ii) Write some of the internet applications. (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)
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) What are the categories of operators in ‘C’ ? Discuss any two operators with
suitable programs. (16)
(OR)
b) i) Write a ‘C’ program to generate Fibonacci series for a given number. (8)
ii) Write a ‘C’ program to find a factorial of a given number. (8)

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


ii) Differentiate pass by value and pass by address in C. (8)
(OR)
b) Explain the following with an example program :
i) Declaring a structure. (5)
ii) Pointer to multi dimensional array. (6)
iii) Union. (5)

–––––––––––––
*X67535* Reg. No. :

Question Paper Code : X 67535

B.E./B.Tech. Degree Examinations, NOV./DEC. 2020


First Semester
Civil Engineering
Cs 1101 – FuNDamENTals oF CompuTiNg aND pRogRammiNg
(Common to All Branches )
(Regulations 2008)

Time : Three Hours Maximum : 100 Marks


Answer all questions.
Part – A (10×2=20 Marks)

1. List the components of a computer system.

2. Explain the various types of software.

3. Define BCD.

4. What is digital code ?

5. Differentiate between PROM and EPROM.

6. Give the types of printers.

7. Define DSL and give its classification.

8. What are the Common types of Networks ?

9. What are identifiers ?

10. Compare scanf and printf function.

Part – B (5×16=80 Marks)

11. a) Explain the components of a computer system with a neat block diagram. (16)
(OR)
b) With suitable examples explain the logic operations : AND, OR, NAND and
NOR. (16)
X 67535 *X67535*
12. a) Convert the following numbers from the given base to the base indicated :
i) Decimal 225.225 to binary and octal. (4)
ii) Octal 623.77 to binary, decimal and hexadecimal. (6)
iii) Hexadecimal 2AC5.D to decimal, octal and binary. (6)
(OR)
b) i) Simplify the following Boolean function
F (A, B, C, D) = ∑ (0, 1, 2, 5, 8, 9, 10) in (1) sum of products and (2) product of
sums. (4)
ii) Perform the arithmetic operations.
(+42) + (–13) and
(–42) – (–13) in binary using
1) sign 1’s complement representation.
2) Sign 2’s complement representation. (6)
iii) What is the range of numbers that can be accommodated in a 16 bit register
when the binary numbers are represented in sign magnitude ?
Give the answer in equivalent decimal representation. (6)

13. a) What are input devices and output devices ? Briefly explain some popular input
device and various types of output devices. (16)
(OR)
b) i)
ii) Brief the salient features of Windows VISTA OS. (4)
iii)

14. a) i) Explain in detail about Broadband Connection. (8)


ii) Describe different types of network structures. (8)
(OR)
b) i) Describe about the Cable Modern Connections with diagram. (8)
ii) Write briefly about network hardware. (8)

15. a) i) Write C program to find a Fibonacci serious for a given number. (8)
ii) Write C program to manipulate addition of two matrices. (8)
(OR)
b) i) What is different between structures and unions ? (3)
ii) Discuss in detail about looping (While, Do-while, for) concepts with suitable
example. (13)
–––––––––––––
Reg. No. :

Question Paper Code : 80637

B.E./B.Tech. DEGREE EXAMINATIONS, NOVEMBER/DECEMBER 2021.

First Semester

Civil Engineering

GE 2112/CS 16/080230001 — FUNDAMENTALS OF COMPUTING AND


PROGRAMMING

(Common to All Branches)

(Regulations 2008)

Time : Three hours Maximum : 100 marks


Answer ALL questions.

PART A — (10  2 = 20 marks)

1. Convert binary number 1100101 in to Decimal Number.


2. What are the two methods for checking parity?
3. What are the types of web browsers?
4. List some of the internet applications.
5. What is an algorithm?
6. What are flowcharts and list down their advantages?
7. What are the main feature and applications of C language?
8. Write a code segment using while statement to print numbers from 10 down
to 1.
9. What is a pointer?
10. Write any four features of arrays.
PART B — (5  16 = 80 marks)

11. (a) Explain in detail about basic computer organization with a neat sketch.
(16)
Or
(b) What are the applications of computer? Discuss in detail about
classification of computers. (16)
12. (a) (i) Explain about the types of software. (10)
(ii) Write about UIRL. (6)

Or
(b) (i) Discuss the software development steps. (10)
(ii) Explain the common types of internet connections, (6)

13. (a) (i) What is pseudo code? Explain how it can be designed and its
benefits and limitations. (8)
(ii) Briefly discuss about word processor and spread sheets. (8)

Or
(b) Explain sequence logic, selection logic and iteration logic design structure
in pseudocode. (5 + 5 + 6 = 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
(b) (i) Write a C program that reads a character and displays only the
vowels using switch case structure. (8)
(ii) Write a C program that displays a pyramid structure using
numbers. (8)

15. (a) (i) Write a C program to sort the given set of numbers in ascending
order. (8)
(ii) Discuss about any eight built-in functions. (8)

Or
(b) (i) Write the syntax of structure declaration in ‘C’ program. Give an
example. (4)
(ii) Distinguish between structure and union. (4)
(iii) Write a C program to find the addition of two matrices. (8)

—————————

2 80637
Reg. No.
1

Question Paper Code : 27655

B.E./B.Tech. DEGREE EXAMINATION, DECEMBER 2015/JANUARY 2016


First Semester
Civil Engineering
GE6151 : COMPUTER PROGRAMMING
(Common to all branches)
(Regulations - 2013)

Time : Three Hours Maximum : 100 Marks

Answer ALL questions.


PART -A (10 x 2 = 20 Marks)

1. Convert (1011101)2 to octal.

2. Differentiate between algorithm and pseudocode.

3. What is meant by linking process ?

4. What are the input and output functions in C ?

5. Write a C program to store Fibonacci series in an array.

6. List the string functions available in C.

7. State the significance of pointers.

8. Write a program to print the first 50 prime numbers recursively.

9. Define a structure called ID Card to hold the details of a student.

10. List some C preprocessor directives.

1 27655

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
PART -B (5 x 16 = Marks)
11. (a) (i) Elaborate the various generations of computers and their characteristics
and represent them in a tabular format. (8)
(ii) Write in detail about the basic organization of a computer.. (8)
OR
(b) Write an algorithm and flowchart to simulate the railway ticket booking process.

12. (a) (i) Describe the structure of a C program using "Calculator program"
example. (8)
(ii) Write short note on branching statements in C. (8)
OR
(b) Write in detail about the various looping statements with suitable examples.

13. (a) (i) Write a C program to multiply two 3 x 3 matrices. (10)


(ii) Write a C program to find the determinant of the resultant matrix. (6)
OR
(b) Write the following programs :
(i) to sort a given set of strings alphabetically. (6)

(ii) to print whether each word is a palindrome or not. (6)


(iii) to count the length of each string. (4)

14. (a) (i) What is the difference between call by value and call by reference ? What
are the problems associated with each ? Explain with suitable examples. (8)

(ii) What are the advantages of using recursion ? Demonstrate with examples. (8)
OR
(b) Write in detail about pointer arithmetic. Support your answer with appropriate
examples.

15. (a) (i) What is the need for structure data type ? Does structure bring additional
overhead to a program ? Justify. (10)
(ii) Write short note on structure declaration. (6)
OR
(b) What are the storage classes available in C ? Demonstrate the working of each
storage class.

2 27655

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
Reg. No.

Question Paper Code : 57408

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


First Semester
Civil Engineering
GE 6151 - COMPUTER PROGRAMMING
(Common to all branches)
(Regulations 2013)

Time : Three Hours 1 laximum : 100 Marks

Answer ALL questions.


PART -A (10 x 2 = 20 Marks)

1, Classify the computers based on performance, size, cost and capacity.

2. Convert the binary number 10110111.1101 into decimal number.

3. What are variables ? Give examples.

4. Define implicit type conversion.

5. What is an array ?

6. Define string. Give examples.

7. Specify the advantages of functions.

8. How is pointer arithmetic done ?

9. What do you mean by structures ?

10. State the importance of union.

10-06 1 57408

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
PART -B (5 x 16 = 80 Marks)
Describe the basic computer organization with neat diagram. (10)

Draw the flowchart to solve the quadratic equation. (6)

OR
Explain the various generations of computers. (8)

What is pseudo code ? Explain its guidelines and benefits. (8)

Explain the different types of operators available in C. (10)


12. (a) (i)
Discuss the basic data types in C. (6)
(ii)
OR
(b) (i) Describe the various input and output statements in C with suitable
examples. (10)

Write a C program for the following series : (6)


(ii)
1+2+3+4+ +n

Write a C program to count the number of vowels in your name. (6)


13. (a) (i)
Write a C program to multiply two matrices. (10)
(ii)
OR
Write a C program to check whether the given string is palindrome or not. (6)
(b) (i)
Write a C program to arrange the given 10 numbers in descending order. (10)
(ii)

14. (a) (i) Write a C program to find the smallest and largest number from the given
10 numbers using functions. (10)

Explain the pass by reference with an example. (6)


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

(ii) Write a C program to count the number of words in a string using


(8)
pointers.
2 57408

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
15. (a) Define a structure called student would contain name, register, number and
marks of five subjects and percentage. Write a program to read the details of
name, register number and marks of five subjects for 25 students, calculate the
percentage and display the name, register number, marks of 25 subjects,
percentage of all the students and also the name of the student who got highest
percentage among the 25 students. (16)

OR
(b) (i) Explain the various storage classes in C. (8)

(ii) Describe about the preprocessors with suitable example. (8)

3 57408

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
*X20657* Reg. No. :

Question Paper Code : X20657

B.E./B.Tech. Degree Examinations, NOVEMBER/DECEMBER 2020


First Semester
Civil Engineering
GE 6151 – computer programming
(Common to all Branches)
(Regulations 2013)
(Also common to PTGE 6151 – Computer Programming for First Semester – Civil
Engineering/Computer Science and Engineering – Regulations 2014))
Time : Three Hours Maximum : 100 Marks
Answer all questions.

Part – A (10×2=20 Marks)

1. List some important hardware and software technologies of fifth generation


computers.
2. Write two characteristics and advantages of pseudocode.
3. What is the importance of keywords in C ?
4. List the various input and output statements in C.
5. Give the syntax of declaring an array and initializing it.
6. How do you declare strings in ‘C’ ?
7. Specify the advantages of functions.
8. How is pointer arithmetic done ?
9. What are the storage classes available in C ?
10. Define pre-processor directives in C.

Part – B (5×16=80 Marks)

11. a) Explain about algorithm, pseudocode and flow chart with an example of finding
the sum of ‘n’ number.
(OR)
b) Explain the basic organization of a computer with a neat diagram in detail.
X20657 *X20657*

12. a) Write about the need and types of looping statements in C language
and discuss with examples. (16)
(OR)
b) Write about the need and types of branching statements in C language and
discuss with examples. (16)

13. a) Explain the concept of strings in detail. (16)


(OR)
b) i) Explain sorting of a one dimensional array with example program. (8)
ii) Write a program to check whether an element is present or not in an array
or not using binary search method. (8)

14. a) i) Write a C program to find the smallest and largest number from the
given 10 numbers using functions. (10)
ii) Explain the pass by reference with an example. (6)
(OR)
b) i) Write C program to find the factorial of a given number using recursion. (8)
ii) Write a C program to count the number of words in a string
using pointers. (8)

15. a) Define a structure called book with book name, author name and price. Write a
C program to read the details of book name, author name and price of 200 books
in a library and display the total cost of the books and the book details
whose price is above Rs. 500. (16)
(OR)
b) i) Explain the various storage classes in C. (10)
ii) What is union ? Discuss with an example. (6)

–––––––––––––
1111111 11111111 III 1 11111 1 Reg. No. :

estio a er Co e :
B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER 2017
First Semester
Mechanical Engineering
GE 6151 - COMPUTER PROGRAMMING
(Common to Mechanical Engieering, (Sandwich), Aeronautical Engineering,
Agriculture Engineering, Automobile Engineering, Biomedical Engineering, Civil
Engineering, Computer Science and Engineering, Electrical and Electronics
Engineering, Electronics and Communication Engineering, Electronics and
Instrumentation Engineering, Environmental Engineering, Geoinformatics
Engineering, Industrial Engineering, Industrial Engineering and Management,
Instrumentation and Control Engineering, Manufacturing Engineering, Marine
Engineering, Materials Science and Engineering, Mechanical and Automation
Engineering, Mechatronics Engineering, Medical Electronics Engineering,
Metallurgical Engineering, Petrochemical Engineering, Production Engineering,
Robotics and Automation Engineering, Biotechnology, Chemical Engineering,
Chemical and Electrochemical Engineering, Fashion Technology, Food Technology,
Handloom and Textile Technology, Industrial Biotechnology, Information
Technology, Leather Technology, Petrochemical Technology, Petroleum
Engineering, Pharmaceutical Technology, Plastic Technology, Polymer Technology,
Rubber and Plastics Technology,Textile Chemistry, Textile Technology)
(Regulations 2013)

Time : Three Hours Maximum : 100 Marks

Answer ALL questions.

PART -A (10x2=20 Marks)

1. Convert the given octal number 125708 into decimal number.

2. What is Flowchart ?

3. What is the difference between while loop and do while loop ?

4. What is the use of size of ( ) operator ?

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
50648 -2- 11111111111 III 1111 I 1111111

5. What are the features of array ?

6. Differentiate between Linear search and Binary search.

7. Distinguish between Call by value Call by+reference.


Lou
-Aiftlita-OneMe.11 I

9wPopileskircili
8. What are the advantages of using pointers in a program ?
tisititarrifila
9. Define_ in C++. Define 'Structure' of C language. Give an example.
L

itdraniva laritivanomitAdoiwilmusSI ,strirlpiongfilaintletwoli es iteasso51


10. What storage classes are available in C language
4,004ohttarta ?
Reakrt-loktA
widin.tagi birmi jir.flj has tinaana qrtstitivnto
PART -B
liamotasila Jiinkumziume aturianztiaduCtUIIwirunitodt1 (5x16=80 Marks)
11.
. II ' a) i) Explain in detail
'''.--4-10'. mr. about
74-..1:1._;.:Fi... the irl
19 _SI . vui .. 7 j := 1111:
characteristics of.'..f.,
computer.
't ..1* i it r J..-
., " I ..,..S..........
11
(6)
ii) po..,, titthe
..7. 24
- .r_Affi
Al Describe "'''.....--
in detail about classification 1zot- - I of /computers with
A ....- o their
1,...r.+, features
'-7
mmlor 1_,.r-,11---% 1°76
......1- 41 .o *ll' 1 , 11; .e.W"r" -.
.'
-. 4?.. : T 1
-
1

-
! I '
-70-Iiimil:
and limitations.
.11-1141 diakumbirdidi
L. I
(10)
voriew. '

al mawnsoliniiiimilvslk
(OR) Atillnentril aiktrilniftuRd e.... ... i...!./ 11 1,...

I rift. 111201)treilanasittiva iikototttb-ethil .,,t2iitakti ,-. - I -


11 ri; I - -

b) i)....Give
, .i.,pseudocode algorithm and the
iii.porAiriugAorael ricuri no &limit a/:0Am. flowchart to print the Fibonacci - series of
torpb,!. ,viritaid_vt atittnuisi prinummigia imiankitterbeill Ism isrtionta(8)
n terms. 1
tabh111:001.-42114
ii) Write an algorithm and draw the flowchart to find the largest among three
1 , .
_Nitoraor
numbers.
. .
(8)
,frocitiri I gter1140101.2044T'T'l I
T' a)ViiiieWle,....114ettiajr"
12. Explain the different types of operators available in C with example. (16)
- Ea Mt
(OR)
If1u
.

b) yeifirtifaiti'Alec
;m I i decision making
i) With an example program explain the various statements II rm m 53M1 51
El 15

Li 1LJJai in
available if C.
.2 I(8)t
_I)
rtt-i sontsid'i
ii)
'' Explain switch case statement and 'for'"1121_^.4.
loop statement with suitable fr
example.
11.1:E121 I (8)
Otitguitil Odr.*001) 111/01
13. a) i) What is an array ? Write a C program to arrange the given 10 numbers in
ascending order tiliXiMtr
using oneHi Mod; fifirt! AITAR
dimensional array.Rim tstin Mit. '40 411 ,risoltri'a .1(8) t

ii) Write a C program to multiply two 3 x 3 matrices. A/4mPa% el niAlW (8)


1-1
(OR)
- 11471:101"!,641.4041.PPI
b) Write a C program 0-46,1Consonants,
to count the number of Vowels re'rtgl"Thnlb
Digits '1,31/4-r
and
Spaces in a given string. Discuss the algorithm for the same. (16)
4-
a
-7/41"16;(1J;k4Mgr1104,41-111010 nOW E
I II: I

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
t
11 111111111111111
I 111111 1111
-3- 50648

4. a) Explain about the different parameter passing methods in functions with


examples. (16)
(OR)
b) i) Write a C program to swap the content of two variables using pointers.
(8)
ii) Write a C program to read integers into an array and reversing them using
pointers.
(8)
15. a) Write a C program and algorithm to create mark sheet for students using
structure. (16)
(OR)
b) Write algorithm and a C program using unions, to prepare the employee pay
roll of a cqmpany. (1,6)

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor
1:ELEEEEEEllsEEEEEEEE 311133

4111041

Ava8 gionagimatiketsibieibmptattwiraikeallue14101001
412kalgew
010) .

b WW1; a (d
artstakvi iinkorielifinwtwok, 'ammo 441 convie eCtaixrriii
**se ogattiviataviyr *Li wria tin mei avnakLi Num. cot imatiters 3 a lanIN ti
fframatail

ta*r,.b cnditural it bona *Wittig r) 1(.6W (ft la


view astimita
oweittrail
01)
iypefigod~nsiMaild 100110411106 aslifti
Alfiniln0011011; tr°

PDF compression, OCR, web optimization using a watermarked evaluation copy of CVISION PDFCompressor

You might also like