Jawaharlal Nehru Technological University Hyderabad
Jawaharlal Nehru Technological University Hyderabad B.Tech I Year COMPUTER PROGRAMMING Previous Question Paper (May/June - 2019 - R13)
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
Give the list of basic data types in C language and explain.
Answer
The basic data types in C are int (integer values), char (single characters), float (single-precision floating-point numbers), and double (double-precision floating-point numbers).
Distinguish between a keyword and a reserved word.
Answer
In C, keywords and reserved words are identical; they are predefined tokens with special meaning to the compiler that cannot be used as identifiers. While some languages distinguish them, in C, all keywords are reserved.
Distinguish between a function declaration and definition.
Answer
Sign in to view the complete answer paper.
Give the list of preprocessor directives in C language.
Answer
Sign in to view the complete answer paper.
Why is the void pointer useful? When would you use it?
Answer
Sign in to view the complete answer paper.
Distinguish between calloc() and malloc() functions in C language.
Answer
Sign in to view the complete answer paper.
What are self-referential structures? Give an example.
Answer
Sign in to view the complete answer paper.
Give the syntax for bit-field declaration and explain.
Answer
Sign in to view the complete answer paper.
Distinguish between a stack and a queue.
Answer
Sign in to view the complete answer paper.
Give the applications of linked lists.
Answer
Sign in to view the complete answer paper.
Part B
Distinguish among while, do-while and for statements in C language.
Answer
Sign in to view the complete answer paper.
Write a program that prints the binary equivalent of a decimal number.
Answer
Sign in to view the complete answer paper.
Demonstrate nested if-else statements in C language using an example.
Answer
Sign in to view the complete answer paper.
Demonstrate the usage of break and continue statements using an example.
Answer
Sign in to view the complete answer paper.
Give an overview of storage classes in C language.
Answer
Sign in to view the complete answer paper.
Explain the following:
Multi-dimensional arrays in C.
Answer
Sign in to view the complete answer paper.
Structured programming.
Answer
Sign in to view the complete answer paper.
Distinguish between a constant pointer and a pointer to constant.
Answer
Sign in to view the complete answer paper.
Write a C program to find length of a string and concatenation of two strings without using string handling functions.
Answer
Sign in to view the complete answer paper.
What is a function pointer? Give the syntax and applications of a function pointer. Demonstrate how to initialize function pointers and use them in the program.
Answer
Sign in to view the complete answer paper.
Write a program to add two complex numbers by passing structure to a function.
Answer
Sign in to view the complete answer paper.
Demonstrate the following operations using examples: i) fwrite ii) fseek
Answer
Sign in to view the complete answer paper.
Write a C program to find number of lines in a file.
Answer
Sign in to view the complete answer paper.
Give an overview of standard I/O in C language.
Answer
Sign in to view the complete answer paper.
Demonstrate bubble sorting using an example.
Answer
Sign in to view the complete answer paper.
Write a program to reverse a word using a stack.
Answer
Sign in to view the complete answer paper.
Write a program to demonstrate operations on a linked list.
Answer
Sign in to view the complete answer paper.
Write a program to demonstrate the operations on a queue.
Answer
Sign in to view the complete answer paper.