Join our WhatsApp Channel Join Now!
Posts

JNTUK B.TECH R23 1st Year Introduction to programming subject important questions

HeyTopper

B.Tech R23 Introduction to programming Important Questions

Understand the concept and learn some basic programs, good marks vastayi

UNIT I

2 Marks Questions:

  • What are the basic steps involved in writing a computer program?
  • Explain the characteristics of an algorithm with examples.
  • What is the difference between Top-down and Bottom-up problem solving approaches?

5 Marks Questions:

  • Write algorithm and draw a flow chart for reversing a given number.
  • Explain the features following: (i) Machine language (ii) Assembly level language (iii) High level language (iv) Basic Computer Program
  • Give the block diagram of a computer. Explain functionality of each component.
  • Define flowchart? How it is useful in writing the programs? Explain about different symbols in Flow chart? Give Example.
  • Explain the basic organization of a computer including ALU, input-output units, memory, and program counter.
  • Compare and contrast compilation and execution processes with examples.

UNIT II

2 Marks Questions:

  • How switch case works without break statement?
  • What are selection statements and explain their necessity in programming?
  • Differentiate between entry controlled and exit controlled loops with examples.

5 Marks Questions:

  • Develop a program to check whether the given number is Armstrong number or not.
  • Write a program demonstrating nested loops with practical applications.
  • Explain the working of switch statement with fall-through behavior and provide examples.
  • Develop a program that asks user an arithmetic operator ('+', '-', '*' or '/') and two operands and perform the corresponding calculation on the operands. Use a switch statement.
  • Write program to check whether the given integer is palindrome or not by using for loop.
  • Illustrate the use of special control constructs goto, break, continue and return.

UNIT III

2 Marks Questions:

  • What is multi-dimensional array?
  • Explain array indexing and memory model with examples.
  • How are two-dimensional arrays stored in memory?

5 Marks Questions:

  • Develop a program to find the average of smallest and largest numbers in a given array.
  • Write a C program to calculate the sum and difference of two 2-dimensional Matrices.
  • Write a program to demonstrate array manipulation operations including insertion, deletion, and searching.
  • Explain string operations and write programs for string concatenation, comparison, and length calculation.
  • Develop a program to append the one string to another string without using predefined functions.
  • Develop a C program to multiply two 'm × n' matrices. Cover all necessary conditions.

UNIT IV

2 Marks Questions:

  • What is pointer to pointer?
  • Explain dereferencing and address operators with examples.
  • What is the difference between structures and unions in terms of memory allocation?

5 Marks Questions:

  • Write a program to show the subject registration for an exam by the student using structures.
  • Explain the array of pointers with example.
  • Write a program demonstrating pointer arithmetic operations and their applications.
  • Develop a program using pointers to read in an array of integers and print its elements in reverse order.
  • List the difference between structures and unions. Explain with an example.
  • Explain array manipulation using pointers with practical examples.

UNIT V

2 Marks Questions:

  • What is the difference between fscanf() and fprintf()? Give an example.
  • Explain the scope and lifetime of variables in different contexts.
  • What are the different ways to pass arrays as parameters to functions?

5 Marks Questions:

  • Develop a C program to find sum of 'n' Elements entered by user. To perform this program, allocate memory dynamically Using malloc() function.
  • Write a C program to copy the contents of a text file to another file. Pass the filename using command line arguments.
  • Develop a program to calculate the factorial of a given number using recursion.
  • Write a comprehensive program demonstrating file handling operations including opening, reading, writing, and closing files.
  • Develop a C program to count the number of characters in a file.
  • Explain function declaration, definition, and call mechanisms with return types and arguments.

Post a Comment

Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.