JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech I PROGRAMMING FOR PROBLEM SOLVING Previous Question Paper (March/April - 2023 - R22)
Note: This question paper contains two parts A and B. i) Part- A for 10 marks, ii) Part - B for 50 marks. Part-A is a compulsory question which consists of ten sub-questions from all units carrying equal marks. Part-B consists of ten questions (numbered from 2 to 11) carrying 10 marks each. From each unit, there are two questions and the student should answer one of them. Hence, the student should answer five questions from Part-B.
PART - A
Give example for an Identifier.
Answer
An example of an identifier in C is student_age or totalSum, which are names used to identify variables, functions, or arrays.
What is syntax error?
Answer
A syntax error occurs when the code violates the grammatical rules of the programming language, preventing the compiler from successfully translating the source code into an executable program.
What does strstr() function do?
Answer
Sign in to view the complete answer paper.
Define Pointer.
Answer
Sign in to view the complete answer paper.
What fseek() function do?
Answer
Sign in to view the complete answer paper.
What is define preprocessor command?
Answer
Sign in to view the complete answer paper.
What is void return type indicate?
Answer
Sign in to view the complete answer paper.
Define function signature.
Answer
Sign in to view the complete answer paper.
Write Time complexity of Binary search.
Answer
Sign in to view the complete answer paper.
Write Time complexity of Insertion sort.
Answer
Sign in to view the complete answer paper.
PART - B
Write pseudo code to find biggest number of a given set.
Answer
Sign in to view the complete answer paper.
Write the syntaxes of While and Do-While loops. Explain. Differentiate between them.
Answer
Sign in to view the complete answer paper.
Write an algorithm to find the roots of a Quadratic equation.
Answer
Sign in to view the complete answer paper.
List out Bitwise operators. Explain each one along with their precedence and associativity.
Answer
Sign in to view the complete answer paper.
Define an Array. Write a C code for Matrix multiplication using arrays.
Answer
Sign in to view the complete answer paper.
Write about Pointer Arithmetic Operations.
Answer
Sign in to view the complete answer paper.
Define Union? Write the advantages of Union over Structure? Justify your answer?
Answer
Sign in to view the complete answer paper.
Write a C code to find string length?
Answer
Sign in to view the complete answer paper.
Write about various operations that can be performed on files. Write various modes of file operations.
Answer
Sign in to view the complete answer paper.
Write a C code to read and print the contents of a file.
Answer
Sign in to view the complete answer paper.
What is the need of Pre-processor commands? Explain.
Answer
Sign in to view the complete answer paper.
Write a C code to find the number of characters in a file.
Answer
Sign in to view the complete answer paper.
What is dynamic memory allocation? Why it is required explain?
Answer
Sign in to view the complete answer paper.
Write a C code to find Factorial of a given number using Recursion.
Answer
Sign in to view the complete answer paper.
Differentiate call by value and call by reference.
Answer
Sign in to view the complete answer paper.
Write a C code to print Fibonacci sequence using recursion.
Answer
Sign in to view the complete answer paper.
Write Linear search algorithm? Explain with example.
Answer
Sign in to view the complete answer paper.
Write two applications of searching.
Answer
Sign in to view the complete answer paper.
What is sorting? Explain Selection sort algorithm with example.
Answer
Sign in to view the complete answer paper.
What is Time complexity?
Answer
Sign in to view the complete answer paper.