TCS Ninja C MCQ Questions and Answers

C MCQ Questions and Answers for TCS Ninja

Find all the previous year asked TCS Ninja C MCQ Questions and answers only on PrepInsta.Here you will find different types of TCS Ninja C mcq questions answers and also you will find TCS Ninja latest C MCQ questions paper with solutions.

Buy soon price is going to increase tomorrow –

Get all the questions asked Today in TCS here – 

TCS Ninja Live Questions Dashboard

Pattern for C MCQ For 2019 and 2020 Passouts :   

  • No Of Questions:- 10(7+3 Star Marked) TCS Questions
  • Time:- 20 mins

C MCQ Questions and Answers for TCS Ninja
  1. Eesha was in a wonderland where she saw a treasure trove of seven items of various items (in lakhs) and weights (in kgs) as per the table given below.

Value – Weight

12                4

10              6

8               5

11             7

14            3

5             10

5               12

She wanted to bring back maximum value of items but she was not able to carry more than 10 kgs.  Using dynamic programing, what is the maximum value of of the items that she could carry back with her.

Answer: 26

2. In c language, if a function return type is not explicitly defined then it defaults to what data type?

Answer: Int

3. Which of the following syntax is correct for command -line arguments?

a. int main (char *argv[], int argc)

b. none of the three options

c. int main ()


int argv, char *argc[];


d. int main(int var, char *varg[])

Answer: int main (int var,char *varg[])

Online Classes

  1. Free Paid Materials also given
  2. Click here to join Online Live Class

PrepSter Study Material

In Online class you will get preparation paid materials access also, but if you just want materials then you can buy the ones below –

If you want to Register for Online Class Register here.


Prepare Better for Placement Papers