JNTU

JNTU B.Tech I COMPUTER PROGRAMMING IN C Previous Question Paper (June - 2022 - R16)

B.Tech | I | I-II | R16 | June - 2022

Answer PaperPaper Code: 132ADMaximum Marks: 75Time: 3 Hours

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

Discuss various categories of computing environments.

8 marks

Answer

Computing environments represent the various settings in which software and hardware interact to perform tasks. The primary categories are:

  1. Personal Computing: Designed for individual use, such as desktops, laptops, and tablets. These systems provide a dedicated interface for a single user to run local applications.
  2. Client-Server Computing: A distributed architecture where a client machine requests services or resources from a central server. The server manages data, security, and resource allocation, while the client handles user interaction.
  3. Distributed Computing: A system where components are spread across multiple networked computers. These systems communicate and coordinate actions to achieve a common goal, providing scalability and fault tolerance.
  4. Cloud Computing: An on-demand delivery of computing services (servers, storage, databases) over the internet. It offers flexibility and cost-efficiency through virtualization and shared resources.
  5. Embedded Computing: Systems integrated into larger mechanical or electrical devices (e.g., microcontrollers in washing machines or automotive systems) to perform specific, dedicated functions.
b

Draw a flow chart to check whether the given number is perfect number or not.

7 marks

Answer

A perfect number is a positive integer that is equal to the sum of its proper positive divisors, excluding the number itself. The flow chart logic is as follows:

  1. Start.
  2. Input a number, n.
  3. Initialize sum = 0 and i = 1.
  4. Check if i < n. If true, proceed to step 5; else, go to step 8.
  5. Check if n % i == 0. If true, set sum = sum + i.
  6. Increment i = i + 1.
  7. Go back to step 4.
  8. Compare sum == n. If true, print 'Perfect Number'; else, print 'Not a Perfect Number'.
  9. Stop.
215 marks
a

Discuss in brief about loop statements in ‘C’ language.

8 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program to check whether a number is palindrome or not.

7 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Differentiate between user defined and system defined functions.

6 marks

Answer

Sign in to view the complete answer paper.

b

Why we need storage classes? List and explain the various storage classes present in language ‘C’.

9 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

What is recursion function? Discuss the limitations of recursion.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain the binary search method.

8 marks

Answer

Sign in to view the complete answer paper.

5

Explain the following:

15 marks
a

Passing an array to a function.

7 marks

Answer

Sign in to view the complete answer paper.

b

Arrays of strings.

8 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Explain various string manipulation functions with example program.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain in brief about pointer applications.

8 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

Differentiate between structures and unions.

7 marks

Answer

Sign in to view the complete answer paper.

b

What is enumeration? Explain with suitable example.

8 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Write a C program to copy the contents of one text file to another text file.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain various file status functions.

7 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of COMPUTER PROGRAMMING IN C from JNTU for B.Tech EIE I I-II, June - 2022, R16.

For the question paper without answers, switch to the Question Paper tab.

Other papers in COMPUTER PROGRAMMING IN C

Loading Question Papers

Fetching data from database...