TCS Technical/Programming MCQ Questions And Answers - TCS

TCS Technical MCQ Questions: This section focuses on "Technical Questions" of TCS Exam. These programming MCQs are asked in previous TCS NQT Exams and will help you to prepare for upcoming TCS NQT exam.

1. A data type is stored as a 6 bit signed integer. Which of the following cannot be represented by this data type?

A. -12
B. 5
C. 25
D. 32

View Answer

2. What is the difference between a function and a method?

A. Function is a named code unlike method which is a part of an object
B. Function cannot change variables outside its scope unlike method
C. There is no difference between the two
D. Function contained in an object is called a method

View Answer

3. What will be output for the following code?

int main()
     int a=5,b=7
        case 5 :printf(""I am 5"");
        case 7: printf(""I am not 5"");
        default:printf(""I am different"");
return 0;

A. I am 5
B. I am not 5
C. I am different
D. Error

View Answer

4. The value of EOF is _____

A. 0
B. -1
C. 1
D. infinite

View Answer

5. An array is also known as ___________ ?

A. Subscripted variable
B. Ordinary variable
C. Similar Quantities variable
D. Collective array

View Answer

6. What is the output of this C code?

void main()
   static int i;
   printf(""i is %d"", i);

A. Zero
B. 1
C. Garbage Value
D. Runtime Error

View Answer

7. Which of this is used to skip one iteration?

A. break
B. goto
C. continue
D. return

View Answer

8. Which has the highest precision?

A. float
B. unsigned long int
C. double
D. long int

View Answer

9. How can we insert different type of data in the stack.

A. Not possible
B. By implementing union
C. Structure data type
D. Both B and C

View Answer

10. Which of the following is not a valid type of polymorphism ?

A. imperative polymorphism
B. adhoc polymorphism
C. predicative polymorphism
D. inclusion polymorphism

View Answer


* You must be logged in to add comment.