Programming for Problem Solving
Jump to paper
2025100203
B.Tech 2nd Semester Examination, 2025
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct option for the following questions (Answer any
seven):
Ask AI
Q1.1
The correct syntax for an if-statement is
Ask AI
Q1.2
C function execution always begins from
Ask AI
Q1.3
Which storage class has the default value of a variable as zero?
Ask AI
Q1.4
Relational operators always return
Ask AI
Q1.5
Which of the following is an exit-controlled loop?
Ask AI
Q1.6
Binary search works only on
Ask AI
Q1.7
break keyword is used to
Ask AI
Q1.8
In a union, memory allocated is equal to the size of
Ask AI
Q1.9
fopen("abc.txt","r") opens file in
Ask AI
Q1.10
Which of the following problems can be solved using recursion?
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
Write an algorithm and draw the flowchart for checking whether a number is prime or not.
Ask AI
Q2.2
Differentiate between syntax errors, logical errors, compile-time errors, and run-time errors. Provide suitable examples.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
Explain function declaration, definition, and calling conventions in C. Discuss call by value and call by reference with examples.
Ask AI
Q3.2
Differentiate between while and do-while loop construct. Write a program for generating Fibonacci series using loop.
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Write the differences between if, if-else, and switch statements with examples.
Ask AI
Q4.2
Explain the use of break, continue, and goto statements with examples.
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
How are arrays declared and initialized in C? What is bound checking? Why is it important in array programming?
Ask AI
Q5.2
What is recursion? Explain how recursion works with stack memory. Write a recursive program for finding the factorial of a number.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Write a program to perform linear search in an array. Also find its complexity in Best, Average and Worst cases.
Ask AI
Q6.2
Describe the selection sort algorithm and implement it in C language.
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
Explain various storage classes in C with proper examples.
Ask AI
Q7.2
Write a program to copy the contents of one file into another and explain each step of file IO.
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
Explain arithmetic, relational, logical, bitwise and assignment operators in C along with their precedence rules and examples.
Ask AI
Q8.2
What is the difference between structure and union? Explain with an example.
Ask AI
Q.9 Write Short notes on any two of the following:
Ask AI
2025V2100203
B.Tech 2nd Semester Examination, 2025
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct option for the following questions (Answer any
seven):
Ask AI
Q1.1
The correct syntax for an if-statement is
Ask AI
Q1.2
C function execution always begins from
Ask AI
Q1.3
Which storage class has the default value of a variable as zero?
Ask AI
Q1.4
Relational operators always return
Ask AI
Q1.5
Which of the following is an exit-controlled loop?
Ask AI
Q1.6
Binary search works only on
Ask AI
Q1.7
break keyword is used to
Ask AI
Q1.8
In a union, memory allocated is equal to the size of
Ask AI
Q1.9
fopen("abc.txt","r") opens file in
Ask AI
Q1.10
Which of the following problems can be solved using recursion?
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
Write an algorithm and draw the flowchart for checking whether a number is prime or not.
Ask AI
Q2.2
Differentiate between syntax errors, logical errors, compile-time errors, and run-time errors. Provide suitable examples.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
Explain function declaration, definition, and calling conventions in C. Discuss call by value and call by reference with examples.
Ask AI
Q3.2
Differentiate between while and do-while loop construct. Write a program for generating Fibonacci series using loop.
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Write the differences between if, if-else, and switch statements with examples.
Ask AI
Q4.2
Explain the use of break, continue, and goto statements with examples.
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
How are arrays declared and initialized in C? What is bound checking? Why is it important in array programming?
Ask AI
Q5.2
What is recursion? Explain how recursion works with stack memory. Write a recursive program for finding the factorial of a number.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Write a program to perform linear search in an array. Also find its complexity in Best, Average and Worst cases.
Ask AI
Q6.2
Describe the selection sort algorithm and implement it in C language.
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
Explain various storage classes in C with proper examples.
Ask AI
Q7.2
Write a program to copy the contents of one file into another and explain each step of file IO.
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
Explain arithmetic, relational, logical, bitwise and assignment operators in C along with their precedence rules and examples.
Ask AI
Q8.2
What is the difference between structure and union? Explain with an example.
Ask AI
Q.9 Write Short notes on any two of the following:
Ask AI
Q9.1
Ask AI
2025V3100203
B.Tech 2nd Semester Examination, 2025
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct option for the following questions (Answer any
seven):
Ask AI
Q1.1
The correct syntax for an if-statement is
Ask AI
Q1.2
C function execution always begins from
Ask AI
Q1.3
Which storage class has the default value of a variable as zero?
Ask AI
Q1.4
Relational operators always return
Ask AI
Q1.5
Which of the following is an exit-controlled loop?
Ask AI
Q1.6
Binary search works only on
Ask AI
Q1.7
break keyword is used to
Ask AI
Q1.8
In a union, memory allocated is equal to the size of
Ask AI
Q1.9
fopen("abc.txt","r") opens file in
Ask AI
Q1.10
Which of the following problems can be solved using recursion?
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
Write an algorithm and draw the flowchart for checking whether a number is prime or not.
Ask AI
Q2.2
Differentiate between syntax errors, logical errors, compile-time errors, and run-time errors. Provide suitable examples.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
Explain function declaration, definition, and calling conventions in C. Discuss call by value and call by reference with examples.
Ask AI
Q3.2
Differentiate between while and do-while loop construct. Write a program for generating Fibonacci series using loop.
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Write the differences between if, if-else, and switch statements with examples.
Ask AI
Q4.2
Explain the use of break, continue, and goto statements with examples.
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
How are arrays declared and initialized in C? What is bound checking? Why is it important in array programming?
Ask AI
Q5.2
What is recursion? Explain how recursion works with stack memory. Write a recursive program for finding the factorial of a number.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Write a program to perform linear search in an array. Also find its complexity in Best, Average and Worst cases.
Ask AI
Q6.2
Describe the selection sort algorithm and implement it in C language.
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
Explain various storage classes in C with proper examples.
Ask AI
Q7.2
Write a program to copy the contents of one file into another and explain each step of file IO.
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
Explain arithmetic, relational, logical, bitwise and assignment operators in C along with their precedence rules and examples.
Ask AI
Q8.2
What is the difference between structure and union? Explain with an example.
Ask AI
Q.9 Write Short notes on any two of the following:
Ask AI
Q9.1
Ask AI
2025V4100203
B.Tech 2nd Semester Examination, 2025
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct option for the following questions (Answer any
seven):
Ask AI
Q1.1
The correct syntax for an if-statement is
Ask AI
Q1.2
C function execution always begins from
Ask AI
Q1.3
Which storage class has the default value of a variable as zero?
Ask AI
Q1.4
Relational operators always return
Ask AI
Q1.5
Which of the following is an exit-controlled loop?
Ask AI
Q1.6
Binary search works only on
Ask AI
Q1.7
break keyword is used to
Ask AI
Q1.8
In a union, memory allocated is equal to the size of
Ask AI
Q1.9
fopen("abc.txt","r") opens file in
Ask AI
Q1.10
Which of the following problems can be solved using recursion?
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
Write an algorithm and draw the flowchart for checking whether a number is prime or not.
Ask AI
Q2.2
Differentiate between syntax errors, logical errors, compile-time errors, and run-time errors. Provide suitable examples.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
Explain function declaration, definition, and calling conventions in C. Discuss call by value and call by reference with examples.
Ask AI
Q3.2
Differentiate between while and do-while loop construct. Write a program for generating Fibonacci series using loop.
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Write the differences between if, if-else, and switch statements with examples.
Ask AI
Q4.2
Explain the use of break, continue, and goto statements with examples.
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
How are arrays declared and initialized in C? What is bound checking? Why is it important in array programming?
Ask AI
Q5.2
What is recursion? Explain how recursion works with stack memory. Write a recursive program for finding the factorial of a number.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Write a program to perform linear search in an array. Also find its complexity in Best, Average and Worst cases.
Ask AI
Q6.2
Describe the selection sort algorithm and implement it in C language.
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
Explain various storage classes in C with proper examples.
Ask AI
Q7.2
Write a program to copy the contents of one file into another and explain each step of file IO.
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
Explain arithmetic, relational, logical, bitwise and assignment operators in C along with their precedence rules and examples.
Ask AI
Q8.2
What is the difference between structure and union? Explain with an example.
Ask AI
Q.9 Write Short notes on any two of the following:
Ask AI
2025V5100203
B.Tech 2nd Semester Examination, 2025
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct option for the following questions (Answer any
seven):
Ask AI
Q1.1
The correct syntax for an if-statement is
Ask AI
Q1.2
C function execution always begins from
Ask AI
Q1.3
Which storage class has the default value of a variable as zero?
Ask AI
Q1.4
Relational operators always return
Ask AI
Q1.5
Which of the following is an exit-controlled loop?
Ask AI
Q1.6
Binary search works only on
Ask AI
Q1.7
break keyword is used to
Ask AI
Q1.8
In a union, memory allocated is equal to the size of
Ask AI
Q1.9
fopen("abc.txt","r") opens file in
Ask AI
Q1.10
Which of the following problems can be solved using recursion?
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
Write an algorithm and draw the flowchart for checking whether a number is prime or not.
Ask AI
Q2.2
Differentiate between syntax errors, logical errors, compile-time errors, and run-time errors. Provide suitable examples.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
Explain function declaration, definition, and calling conventions in C. Discuss call by value and call by reference with examples.
Ask AI
Q3.2
Differentiate between while and do-while loop construct. Write a program for generating Fibonacci series using loop.
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Write the differences between if, if-else, and switch statements with examples.
Ask AI
Q4.2
Explain the use of break, continue, and goto statements with examples.
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
How are arrays declared and initialized in C? What is bound checking? Why is it important in array programming?
Ask AI
Q5.2
What is recursion? Explain how recursion works with stack memory. Write a recursive program for finding the factorial of a number.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Write a program to perform linear search in an array. Also find its complexity in Best, Average and Worst cases.
Ask AI
Q6.2
Describe the selection sort algorithm and implement it in C language.
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
Explain various storage classes in C with proper examples.
Ask AI
Q7.2
Write a program to copy the contents of one file into another and explain each step of file IO.
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
Explain arithmetic, relational, logical, bitwise and assignment operators in C along with their precedence rules and examples.
Ask AI
Q8.2
What is the difference between structure and union? Explain with an example.
Ask AI
Q.9 Write Short notes on any two of the following:
Ask AI
Q9.1
Ask AI
2025100204
B.Tech 2nd Semester Examination, 2025 (Old Course)
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct option/answer the following (Any seven question
only):
Ask AI
Q1.1
Which of the following cannot be a variable name in C?
Ask AI
Q1.2
Which of the following typecasting is accepted by C language
Ask AI
Q1.3
Which of the following is NOT possible with any 2 operators in C?
Ask AI
Q1.4
Functions can return enumeration constants in C?
Ask AI
Q1.5
C preprocessors can have compiler specific features.
Ask AI
Q1.6
How many number of pointer (*) does C have against a pointer variable declaration?
Ask AI
Q1.7
Which of the following is not possible statically in C language?
Ask AI
Q1.8
What will be the value of the following assignment expression?
(x = foo())!=1 considering foo() returns 2Ask AI
Q1.9
Comment on the following C statement
n=1; printf("%d, %d ", 3*n, n++);Ask AI
Q1.10
What are the elements present in the array of the following C code?
int array[5]={5};Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
Explain the major components of a computer system. How does the operating system help in program execution?
Ask AI
Q2.2
Write an algorithm and flowchart to find the largest of three numbers.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
Explain the different arithmetic operators in C. Write the rules for evaluating arithmetic expressions with precedence and associativity.
Ask AI
Q3.2
Write a program to reverse a number using a loop. Explain the concept of an infinite loop with examples. Why do infinite loops occur?
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Explain array declaration and initialization with examples for 1-D and 2-D arrays. Also explain the concept of bound checking.
Ask AI
Q4.2
Write a C program to perform Binary Search on a sorted array.
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
What is call by reference? How is passing an array to a function an example of call by reference? Explain with code.
Ask AI
Q5.2
Write a program that reads marks of 5 students into an array and uses a function to compute the average. Demonstrate passing an array to a function.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Define a structure Student with name, roll, marks. Write a C program to input data for 3 students and print it.
Ask AI
Q6.2
Write a note on accessing structure elements using (a) dot operator, (b) pointer-to-structure. Give examples.
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
Explain the concept of pointers in C. How are pointers defined and used? Illustrate with a program that swaps two numbers using pointers.
Ask AI
Q7.2
Write a C program using pointers to reverse an array in-place. Explain how pointers are used in the program.
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
Write a recursive C program to find the factorial of a number. Also explain base case and recursive case.
Ask AI
Q8.2
Explain the Ackermann function. Write a recursive program for it. Why is it not suitable for large values?
Ask AI
Q.9 Write short notes on any two of the following:
Ask AI
Q9.1
Ask AI
2025OLD100204
B.Tech 2nd Semester Examination, 2025 (Old Course)
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct option/answer the following (Any seven question
only):
Ask AI
Q1.1
Which of the following cannot be a variable name in C?
Ask AI
Q1.2
Which of the following typecasting is accepted by C language
Ask AI
Q1.3
Which of the following is NOT possible with any 2 operators in C?
Ask AI
Q1.4
Functions can return enumeration constants in C?
Ask AI
Q1.5
C preprocessors can have compiler specific features.
Ask AI
Q1.6
How many number of pointer (*) does C have against a pointer variable declaration?
Ask AI
Q1.7
Which of the following is not possible statically in C language?
Ask AI
Q1.8
What will be the value of the following assignment expression?
(x = foo())!=1 considering foo() returns 2Ask AI
Q1.9
Comment on the following C statement
n=1; printf("%d, %d ", 3*n, n++);Ask AI
Q1.10
What are the elements present in the array of the following C code?
int array[5]={5};Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
Explain the major components of a computer system. How does the operating system help in program execution?
Ask AI
Q2.2
Write an algorithm and flowchart to find the largest of three numbers.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
Explain the different arithmetic operators in C. Write the rules for evaluating arithmetic expressions with precedence and associativity.
Ask AI
Q3.2
Write a program to reverse a number using a loop. Explain the concept of an infinite loop with examples. Why do infinite loops occur?
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Explain array declaration and initialization with examples for 1-D and 2-D arrays. Also explain the concept of bound checking.
Ask AI
Q4.2
Write a C program to perform Binary Search on a sorted array.
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
What is call by reference? How is passing an array to a function an example of call by reference? Explain with code.
Ask AI
Q5.2
Write a program that reads marks of 5 students into an array and uses a function to compute the average. Demonstrate passing an array to a function.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Define a structure Student with name, roll, marks. Write a C program to input data for 3 students and print it.
Ask AI
Q6.2
Write a note on accessing structure elements using (a) dot operator, (b) pointer-to-structure. Give examples.
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
Explain the concept of pointers in C. How are pointers defined and used? Illustrate with a program that swaps two numbers using pointers.
Ask AI
Q7.2
Write a C program using pointers to reverse an array in-place. Explain how pointers are used in the program.
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
Write a recursive C program to find the factorial of a number. Also explain base case and recursive case.
Ask AI
Q8.2
Explain the Ackermann function. Write a recursive program for it. Why is it not suitable for large values?
Ask AI
Q.9 Write short notes on any two of the following:
Ask AI
2024100104
B.Tech 1st Semester Examination, 2024 (Old)
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct option for the following questions (Answer any
seven only):
Ask AI
Q1.1
Where is a program stored and executed?
Ask AI
Q1.2
What is the output of a compiler?
Ask AI
Q1.3
Which storage class has the default value of a variable as zero?
Ask AI
Q1.4
What is the result of 5% 2 in C?
Ask AI
Q1.5
What type of array is used to store string?
Ask AI
Q1.6
Binary search works only on:
Ask AI
Q1.7
Which operator is used to access members of a structure using a pointer?
Ask AI
Q1.8
What is the output of in C?
Ask AI
Q1.9
Which function is used to open a file in C?
Ask AI
Q1.10
Which of the following problems can be solved using recursion?
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
Draw a flowchart to find the largest of three numbers.
Ask AI
Q2.2
Explain different storage classes in C.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
What is type casting in programming? Differentiate between implicit and explicit type conversion with examples.
Ask AI
Q3.2
Explain operator precedence and associativity with examples.
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Write the differences between if, if-else, and switch statements with examples.
Ask AI
Q4.2
Explain the concept of pointer to pointer with a code example. What is a self-referential structure?
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
How are arrays declared and initialized in C? What is bound checking? Why is it important in array programming?
Ask AI
Q5.2
Explain the different modes of opening a file in C. Give examples.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Write a program to perform linear search in an array.
Ask AI
Q6.2
Describe the bubble sort algorithm and write its implementation in C.
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
What is the difference between call by value and call by reference? Explain with examples.
Ask AI
Q7.2
What is the scope of a variable? Explain local and global scope with examples.
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
What is recursion? Write a recursive function to compute the nth Fibonacci number.
Ask AI
Q8.2
What is the difference between structure and union? Explain with an example.
Ask AI
Q.9 Write Short notes on any two of the following:
Ask AI
Q9.1
Self-Referential Structure
Ask AI
Q9.2
Compiler and Linker
Ask AI
Q9.3
Syntax and logical errors
Ask AI
Q9.4
Bitwise Operator
Ask AI
2024V3100104
B.Tech 1st Semester Examination, 2024 (Old)
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct option for the following questions (Answer any
seven only):
Ask AI
Q1.1
Where is a program stored and executed?
Ask AI
Q1.2
What is the output of a compiler?
Ask AI
Q1.3
Which storage class has the default value of a variable as zero?
Ask AI
Q1.4
What is the result of 5% 2 in C?
Ask AI
Q1.5
What type of array is used to store string?
Ask AI
Q1.6
Binary search works only on:
Ask AI
Q1.7
Which operator is used to access members of a structure using a pointer?
Ask AI
Q1.8
What is the output of in C?
Ask AI
Q1.9
Which function is used to open a file in C?
Ask AI
Q1.10
Which of the following problems can be solved using recursion?
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
Draw a flowchart to find the largest of three numbers.
Ask AI
Q2.2
Explain different storage classes in C.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
What is type casting in programming? Differentiate between implicit and explicit type conversion with examples.
Ask AI
Q3.2
Explain operator precedence and associativity with examples.
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Write the differences between if, if-else, and switch statements with examples.
Ask AI
Q4.2
Explain the concept of pointer to pointer with a code example. What is a self-referential structure?
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
How are arrays declared and initialized in C? What is bound checking? Why is it important in array programming?
Ask AI
Q5.2
Explain the different modes of opening a file in C. Give examples.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Write a program to perform linear search in an array.
Ask AI
Q6.2
Describe the bubble sort algorithm and write its implementation in C.
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
What is the difference between call by value and call by reference? Explain with examples.
Ask AI
Q7.2
What is the scope of a variable? Explain local and global scope with examples.
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
What is recursion? Write a recursive function to compute the nth Fibonacci number.
Ask AI
Q8.2
What is the difference between structure and union? Explain with an example.
Ask AI
Q.9 Write Short notes on any two of the following:
Ask AI
Q9.1
Self-Referential Structure
Ask AI
Q9.2
Compiler and Linker
Ask AI
Q9.3
Syntax and logical errors
Ask AI
Q9.4
Bitwise Operator
Ask AI
2024V5100104
B.Tech 1st Semester Examination, 2024 (Old)
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct option for the following questions (Answer any
seven only):
Ask AI
Q1.1
Where is a program stored and executed?
Ask AI
Q1.2
What is the output of a compiler?
Ask AI
Q1.3
Which storage class has the default value of a variable as zero?
Ask AI
Q1.4
What is the result of 5% 2 in C?
Ask AI
Q1.5
What type of array is used to store string?
Ask AI
Q1.6
Binary search works only on:
Ask AI
Q1.7
Which operator is used to access members of a structure using a pointer?
Ask AI
Q1.8
What is the output of in C?
Ask AI
Q1.9
Which function is used to open a file in C?
Ask AI
Q1.10
Which of the following problems can be solved using recursion?
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
Draw a flowchart to find the largest of three numbers.
Ask AI
Q2.2
Explain different storage classes in C.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
What is type casting in programming? Differentiate between implicit and explicit type conversion with examples.
Ask AI
Q3.2
Explain operator precedence and associativity with examples.
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Write the differences between if, if-else, and switch statements with examples.
Ask AI
Q4.2
Explain the concept of pointer to pointer with a code example. What is a self-referential structure?
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
How are arrays declared and initialized in C? What is bound checking? Why is it important in array programming?
Ask AI
Q5.2
Explain the different modes of opening a file in C. Give examples.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Write a program to perform linear search in an array.
Ask AI
Q6.2
Describe the bubble sort algorithm and write its implementation in C.
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
What is the difference between call by value and call by reference? Explain with examples.
Ask AI
Q7.2
What is the scope of a variable? Explain local and global scope with examples.
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
What is recursion? Write a recursive function to compute the nth Fibonacci number.
Ask AI
Q8.2
What is the difference between structure and union? Explain with an example.
Ask AI
Q.9 Write Short notes on any two of the following:
Ask AI
Q9.1
Self-Referential Structure
Ask AI
Q9.2
Compiler and Linker
Ask AI
Q9.3
Syntax and logical errors
Ask AI
Q9.4
Bitwise Operator
Ask AI
2024V7100104
B.Tech 1st Semester Examination, 2024 (Old)
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct option for the following questions (Answer any
seven only):
Ask AI
Q1.1
Where is a program stored and executed?
Ask AI
Q1.2
What is the output of a compiler?
Ask AI
Q1.3
Which storage class has the default value of a variable as zero?
Ask AI
Q1.4
What is the result of 5% 2 in C?
Ask AI
Q1.5
What type of array is used to store string?
Ask AI
Q1.6
Binary search works only on:
Ask AI
Q1.7
Which operator is used to access members of a structure using a pointer?
Ask AI
Q1.8
What is the output of $ *(\&x) $ in C?
Ask AI
Q1.9
Which function is used to open a file in C?
Ask AI
Q1.10
Which of the following problems can be solved using recursion?
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
Draw a flowchart to find the largest of three numbers.
Ask AI
Q2.2
Explain different storage classes in C.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
What is type casting in programming? Differentiate between implicit and explicit type conversion with examples.
Ask AI
Q3.2
Explain operator precedence and associativity with examples.
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Write the differences between if, if-else, and switch statements with examples.
Ask AI
Q4.2
Explain the concept of pointer to pointer with a code example. What is a self-referential structure?
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
How are arrays declared and initialized in C? What is bound checking? Why is it important in array programming?
Ask AI
Q5.2
Explain the different modes of opening a file in C. Give examples.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Write a program to perform linear search in an array.
Ask AI
Q6.2
Describe the bubble sort algorithm and write its implementation in C.
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
What is the difference between call by value and call by reference? Explain with examples.
Ask AI
Q7.2
What is the scope of a variable? Explain local and global scope with examples.
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
What is recursion? Write a recursive function to compute the nth Fibonacci number.
Ask AI
Q8.2
What is the difference between structure and union? Explain with an example.
Ask AI
Q.9 Write Short notes on any two of the following:
Ask AI
Q9.1
Self-Referential Structure
Ask AI
Q9.2
Compiler and Linker
Ask AI
Q9.3
Syntax and logical errors
Ask AI
Q9.4
Bitwise Operator
Ask AI
2024V9100104
B.Tech 1st Semester Examination, 2024 (Old)
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct option for the following questions (Answer any
seven only):
Ask AI
Q1.1
Where is a program stored and executed?
Ask AI
Q1.2
What is the output of a compiler?
Ask AI
Q1.3
Which storage class has the default value of a variable as zero?
Ask AI
Q1.4
What is the result of 5% 2 in C?
Ask AI
Q1.5
What type of array is used to store string?
Ask AI
Q1.6
Binary search works only on:
Ask AI
Q1.7
Which operator is used to access members of a structure using a pointer?
Ask AI
Q1.8
What is the output of $ *(\&x) $ in C?
Ask AI
Q1.9
Which function is used to open a file in C?
Ask AI
Q1.10
Which of the following problems can be solved using recursion?
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
Draw a flowchart to find the largest of three numbers.
Ask AI
Q2.2
Explain different storage classes in C.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
What is type casting in programming? Differentiate between implicit and explicit type conversion with examples.
Ask AI
Q3.2
Explain operator precedence and associativity with examples.
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Write the differences between if, if-else, and switch statements with examples.
Ask AI
Q4.2
Explain the concept of pointer to pointer with a code example. What is a self-referential structure?
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
How are arrays declared and initialized in C? What is bound checking? Why is it important in array programming?
Ask AI
Q5.2
Explain the different modes of opening a file in C. Give examples.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Write a program to perform linear search in an array.
Ask AI
Q6.2
Describe the bubble sort algorithm and write its implementation in C.
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
What is the difference between call by value and call by reference? Explain with examples.
Ask AI
Q7.2
What is the scope of a variable? Explain local and global scope with examples.
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
What is recursion? Write a recursive function to compute the nth Fibonacci number.
Ask AI
Q8.2
What is the difference between structure and union? Explain with an example.
Ask AI
Q.9 Write Short notes on any two of the following:
Ask AI
Q9.1
Self-Referential Structure
Ask AI
Q9.2
Compiler and Linker
Ask AI
Q9.3
Syntax and logical errors
Ask AI
Q9.4
Bitwise Operator
Ask AI
2024100111
B.Tech 1st Semester Examination, 2024
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct answer the following (Any seven question only):
Ask AI
Q1.1
Which of the following is a valid variable name in C?
Ask AI
Q1.2
Which of these is not a valid data type in C?
Ask AI
Q1.3
Which of the following is the correct syntax for if statement?
Ask AI
Q1.4
What is the output of printf("%d", 5 + 3 * 2)?
Ask AI
Q1.5
Which header file is required to use printf()?
Ask AI
Q1.6
Which keyword is used to define a constant in C?
Ask AI
Q1.7
What is the index of the first element in an array?
Ask AI
Q1.8
Which one is the logical AND operator in C?
Ask AI
Q1.9
Which format specifier is used for printing float values?
Ask AI
Q1.10
Which of these is not a loop in C?
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
Explain the structure of a C program with an example.
Ask AI
Q2.2
Describe basic data types in C with memory size.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
What is an algorithm. Write an algorithm to perform the addition of two numbers in C and draw a flowchart to represent the addition of two numbers.
Ask AI
Q3.2
Write a program to check whether a number is even or odd using if-else.
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Explain Arithmetic and Logical operators in C with example programs.
Ask AI
Q4.2
Explain Relational and Bitwise operators with example programs.
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
Explain call by value and call by reference with examples.
Ask AI
Q5.2
What is the difference between library functions and user-defined functions?
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
What is an array in C programming? Write advantages of using arrays. Explain a one-dimensional array with a suitable example program.
Ask AI
Q6.2
Describe the difference between character array and string.
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
Write the difference Between Array and Structure in C programming.
Ask AI
Q7.2
Write the difference Between Structure and Union in C programming.
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
What is a pointer? Explain pointer declaration and initialization with sample program.
Ask AI
Q8.2
What is file? Explain text file and binary file in details.
Ask AI
Q.9 Write short notes on any two of the following:
Ask AI
Q9.1
Ask AI
2024V2100111
B.Tech 1st Semester Examination, 2024
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct answer the following (Any seven question only):
Ask AI
Q1.1
Which of the following is a valid variable name in C?
Ask AI
Q1.2
Which of these is not a valid data type in C?
Ask AI
Q1.3
Which of the following is the correct syntax for if statement?
Ask AI
Q1.4
What is the output of printf("%d", 5 + 3 * 2)?
Ask AI
Q1.5
Which header file is required to use printf()?
Ask AI
Q1.6
Which keyword is used to define a constant in C?
Ask AI
Q1.7
What is the index of the first element in an array?
Ask AI
Q1.8
Which one is the logical AND operator in C?
Ask AI
Q1.9
Which format specifier is used for printing float values?
Ask AI
Q1.10
Which of these is not a loop in C?
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
Explain the structure of a C program with an example.
Ask AI
Q2.2
Describe basic data types in C with memory size.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
What is an algorithm. Write an algorithm to perform the addition of two numbers in C and draw a flowchart to represent the addition of two numbers.
Ask AI
Q3.2
Write a program to check whether a number is even or odd using if-else.
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Explain Arithmetic and Logical operators in C with example programs.
Ask AI
Q4.2
Explain Relational and Bitwise operators with example programs.
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
Explain call by value and call by reference with examples.
Ask AI
Q5.2
What is the difference between library functions and user-defined functions?
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
What is an array in C programming? Write advantages of using arrays. Explain a one-dimensional array with a suitable example program.
Ask AI
Q6.2
Describe the difference between character array and string.
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
Write the difference Between Array and Structure in C programming.
Ask AI
Q7.2
Write the difference Between Structure and Union in C programming.
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
What is a pointer? Explain pointer declaration and initialization with sample program.
Ask AI
Q8.2
What is file? Explain text file and binary file in details.
Ask AI
Q.9 Write short notes on any two of the following:
Ask AI
Q9.1
Ask AI
2023100104
B.Tech. 1st Semester Examination, 2023
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct answer of the following (Any seven question only):
Ask AI
Q1.a
What is the output of the following code?
int x = 10; x++; printf("%d", x);Ask AI
Q1.b
Which function is used to dynamically allocate memory in C?
Ask AI
Q1.c
What is the output of the following code?
#include <stdio.h> int main() { char *p = 0; *p = 'a'; printf("%c", *p); return 0; }Ask AI
Q1.d
What are the elements present in the array of the following C code?
int array[6] = { 5 };Ask AI
Q1.e
What will be the output of the following C code?
void main() { int i = 0; while (i < 10) { i++; printf("hi\n"); while (i < 8) { i++; printf("hello\n"); } } }Ask AI
Q1.f
What does the following declaration mean?
int (*ptr) [10];Ask AI
Q1.g
C is ______ type of programming language?
Ask AI
Q1.h
Choose the right C statement.
Ask AI
Q1.i
Consider the following integer 2D array, which is stored in memory with the base address 1400. What would be the address of the element 14? [Assume that an integer value takes 4 bytes of memory space.]
int a[3][5] = {{1, 2, 3, 4, 5}, {6, 7, 8, 9, 10}, {11, 12, 13, 14, 15}};Ask AI
Q1.j
Consider the following declaration of the variables:
int x, A[5][6], *p = &A[0][0];Which of the following is/are the correct expression(s) to access A[3][5] and assign it to x?
Ask AI
Ask AI
Q2.a
Explain the difference between auto and static type storage variables with suitable example codes.
Ask AI
Q2.b
Differentiate between structures and unions in C. Write a C program to detect whether the computer is little endian or big endian using unions.
Ask AI
Ask AI
Q3.a
Write an efficient C program to search if the integer 24 is present in the given sorted array or not. If it is present, print the index where it is found.
Ask AI
Q3.b
Explain the insertion sort algorithm and its steps using an example. Consider the array: [5, 2, 4, 6, 1, 3].
Ask AI
Ask AI
Q4.a
Describe the concept of pointers in C programming language. Explain how pointers work and discuss their importance in programming, particularly in memory management and efficient data manipulation.
Ask AI
Q4.b
Write a C program to copy contents of one file to another. While doing so replace all lowercase characters to their equivalent uppercase characters.
Ask AI
Ask AI
Q5.a
Write a C Program to find the Euclidean distance between two points P(x, y) and Q(a, b) using structure representation of points P and Q.
Ask AI
Q5.b
Differentiate between call-by-value and call-by-reference with suitable examples.
Ask AI
Ask AI
Q6.a
Define arrays in C and explain their declaration and usage. Write a C program to reverse the content of an integer array without using auxiliary array.
Ask AI
Q6.b
Define implicit and explicit type casting in C. Provide code examples illustrating when each type of casting occurs and their potential side effects.
Ask AI
Ask AI
Q7.a
Explain the concept of nested loops. Describe how the break and continue statements alter the flow of control within C loops.
Ask AI
Q7.b
Explain the concept of algorithmic complexity and its significance in computer science. Using examples, illustrate how different algorithms exhibit various orders of complexity, such as constant time (O(1)), linear time (O(n)), logarithmic time (O(log n)), quadratic time (O(n^2)), and exponential time (O(2^n)).
Ask AI
Ask AI
Q8.a
The first 6 numbers of the Fibonacci series are: 0 1 1 2 3 5. Write a C program using recursion to find and print the Fibonacci series for first n terms.
Ask AI
Q8.b
Write a C program using recursion to find factorial of a given number n.
Ask AI
Ask AI
Q9.a
Write a C program for the following:
- Reverse a string without using strrev().
- Concatenate two strings without using strcat().
Ask AI
Q9.b
Write a C program to find result matrix after multiplying two given matrices using 2-D arrays. Check the multiplication criteria also while deriving the logic.
Ask AI
2022100104
B.Tech 1st Semester Exam-2022
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct answer of the following (any seven):
Ask AI
Q1.1
What does the following declaration mean?
int *ptr [5];Ask AI
Q1.2
The function malloc() is declared in which header file.
Ask AI
Q1.3
What is the output of:
#include<stdio.h>
int main()
{
char ch = 'Z';
printf("%d ", ch);
return 0;
}Ask AI
Q1.4
How is an array initialized in C language?
Ask AI
Q1.5
What is the return type of the fopen() function in C?
Ask AI
Q1.6
What will be the output of the following C Code?
#include<stdio.h>
int main()
{
int x=4, y, z;
y=--x;
z=x--;
printf("%d%d%d", x, y, z);
}Ask AI
Q1.7
The keyword used to transfer control from a function back to the calling function is.
Ask AI
Q1.8
What is the output of:
#include <stdio.h>
int main( )
{
float a = 5, b = 2;
int c,d;
c = a/b;
d = c/2;
printf("%d", d);
return 0;
}Ask AI
Q1.9
In C, if you pass an array as an argument to a function, what actually gets passed?
Ask AI
Q1.10
How is the $3^{rd}$ element in an array accessed based on pointer notation?
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
Explain entry controlled loop and exit controlled loop with flow charts and examples.
Ask AI
Q2.2
Write a C program to reverse a given multi-digit number.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
Explain break and continue keywords with suitable examples in context of managing loops.
Ask AI
Q3.2
What is storage classes in C. Write features (storage, default value, scope, life) of variables defined under each storage class.
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Write a C function for Bubble sort. Analyse the time complexity of Bubble sort for each standard cases.
Ask AI
Q4.2
Differentiate between formal argument and actual argument with an example.
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
What is recursion? Write a recursive C program to generate $n^{th}$ term of the Fibonacci series.
Ask AI
Q5.2
How string is declared and initialized? Explain any four predefined string manipulation functions with examples.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Write a C program to find result matrix after multiplying two given matrices using 2-D arrays.
Ask AI
Q6.2
Write a program to copy contents of one file to another. While doing so replace all lowercase characters to their equivalent uppercase characters.
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
Write the difference between structure and union. Compare them with the help of an example.
Ask AI
Q7.2
Write a program to copy the contents of one array into another in reverse order.
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
Differentiate between call-by-value and call-by-reference with suitable examples.
Ask AI
Q8.2
Discuss conditional operator? Write a C program to find largest of three numbers using conditional operator?
Ask AI
Q.9 Solve both questions :
Ask AI
Q9.1
Write a C program that converts a string like "124" to an integer 124.
Ask AI
Q9.2
Write a C program using the nesting of loops to print the following pattern:
1
2 3
4 5 6
7 8 9 10Ask AI
2022V4100104
B.Tech 1st Semester Exam-2022
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct answer of the following (any seven):
Ask AI
Q1.1
What does the following declaration mean?
int *ptr [5];Ask AI
Q1.2
The function malloc() is declared in which header file.
Ask AI
Q1.3
What is the output of:
#include<stdio.h>
int main()
{
char ch = 'Z';
printf("%d ", ch);
return 0;
}Ask AI
Q1.4
How is an array initialized in C language?
Ask AI
Q1.5
What is the return type of the fopen() function in C?
Ask AI
Q1.6
What will be the output of the following C Code?
#include<stdio.h>
int main()
{
int x=4, y, z;
y=--x;
z=x--;
printf("%d%d%d", x, y, z);
}Ask AI
Q1.7
The keyword used to transfer control from a function back to the calling function is.
Ask AI
Q1.8
What is the output of:
#include <stdio.h>
int main( )
{
float a = 5, b = 2;
int c,d;
c = a/b;
d = c/2;
printf("%d", d);
return 0;
}Ask AI
Q1.9
In C, if you pass an array as an argument to a function, what actually gets passed?
Ask AI
Q1.10
How is the $3^{rd}$ element in an array accessed based on pointer notation?
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
Explain entry controlled loop and exit controlled loop with flow charts and examples.
Ask AI
Q2.2
Write a C program to reverse a given multi-digit number.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
Explain break and continue keywords with suitable examples in context of managing loops.
Ask AI
Q3.2
What is storage classes in C. Write features (storage, default value, scope, life) of variables defined under each storage class.
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Write a C function for Bubble sort. Analyse the time complexity of Bubble sort for each standard cases.
Ask AI
Q4.2
Differentiate between formal argument and actual argument with an example.
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
What is recursion? Write a recursive C program to generate $n^{th}$ term of the Fibonacci series.
Ask AI
Q5.2
How string is declared and initialized? Explain any four predefined string manipulation functions with examples.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Write a C program to find result matrix after multiplying two given matrices using 2-D arrays.
Ask AI
Q6.2
Write a program to copy contents of one file to another. While doing so replace all lowercase characters to their equivalent uppercase characters.
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
Write the difference between structure and union. Compare them with the help of an example.
Ask AI
Q7.2
Write a program to copy the contents of one array into another in reverse order.
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
Differentiate between call-by-value and call-by-reference with suitable examples.
Ask AI
Q8.2
Discuss conditional operator? Write a C program to find largest of three numbers using conditional operator?
Ask AI
Q.9 Solve both questions :
Ask AI
Q9.1
Write a C program that converts a string like "124" to an integer 124.
Ask AI
Q9.2
Write a C program using the nesting of loops to print the following pattern:
1
2 3
4 5 6
7 8 9 10Ask AI
2021100204
B.Tech 2nd Semester Exam., 2021
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
- Choose the correct option (any seven) :
Ask AI
Q1.a
What will be the output of this C code?
#include<stdio.h> int main() { char ch = 'A'; printf("%d", sizeof('A')); return 0; }Ask AI
Q1.b
What will be the output of this C code?
#include<stdio.h> int main() { extern int i; i = 20; printf("%d", i); return 0; }Ask AI
Q1.c
What will be the output of this C code?
#include<stdio.h> int main() { int i = 100; { int i = 0; printf("%d", i==0); } return 0; }Ask AI
Q1.d
What will be the output of this C code?
#include<stdio.h> int main(){ int x=3, y=4, z; z = ++x * y++; printf("%d", z); }Ask AI
Q1.e
In C, if you pass an array as an argument to a function, what actually gets passed?
Ask AI
Q1.f
The keyword used to transfer control from a function back to the calling function is
Ask AI
Q1.g
What will be the output of this C code?
#include<stdio.h> int main() { int y=200; const int x=y; x=10; printf("%d\n", x); return 0; }Ask AI
Q1.h
Which of the following are unary operators in C?
- !
- sizeof
- ~
- &&
Ask AI
Q1.i
How will you free the allocated memory?
Ask AI
Q1.j
Which statement will you add in the following program to work it correctly?
#include<stdio.h> int main() { printf("%f", log(128.0)); return 0; }Ask AI
Ask AI
Q2.a
Write a program to print all prime numbers from 1 to 100.
Ask AI
Q2.b
It is syntactically valid to use float variable as loop control variable but it is not recommended. Justify your answer regarding this statement.
Ask AI
Ask AI
Q3.a
Write a program to generate all combinations of 1, 2 and 3 using for loop.
Ask AI
Q3.b
Define data types in C. Discuss primitive data types in terms of memory occupied, format specifier and range.
Ask AI
Ask AI
Q4.1
Define calling and called functions with suitable examples. What do you mean by call-by-value and call-by-reference? Write C programs for swapping of two numbers using call-by-value and call-by-reference techniques.
Ask AI
Ask AI
Q5.a
Explain various types of arithmetic and logical operators in C language with the help of example. When precedence of two operators in an arithmetic expression is same, how associativity helps in identifying which operator will be evaluated first? Illustrate it with example.
Ask AI
Q5.b
Suppose that hundred numbers are entered from the keyboard into an array. The number to be searched is entered through the keyboard by the user. Write a program to find if the number to be searched is present in the array and if it is present, display the number of times it appears in the array.
Ask AI
Ask AI
Q6.a
What is case control structure in C? What is the reason for using break statement at the end of each case in case control block?
Ask AI
Q6.b
Explain pointer arithmetic with the help of suitable examples.
Ask AI
Ask AI
Q7.a
Any year is entered through the keyboard. Write a C program to determine whether the year is a leap year or not.
Ask AI
Q7.b
Explain string palindrome. Write a program in C to check whether a given string is palindrome or not.
Ask AI
Ask AI
Q8.a
Write a C program using the nesting of loops to print the following pattern :
* * * * * * * * * * * * * * *Ask AI
Q8.b
Define storage classes with its type in detail.
Ask AI
Ask AI
Q9.a
What is recursive function? Further, for given integer n, write a program in C to find the sum of the following series using recursion :
$ S = 1 + 2 + 3 + \dots + n $
Ask AI
Q9.b
Define structure and union in C with suitable examples.
Ask AI
2020100104
B.Tech 2nd Semester Special Exam., 2020
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
- Choose the correct alternative (any seven) :
Ask AI
Q1.a
A variable name in C should be a/an
Ask AI
Q1.b
Why do we write (int*) before malloc?
int *p = (int*) malloc(sizeof(int));Ask AI
Q1.c
Which header file is used for reading and writing to a file?
Ask AI
Q1.d
Which of the following functions displays the keyboard character for pressed key?
Ask AI
Q1.e
What does the following declaration mean?
int (*ptr) [10];Ask AI
Q1.f
Automatic variables are initialized to
Ask AI
Q1.g
Which of the following symbols is the type-specifier?
Ask AI
Q1.h
The && and || operators
Ask AI
Q1.i
Identify the correct sequence of steps to run a program.
Ask AI
Q1.j
An external variable is the one
Ask AI
Ask AI
Q2.a
Discuss about some methods or methodologies used for problem solving.
Ask AI
Q2.b
How programming utilizes different components of computer system?
Ask AI
Q2.c
What is algorithm? Give an example algorithm for any problem.
Ask AI
Ask AI
Q3.a
What is the difference between compilation and execution of a program?
Ask AI
Q3.b
What is the effect of warning and syntax error on program execution? What we get as an output of compilation step?
Ask AI
Q3.c
What are variables? List the 'data types' which can be associated to a variable in C language.
Ask AI
Ask AI
Q4.a
What is the role of 'header files' in C language? List any four with their usage.
Ask AI
Q4.b
Draw a flowchart to find the average of 10 numbers of an array.
Ask AI
Q4.c
Write the syntax for conditional operator in C. Also write the syntax for some conditional statements used in C.
Ask AI
Ask AI
Q5.a
List the looping constructs used in C. What are the roles of 'break' and 'continue' statements in loops? Show with examples.
Ask AI
Q5.b
Given a list of 11 numbers. Write a C program to find the median of that list.
Ask AI
Ask AI
Q6.a
What are functions? How are they useful? Comment on two categories in which various functions can be categorized.
Ask AI
Q6.b
Write a C program to generate Fibonacci series using function.
Ask AI
Q6.c
List three different ways to read a string from the prompt.
Ask AI
Ask AI
Q7.a
What are the ways of parameter passing in functions? Explain each.
Ask AI
Q7.b
Write a C program to find the largest number from an array using pointer.
Ask AI
Q7.c
What are the structures in C? How are they different from Union?
Ask AI
Ask AI
Q8.a
What is dynamic memory allocation? How is this achieved in C? Explain.
Ask AI
Q8.b
Write a C program to copy the content of one file into other.
Ask AI
Q8.c
How is merge sort different from other sorting algorithms?
Ask AI
Ask AI
Q9.a
Write a C program to create an array of structures named "STUDENT" with fields Name, Roll No, Address and Marks. Also add the code for inserting, deleting and printing any student record.
Ask AI
Q9.b
What do you mean by command line argument? Give an example.
Ask AI
2019100104
B.Tech 1st Semester Exam., 2019 (New Course)
Instructions
- All questions carry equal marks.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct answer from any seven of the following:
Ask AI
Q1.1
Let x be an integer which can take a value of 0 or 1. The statement if (x == 0)x = 1; else x = 0; is equivalent to which one of the following?
Ask AI
Q1.2
A program attempts to generate as many permutations as possible of the string, 'abcd' by pushing the characters a, b, c, d in the same order onto a stack, but it may pop off the top character at any time. Which one of the following strings cannot be generated using this program?
Ask AI
Q1.3
Suppose a C program has floating constant 1.414, what is the best way to convert this 'float' data type?
Ask AI
Q1.4
What is the output of the following program?
void main(){
int a;
a=1;
while(a<=1)
if(a%2)
printf("%d", a++);
else
printf("%d", ++a);
printf("%d", a+10);
}Ask AI
Q1.5
What is the output of this C code?
#include<stdio.h>
void main()
{
int a = 5 * 3 + 2 - 4;
printf("%d", a);
}Ask AI
Q1.6
What is the output of this C code?
#include<stdio.h>
void main()
{
int b = 6;
int c = 7;
int a = ++b+c--;
printf("%d", a);
}Ask AI
Q1.7
What is the output of this C code?
#include<stdio.h>
void foo(int*);
int main()
{
int i = 10;
foo((&i)++);
}
void foo(int* p)
{
printf("%d ", *p);
}Ask AI
Q1.8
User-defined data type can be derived by
Ask AI
Q1.9
As per C language standard, which of the following is/are not keyword(s)? Pick the best statement:
auto, make, main, sizeof, elseifAsk AI
Q1.10
What is the output of this C code (when 1 is entered)?
#include<stdio.h>
void main()
{
double ch;
printf ("enter a value between 1 to 2:");
scanf("%lf", &ch);
switch (ch)
{
case 1:
printf("1");
break;
case 2:
printf("2");
break;
}
}Ask AI
Q.2 Solve this question :
Ask AI
Q2.1
What do you mean by pre-processor? Also explain the use of %i format specifier w.r.t, scanf() function.
Ask AI
Q.3 Solve this question :
Ask AI
Q3.1
Write a C program to Perform binary search on a set of given sorted numbers.
Ask AI
Q.4 Solve this question :
Ask AI
Q4.1
Write a C program to find the number of lines in a text file.
Ask AI
Q.5 Solve this question :
Ask AI
Q5.1
Explain pointer arithmetic with the help of suitable diagrams.
Ask AI
Q.6 Solve this question :
Ask AI
Q6.1
Explain the following bitwise operators:
(a) Bitwise AND
(b) Bitwise OR
(c) Bitwise XOR
(d) Bitwise Left ShiftAsk AI
Q.7 Solve this question :
Ask AI
Q7.1
What do you mean by 'call by reference'? Explain with the help of a function which swaps two numbers.
Ask AI
Q.8 Solve this question :
Ask AI
Q8.1
Write a C program of the following:
(a) Reverse a string without using strrev().
(b) Concatenate two strings without using strcat()Ask AI
Q.9 Solve this question :
Ask AI
Q9.1
Write a 'recursive' C program to print the following:
(a) GCD of two numbers
(b) Merge-sort of a set of given numbersAsk AI
2019V4100104
B.Tech 1st Semester Exam., 2019 (New Course)
Instructions
- All questions carry equal marks.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct answer from any seven of the following:
Ask AI
Q1.1
Let x be an integer which can take a value of 0 or 1. The statement if (x == 0)x = 1; else x = 0; is equivalent to which one of the following?
Ask AI
Q1.2
A program attempts to generate as many permutations as possible of the string, 'abcd' by pushing the characters a, b, c, d in the same order onto a stack, but it may pop off the top character at any time. Which one of the following strings cannot be generated using this program?
Ask AI
Q1.3
Suppose a C program has floating constant 1.414, what is the best way to convert this 'float' data type?
Ask AI
Q1.4
What is the output of the following program?
void main(){
int a;
a=1;
while(a<=1)
if(a%2)
printf("%d", a++);
else
printf("%d", ++a);
printf("%d", a+10);
}Ask AI
Q1.5
What is the output of this C code?
#include<stdio.h>
void main()
{
int a = 5 * 3 + 2 - 4;
printf("%d", a);
}Ask AI
Q1.6
What is the output of this C code?
#include<stdio.h>
void main()
{
int b = 6;
int c = 7;
int a = ++b+c--;
printf("%d", a);
}Ask AI
Q1.7
What is the output of this C code?
#include<stdio.h>
void foo(int*);
int main()
{
int i = 10;
foo((&i)++);
}
void foo(int* p)
{
printf("%d ", *p);
}Ask AI
Q1.8
User-defined data type can be derived by
Ask AI
Q1.9
As per C language standard, which of the following is/are not keyword(s)? Pick the best statement:
auto, make, main, sizeof, elseifAsk AI
Q1.10
What is the output of this C code (when 1 is entered)?
#include<stdio.h>
void main()
{
double ch;
printf ("enter a value between 1 to 2:");
scanf("%lf", &ch);
switch (ch)
{
case 1:
printf("1");
break;
case 2:
printf("2");
break;
}
}Ask AI
Q.2 Solve this question :
Ask AI
Q2.1
What do you mean by pre-processor? Also explain the use of %i format specifier w.r.t, scanf() function.
Ask AI
Q.3 Solve this question :
Ask AI
Q3.1
Write a C program to Perform binary search on a set of given sorted numbers.
Ask AI
Q.4 Solve this question :
Ask AI
Q4.1
Write a C program to find the number of lines in a text file.
Ask AI
Q.5 Solve this question :
Ask AI
Q5.1
Explain pointer arithmetic with the help of suitable diagrams.
Ask AI
Q.6 Solve this question :
Ask AI
Q6.1
Explain the following bitwise operators:
(a) Bitwise AND
(b) Bitwise OR
(c) Bitwise XOR
(d) Bitwise Left ShiftAsk AI
Q.7 Solve this question :
Ask AI
Q7.1
What do you mean by 'call by reference'? Explain with the help of a function which swaps two numbers.
Ask AI
Q.8 Solve this question :
Ask AI
Q8.1
Write a C program of the following:
(a) Reverse a string without using strrev().
(b) Concatenate two strings without using strcat()Ask AI
Q.9 Solve this question :
Ask AI
Q9.1
Write a 'recursive' C program to print the following:
(a) GCD of two numbers
(b) Merge-sort of a set of given numbersAsk AI
2019100204
B.Tech 2nd Semester Exam., 2019 (New Course)
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct alternative (any seven):
Ask AI
Q1.1
What will be the data type of result of the following operation?
(float)a * (int)b/(long)c * (double)d)Ask AI
Q1.2
What does the following declaration mean?
int (*ptr) [10];Ask AI
Q1.3
Which of the following is a correct format for declaration of function?
Ask AI
Q1.4
The value obtained in the function is given back to main by using ______ keyword.
Ask AI
Q1.5
Which data type is most suitable for storing a number 65000 in a 32-bit system?
Ask AI
Q1.6
Which of the following declarations is not supported by C?
Ask AI
Q1.7
Which of the following is an invalid if-else statement?
Ask AI
Q1.8
A local variable declaration with no storage class specified is by default
Ask AI
Q1.9
Automatic variables are initialized to
Ask AI
Q1.10
The getchar() function is defined in ______ header file.
Ask AI
Q.2 Solve all parts :
Ask AI
Q2.1
What do you understand by the term 'problem solving'? How can programming be used to do problem solving?
Ask AI
Q2.2
Discuss about the components of computer system. How are they involved in computer programming activity?
Ask AI
Q2.3
Write the algorithm for exchanging the values of two variables.
Ask AI
Q.3 Solve all parts :
Ask AI
Q3.1
Differentiate between flowchart, pseudo-code and source code.
Ask AI
Q3.2
What are the outcomes of compilation of a program? Discuss in detail.
Ask AI
Q3.3
What are constants? List the types of constants as defined in C language.
Ask AI
Q.4 Solve all parts :
Ask AI
Q4.1
What are the libraries? How are they different from header files?
Ask AI
Q4.2
What is an array? Write a C program to find the average of 10 numbers of an array.
Ask AI
Q4.3
What do you understand by the operator precedence? Explain.
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
Define storage classes of C with some appropriate examples.
Ask AI
Q5.2
What is branching? What are the possible types of branching and the C statements used for such type of branching? Give a detailed explanation with example.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Write a C program to calculate 12!/8. The operation is factorial of 12, divided by 8. Also comment by examine whether the algorithm used is efficient.
Ask AI
Q6.2
What is type casting? Explain its classification through examples.
Ask AI
Q.7 Solve all parts :
Ask AI
Q7.1
Give the purpose, proper syntax and other variants of 'getch()' and 'gets()' functions.
Ask AI
Q7.2
How can an array of numbers be passed to function as parameter? Write an example C program in support.
Ask AI
Q7.3
What is dynamic memory allocation in C?
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
Differentiate between the following:
(i) Structures and Union
(ii) Formatted and Unformatted data filesAsk AI
Q8.2
What is a file? List different operations performed on file. How are they achieved? Explain.
Ask AI
Q.9 Solve all parts :
Ask AI
Q9.1
Write a C program to create an array of structures named "STUDENT" with fields, Name, Cell no, Address, and Marks. How to show any student record using this structure?
Ask AI
Q9.2
Which of the sorting algorithm is better than other and why? Explain.
Ask AI
Q9.3
Write C program for merge sort algorithm.
Ask AI
2019V4100204
B.Tech 2nd Semester Exam., 2019 (New Course)
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct alternative (any seven):
Ask AI
Q1.1
What will be the data type of result of the following operation?
(float)a * (int)b/(long)c * (double)d)Ask AI
Q1.2
What does the following declaration mean?
int (*ptr) [10];Ask AI
Q1.3
Which of the following is a correct format for declaration of function?
Ask AI
Q1.4
The value obtained in the function is given back to main by using ______ keyword.
Ask AI
Q1.5
Which data type is most suitable for storing a number 65000 in a 32-bit system?
Ask AI
Q1.6
Which of the following declarations is not supported by C?
Ask AI
Q1.7
Which of the following is an invalid if-else statement?
Ask AI
Q1.8
A local variable declaration with no storage class specified is by default
Ask AI
Q1.9
Automatic variables are initialized to
Ask AI
Q1.10
The getchar() function is defined in ______ header file.
Ask AI
Q.2 Solve all parts :
Ask AI
Q2.1
What do you understand by the term 'problem solving'? How can programming be used to do problem solving?
Ask AI
Q2.2
Discuss about the components of computer system. How are they involved in computer programming activity?
Ask AI
Q2.3
Write the algorithm for exchanging the values of two variables.
Ask AI
Q.3 Solve all parts :
Ask AI
Q3.1
Differentiate between flowchart, pseudo-code and source code.
Ask AI
Q3.2
What are the outcomes of compilation of a program? Discuss in detail.
Ask AI
Q3.3
What are constants? List the types of constants as defined in C language.
Ask AI
Q.4 Solve all parts :
Ask AI
Q4.1
What are the libraries? How are they different from header files?
Ask AI
Q4.2
What is an array? Write a C program to find the average of 10 numbers of an array.
Ask AI
Q4.3
What do you understand by the operator precedence? Explain.
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
Define storage classes of C with some appropriate examples.
Ask AI
Q5.2
What is branching? What are the possible types of branching and the C statements used for such type of branching? Give a detailed explanation with example.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Write a C program to calculate 12!/8. The operation is factorial of 12, divided by 8. Also comment by examine whether the algorithm used is efficient.
Ask AI
Q6.2
What is type casting? Explain its classification through examples.
Ask AI
Q.7 Solve all parts :
Ask AI
Q7.1
Give the purpose, proper syntax and other variants of 'getch()' and 'gets()' functions.
Ask AI
Q7.2
How can an array of numbers be passed to function as parameter? Write an example C program in support.
Ask AI
Q7.3
What is dynamic memory allocation in C?
Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
Differentiate between the following:
(i) Structures and Union
(ii) Formatted and Unformatted data filesAsk AI
Q8.2
What is a file? List different operations performed on file. How are they achieved? Explain.
Ask AI
Q.9 Solve all parts :
Ask AI
Q9.1
Write a C program to create an array of structures named "STUDENT" with fields, Name, Cell no, Address, and Marks. How to show any student record using this structure?
Ask AI
Q9.2
Which of the sorting algorithm is better than other and why? Explain.
Ask AI
Q9.3
Write C program for merge sort algorithm.
Ask AI
2018100104
B.Tech 1st Semester Exam., 2018 (New)
Instructions
- All questions carry equal marks.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct answer (any seven):
Ask AI
Q1.1
Which of these, best describes an array?
Ask AI
Q1.2
How do you initialize an array in C?
Ask AI
Q1.3
When does the segmentation fault occur?
Ask AI
Q1.4
What is the output of the following program?
void main(){
int a;
a=1;
while(a<=1)
if(a%2)
printf("%d", a++);
else
printf("%d", ++a);
printf("%d", a+10);
}Ask AI
Q1.5
What is the output of the following code?
void main()
{
int i;
i=0;
if(i=15,10,5)
printf("Programming %d",i);
else
printf("Skills %d",i);
getch();
}Ask AI
Q1.6
What will be printed as the result of the operation below?
main()
{
char s1[]="Cisco";
char s2[]="systems";
printf ("%s", s1);
}Ask AI
Q1.7
Process of inserting an element in stack is called
Ask AI
Q1.8
Consider the following segment of C-code:
int j, n;
j=1;
while (j<=n)
j=j*2;
The number of comparisons made in the execution of the loop for any n>0 is: (Base of log is 2 in all options)Ask AI
Q1.9
The minimum number of comparisons required to find the minimum and the maximum of 100 numbers is
Ask AI
Q1.10
What is the output of following program?
#include <stdio.h>
int main()
{
int a=1;
int b=1;
int c=a || --b;
int d=a-- && --b;
printf("a=%d, b=%d, c=%d, d=%d", a, b, c, d);
return 0;
}Ask AI
Q.2 Solve this question :
Ask AI
Q2.1
How array and pointers are related? Explain with the help of suitable diagrams.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
Write a C program to count the number lines input by the user.
Ask AI
Q3.2
Explain the difference between call by reference and call by value with the help of a suitable example.
Ask AI
Q.4 Solve this question :
Ask AI
Q4.1
With the help of an example, differentiate between static and dynamic memory allocations.
Ask AI
Q.5 Solve this question :
Ask AI
Q5.1
What are library functions and their users in C language? Can we write our own functions and include them in C library?
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Write a "recursive" C program to print—
(a) Fibonacci series;
(b) factorial of a given number.Ask AI
Q.7 Solve this question :
Ask AI
Q7.1
Write the differences between structure and union. Compare them with the help of an example.
Ask AI
Q.8 Solve this question :
Ask AI
Q8.1
Write a C program to convert an infix expression into postfix expression. In particular, an infix expression: $(1-2)*(4+5)$ will have postfix expression: $12-45+*$.
Ask AI
Q.9 Solve this question :
Ask AI
Q9.1
Write a C program to illustrate reading of data from a file.
Ask AI
2018V4100104
B.Tech 1st Semester Exam., 2018 (New)
Instructions
- All questions carry equal marks.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct answer (any seven):
Ask AI
Q1.1
Which of these, best describes an array?
Ask AI
Q1.2
How do you initialize an array in C?
Ask AI
Q1.3
When does the segmentation fault occur?
Ask AI
Q1.4
What is the output of the following program?
void main(){
int a;
a=1;
while(a<=1)
if(a%2)
printf("%d", a++);
else
printf("%d", ++a);
printf("%d", a+10);
}Ask AI
Q1.5
What is the output of the following code?
void main()
{
int i;
i=0;
if(i=15,10,5)
printf("Programming %d",i);
else
printf("Skills %d",i);
getch();
}Ask AI
Q1.6
What will be printed as the result of the operation below?
main()
{
char s1[]="Cisco";
char s2[]="systems";
printf ("%s", s1);
}Ask AI
Q1.7
Process of inserting an element in stack is called
Ask AI
Q1.8
Consider the following segment of C-code:
int j, n;
j=1;
while (j<=n)
j=j*2;
The number of comparisons made in the execution of the loop for any n>0 is: (Base of log is 2 in all options)Ask AI
Q1.9
The minimum number of comparisons required to find the minimum and the maximum of 100 numbers is
Ask AI
Q1.10
What is the output of following program?
#include <stdio.h>
int main()
{
int a=1;
int b=1;
int c=a || --b;
int d=a-- && --b;
printf("a=%d, b=%d, c=%d, d=%d", a, b, c, d);
return 0;
}Ask AI
Q.2 Solve this question :
Ask AI
Q2.1
How array and pointers are related? Explain with the help of suitable diagrams.
Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
Write a C program to count the number lines input by the user.
Ask AI
Q3.2
Explain the difference between call by reference and call by value with the help of a suitable example.
Ask AI
Q.4 Solve this question :
Ask AI
Q4.1
With the help of an example, differentiate between static and dynamic memory allocations.
Ask AI
Q.5 Solve this question :
Ask AI
Q5.1
What are library functions and their users in C language? Can we write our own functions and include them in C library?
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Write a "recursive" C program to print—
(a) Fibonacci series;
(b) factorial of a given number.Ask AI
Q.7 Solve this question :
Ask AI
Q7.1
Write the differences between structure and union. Compare them with the help of an example.
Ask AI
Q.8 Solve this question :
Ask AI
Q8.1
Write a C program to convert an infix expression into postfix expression. In particular, an infix expression: $(1-2)*(4+5)$ will have postfix expression: $12-45+*$.
Ask AI
Q.9 Solve this question :
Ask AI
Q9.1
Write a C program to illustrate reading of data from a file.
Ask AI