C FAQ’S Collected from the students who attended technical round in TCS recruitment.

16
C FAQ’S Collected from the students who attended technical round in TCS recruitment

Transcript of C FAQ’S Collected from the students who attended technical round in TCS recruitment.

Page 1: C FAQ’S Collected from the students who attended technical round in TCS recruitment.

C FAQ’S

Collected from the students who attended technical round in TCS recruitment

Page 2: C FAQ’S Collected from the students who attended technical round in TCS recruitment.

• How much you rate yourself in C out of 10

• Difference between Compiler and Interpreter

• What is the basic structure of C program

Page 3: C FAQ’S Collected from the students who attended technical round in TCS recruitment.

• What is the use of define section in C Program. Purpose of macros

• What is the difference between defining a variable and declaring a variable.

• What is the size of int in different operating systems.

Page 4: C FAQ’S Collected from the students who attended technical round in TCS recruitment.

• Difference between scanf() and printf()

• Difference between %s and %c

• Program for Swapping without 3rd variable

• What is Type casting

Page 5: C FAQ’S Collected from the students who attended technical round in TCS recruitment.

• Some programs using if else statements

• Program to find the factorial of a given number and using recursion also

• Program to print Fibonacci numbers up to 100

• Program to print prime numbers from 1 to 100

• Program to find nth prime number

Page 6: C FAQ’S Collected from the students who attended technical round in TCS recruitment.

• Program for perfect number

• Program to find the reverse of the given number

• Program to convert numbers into words

• Program to generate household current bill

Page 7: C FAQ’S Collected from the students who attended technical round in TCS recruitment.

• Some questions on Operator precedence

• What is the difference between void main() and int main()

• Is void a data type

• Program to print 24-hour Digital Clock

• Write a program using Define keyword

Page 8: C FAQ’S Collected from the students who attended technical round in TCS recruitment.

• Program to read an array and print it

• Different types of storing a string into a variable

• There are three words – Ramesh, suresh, raghav. Print these words in dictionary order

• Program for string palindrome

• Concatenation of strings

• What is the difference between strcpy() and memcpy()

Page 9: C FAQ’S Collected from the students who attended technical round in TCS recruitment.

• What is a pointer

• Uses of pointers

• Can we add or multiply pointers

• How to pass pointers as arguments to functions

• How do you print an address

Page 10: C FAQ’S Collected from the students who attended technical round in TCS recruitment.

• Definitions of functions

• Different parameter passing mechanisms

• Difference between Call by Value and Call by reference

• Swapping using call by reference

Page 11: C FAQ’S Collected from the students who attended technical round in TCS recruitment.

• What is function overloading

• Some programs on recursion ex: factorial of the given number

sum of all digits in the given number Fibonacci series gcd of given 2 numbers

• Some questions on Storage classes

Page 12: C FAQ’S Collected from the students who attended technical round in TCS recruitment.

• Difference between static memory allocation and dynamic memory allocation

• Different Memory allocation functions

• Difference between malloc() and calloc()

• Difference between malloc and new

Page 13: C FAQ’S Collected from the students who attended technical round in TCS recruitment.

• What is Structure. Difference between structure and Union.

• Difference between Arrays and structures

• Tell something about Bit fields

• Difference between structure and class

• What is the purpose of using typedef

Page 14: C FAQ’S Collected from the students who attended technical round in TCS recruitment.

• Types of Sorting and Searching techniques

• Write a program for Bubble sort

• What is Heap

• Explain Heap sort with an example

• Write quick sort algorithm

• Program for Binay search

Page 15: C FAQ’S Collected from the students who attended technical round in TCS recruitment.

• What is Stack. Why it is called LIFO

• Difference between Stack and Queue

• Give the structure which represents a Node in the linked list

• Write code to create a SLL.

Page 16: C FAQ’S Collected from the students who attended technical round in TCS recruitment.

• Differentiate between C and C++

• Explain in detail about Compilation phases

• For greater productivity what would you prefer C or C++

• What are the differences between Procedure oriented and object oriented languages

• Can we create a function in place of SCANF

• Types of errors you have experienced in your Project