Very Important Questions of C Language for BTEUP Students

2
  • Difference between a compiler and an interpreter?
  • Explain the basic structure of a C program.
  • Describe the role of the main() function in a C program.
  • Differentiate between the unary, binary, and ternary operators.
  • Explain the logical AND (&&) and logical OR (||) operators.
  • What are the differences between if, else if, and nested if statements?
  • Explain Switch statement.
  • Discuss while, and do-while loops.
  • Define and explain the significance of functions in C.
  • Differences between call by value and call by reference.
  • What is recursion, and how is it implemented in C?
  • How are arrays declared and initialized in C?
  • What is a multidimensional array?
  • Discuss the functions used for string manipulation in C.
  • Define a pointer and explain its uses in C.
  • Differentiate between pointers and arrays.
  • Explain the concept of dynamic memory allocation.
  • Discuss the differences between structures and unions.
  • Explain the concept of nested structures.
  • List and explain the basic data types in C.
  • Differentiate between local and global variables in C?
  • Explain the concept of typecasting in C.
  • Write a simple C program to print “Hello, World!”.
  • Explain the role of the #include directive in C programs.
  • What is the purpose of the return 0; statement in the main function?
  • Discuss the differences between int and float data types in C.
  • Write a C program to perform arithmetic operations (addition, subtraction, multiplication, division) on two numbers.
  • Explain the difference between the ++i and i++ increment operators.
  • Write a C program to check if a number is even or odd.
  • Implement a program that finds the maximum of three numbers using conditional statements.
  • Create a program to print the first 10 natural numbers using a for loop.
  • Write a C program to calculate the factorial of a number using a while loop.
  • Define a function to calculate the square of a number. Call this function from the main function.
  • Write a program to find the sum of elements in an integer array.
  • Declare a pointer variable and assign it the address of another variable. Print both the value and address.
  • Write a program to swap the values of two variables using pointers.
  • Define a structure to represent a student with attributes like name, roll number, and marks. Create an array of students.
  • What is a flow chart? Explain with an example.
  • Explain different types of token in C.
  • Explain break and Continue statement.
  • What are the features of the C programming language?
  • What is recursion in C?
  • What are the functions and their types?
  • What are enumerations?
  • Write a C program to check whether a number is prime or not.
  • What is the use of printf() and scanf() functions in C Programming language?
  • What is the difference between getc(), getchar(), getch() and getche().

2 thoughts on “Very Important Questions of C Language for BTEUP Students

Leave a Reply

Your email address will not be published. Required fields are marked *