JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech I COMPUTER PROGRAMMING IN C Previous Question Paper (May/June - 2019 - R16)
Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit. Each question carries 10 marks.
PART A
How real numbers and integers are stored.
Answer
Integers are typically stored using binary representation in fixed-width formats (e.g., 2 or 4 bytes) using two's complement notation to handle signs. Real numbers are stored using the IEEE 754 floating-point standard, which divides the memory into a sign bit, an exponent, and a mantissa (fractional part).
Explain about identifiers and types in ‘C’.
Answer
Identifiers are user-defined names given to entities like variables, functions, and arrays, consisting of letters, digits, and underscores, starting with a letter or underscore. Types define the nature of data a variable can hold, categorized into primary types (int, char, float, double), derived types (arrays, pointers, structures), and void.
Discuss the limitations of recursion.
Answer
Sign in to view the complete answer paper.
Write and explain the time complexity of bubble sort.
Answer
Sign in to view the complete answer paper.
Explain how to define pointer to a function.
Answer
Sign in to view the complete answer paper.
What are the string output functions?
Answer
Sign in to view the complete answer paper.
Distinguish between structure and union.
Answer
Sign in to view the complete answer paper.
What is meant by self referential structures?
Answer
Sign in to view the complete answer paper.
What is meant by a binary file?
Answer
Sign in to view the complete answer paper.
Discuss about fseek and ftell functions.
Answer
Sign in to view the complete answer paper.
PART B
Write a ‘C’ program to print all prime numbers from 1 to N using while loop.
Answer
Sign in to view the complete answer paper.
Write a program to demonstrate ‘goto’ statement.
Answer
Sign in to view the complete answer paper.
Explain the significance of ‘break’ and ‘continue’ statement with a sample program.
Answer
Sign in to view the complete answer paper.
Explain about type conversion in ‘C’.
Answer
Sign in to view the complete answer paper.
What are scope rules in ‘C’?
Answer
Sign in to view the complete answer paper.
Explain static and extern storage classes with a sample program.
Answer
Sign in to view the complete answer paper.
Write a ‘C’ program to multiply two non square matrices and explain it with a suitable example.
Answer
Sign in to view the complete answer paper.
What is meant by arrays of strings? When it will be used? Explain with a ‘C’ program.
Answer
Sign in to view the complete answer paper.
What are the memory allocation functions? Explain them clearly.
Answer
Sign in to view the complete answer paper.
Write a ‘C’ program to read a string from keyboard and print the numbers of uppercase letters, lower case letters, digits, spaces and special characters.
Answer
Sign in to view the complete answer paper.
With a sample ‘C’ program explain the concept of passing structures through pointers.
Answer
Sign in to view the complete answer paper.
How we can define structure with in a structure? Explain with a sample program.
Answer
Sign in to view the complete answer paper.
Write brief notes on command line arguments.
Answer
Sign in to view the complete answer paper.
Write a ‘C’ program to read the content of source file and convert all upper case letters in source file into lower case letters.
Answer
Sign in to view the complete answer paper.
Compare text files and binary files.
Answer
Sign in to view the complete answer paper.
What are the file status functions? Explain their usage with a sample ‘C’ program.
Answer
Sign in to view the complete answer paper.