JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech I COMPUTER PROGRAMMING IN C Previous Question Paper (September - 2023 - R16)
Part A is compulsory, which carries 25 marks. In Part A, answer all questions. In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.
PART - A
What is an algorithm?
Answer
An algorithm is a step-by-step finite sequence of well-defined instructions designed to perform a specific task or solve a particular computational problem.
Compare between computer software and hardware.
Answer
Hardware refers to the physical components of a computer system that can be touched, such as the CPU, memory, and input/output devices. Software consists of the set of programs, data, and instructions that tell the hardware how to perform tasks. While hardware is the tangible machinery, software is the intangible set of instructions that controls it.
What is type qualifier?
Answer
Sign in to view the complete answer paper.
Write the need for a function prototype with an example.
Answer
Sign in to view the complete answer paper.
Describe typical applications of pointers in developing programs.
Answer
Sign in to view the complete answer paper.
What is pointer to pointer?
Answer
Sign in to view the complete answer paper.
Define Union. How to represent an union?
Answer
Sign in to view the complete answer paper.
Write an example of nested structure.
Answer
Sign in to view the complete answer paper.
Write the purpose of fseek() with example.
Answer
Sign in to view the complete answer paper.
Write about different file modes?
Answer
Sign in to view the complete answer paper.
PART - B
Distinguish between While and Do-While looping structures.
Answer
Sign in to view the complete answer paper.
Write a program in C to find whether the given year is a leap year or not using while loop.
Answer
Sign in to view the complete answer paper.
Describe different Relational, Logical, Bitwise and Arithmetic operators available in C- Programming Language.
Answer
Sign in to view the complete answer paper.
Write a C-program using function to check whether the given number is prime or not.
Answer
Sign in to view the complete answer paper.
Write C programs that uses both recursive and non-recursive functions to find the Nth Fibonacci number.
Answer
Sign in to view the complete answer paper.
What do you understand by user-defined functions? Explain need for user-defined functions.
Answer
Sign in to view the complete answer paper.
Write a C Program to transpose a matrix.
Answer
Sign in to view the complete answer paper.
Write a C program to sort strings using Bubble Sort.
Answer
Sign in to view the complete answer paper.
Write a C program to check whether a string is palindrome or not without using built-in function.
Answer
Sign in to view the complete answer paper.
What is dynamic memory allocation? How does it help in building complex programs? Discuss.
Answer
Sign in to view the complete answer paper.
Write a program to add two complex numbers by passing structures to a function.
Answer
Sign in to view the complete answer paper.
Explain Array of structure with an example.
Answer
Sign in to view the complete answer paper.
Explain structure within a structure with an example.
Answer
Sign in to view the complete answer paper.
Discuss command line arguments with examples.
Answer
Sign in to view the complete answer paper.
Differentiate between text file and binary file.
Answer
Sign in to view the complete answer paper.
Write a C program to display the contents of the file in reverse order.
Answer
Sign in to view the complete answer paper.
Write a C program to read a given file, convert first letter of each word into uppercase and copy the contents of converted file into a new file.
Answer
Sign in to view the complete answer paper.