Follow Quotesrain
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions
  • /
  • TCS
  • /
  • Programming
  • /
  • Functions

Frequently Asked TCS Programming - Functions Interview Questions with Answers

TCS Select Another Category Functions Select Another Topic

Company

  • 3i-Infotech 345
  • Accenture 547
  • ADITI 81
  • Athenahealth 72
  • CADENCE 37
  • Capgemini 519
  • CMC 49
  • Cognizant 29
  • CSC 480
  • CTS 1340
  • Dell 49
  • Elitmus 44
  • GENPACT 516
  • Google 55
  • HCL 217
  • Hexaware 92
  • Huawei 81
  • IBM 1714
  • IGate 169
  • Infosys 2050
  • L&T 299
  • Microsoft 61
  • Miscellaneous 204
  • Oracle 74
  • Other 95
  • Patni 199
  • Sapient 44
  • Sasken 31
  • Self 38
  • Syntel 530
  • TCS 9108
  • Tech Mahindra 500
  • Wipro 1182

TCS Question Topics

    Category (489)

    General Ability (141)

  • General Knowledge (140)
  • HR Interview (122)

  • Interview (119)
  • Logical Reasoning (850)

  • Age Problem (1)
  • Blood Relations (138)
  • Coding Decoding (85)
  • Cryptography (43)
  • Decision Making and Problem Solving (54)
  • Direction Sense (28)
  • General Mental Ability (96)
  • Letter Arrangement (24)
  • Letter Series (20)
  • Logical Sequences (60)
  • Mathematical Reasoning (109)
  • Missing Character (20)
  • Number Series (135)
  • Seating Arrangement (31)
  • Numerical Ability (3071)

  • Age Problem (196)
  • Algebra (164)
  • Alligation or Mixture (18)
  • Area and Volume (112)
  • Arithmetic (216)
  • Averages (82)
  • Boats and Streams (13)
  • Clocks and Calendars (50)
  • Co-ordinate geometry (29)
  • Complex Numbers (10)
  • Data Interpretation (24)
  • Data Sufficiency (11)
  • Geometry (116)
  • Height and Distance (15)
  • LCM and HCF (63)
  • Log and Antilog (10)
  • Number System (438)
  • Percentage (104)
  • Permutation and Combination (335)
  • Pipes and Cistern (6)
  • Probability (304)
  • Profit and Loss (102)
  • Quadratic Equations (16)
  • Ratio and Proportion (97)
  • Sequence and Series (86)
  • Simple & Compound Interest (16)
  • Stock and Shares (7)
  • Time and Work (180)
  • Time Distance and Speed (188)
  • Trigonometry (15)
  • Programming (166)

  • Arrays (23)
  • Basics (13)
  • Database (10)
  • Definition (8)
  • Functions (12)
  • Output (18)
  • Program (30)
  • Puzzles (2)
  • Technical (22)
  • Variables (11)
  • Verbal Ability (87)

  • Antonyms (15)
  • Miscellaneous (16)
  • One Word Substitution (8)
  • Sentence Arrangement (12)
  • Sentence Completion (7)
  • Spotting Errors (5)
  • Synonyms (23)
Keep an EYE (0)TCS Interview Experience (89)
Solved Question (0) UnSolved Question (12)
Pages: 212NextLast
Advertisements

(#M40165166) TCS QUESTION Technical MCQ Keep an EYE Keep an eye puzzle Keep an eye puzzle

If a function is defined as static, it means
1. The value returned by the function does not change
2. all the variable declared inside the function automatically will be assigned
initial value of zero
3. It should be called only within the same source code / program file.
4. None of the other choices as it is wrong to add static prefix to a function

Asked In TCS Ashish (5 years ago)
Unsolved Read Solution (5)
Is this Puzzle helpful?   (15)   (2) Submit Your Solution Functions

(#M40167100) TCS QUESTION Which function which accepts string with white spaces? Keep an EYE Keep an eye puzzle Keep an eye puzzle

Which of the following function is used to accept string with white spaces?

A. getStrings();
B. getWhiteSpaceString();
C. scanf();
D. gets();

Asked In TCS Jax (1 year ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (25)   (3) Submit Your Solution Functions
Advertisements

(#M40165177) TCS QUESTION Technical MCQ Keep an EYE Keep an eye puzzle Keep an eye puzzle

Is there any difference between following declarations?
A : extern int fun();
B : int fun();
1.Both are identical
2.No difference, except extern int fun(); is probably in another file
3.int fun(); is overrided with extern int fun();
4.None of these

Asked In TCS Ashish (5 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (20)   (3) Submit Your Solution Functions

(#M40167051) TCS QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

The value obtained in the function is given back to the main by using ________ keyword?
A)Return B)Static C)New D)Volatile

Asked In TCS Devendra Marghade (2 years ago)
Unsolved Read Solution (9)
Is this Puzzle helpful?   (11)   (2) Submit Your Solution Functions

(#M40167012) TCS QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

A^B means A raised to the power B.
If f(x) = ax^4 - bx^2 + x + 5 and f(-3) = 2, then f(3) = ?
1)3 2)8 3)-2 4)1

Asked In TCS Devendra Marghade (2 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (5)   (0) Submit Your Solution Functions

(#M40153514) TCS QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

In this problem, ABS(x) provides absolute value of x, without regard to its sign. For example ABS(3) = ABS(-3) = 3
The graphs of y = – ABS(x – a) + b and y = ABS(x – c) + d intersect at points (2,5) and (8, 3).
Find a + c
a. 8
b. 10
c. 7
d. 5

Asked In TCS (7 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (8)   (15) Submit Your Solution Functions

(#M40153992) TCS QUESTION reminder Keep an EYE Keep an eye puzzle Keep an eye puzzle

In this question, A^B means A raised to the power B.Let f(x)=1+x+x^2+......+x^6.Then reminder when f(x^7) is divided by f(x)is:
(a)6
(b)7
(c)0
(d)none

Asked In TCS joydip (7 years ago)
Unsolved Read Solution (5)
Is this Puzzle helpful?   (6)   (2) Submit Your Solution Functions

(#M40153848) TCS QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

In this equation , A^B means A raised to the power B. If f(x)= ax^4 + bx^4 + x + 5.
If f(-3) = 2 then f(3) = ?

Asked In TCS AKSHAY (7 years ago)
Unsolved Read Solution (15)
Is this Puzzle helpful?   (29)   (8) Submit Your Solution Functions

(#M40003405) TCS QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

With four fifths of the tank full, a vehicle travels 12 miles. How much distance will the vehicle travel with one-third tank full

Asked In TCS RK Ostwal (11 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (2)   (3) Submit Your Solution Functions

(#M40153025) TCS QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

In this question, A^B means A raised to the power B. let f(X) = 1 + X + X^2 +…..X^6. The remainder when f(X^7) is divided by f(X) is :
o 7
o 0
o 6
o None of the other 3 choices

Asked In TCS Nakshatra Mukhopadhyay (7 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (3)   (3) Submit Your Solution Functions
Keep an EYE (0)TCS Interview Experience (89)
Solved Question (0) UnSolved Question (12)
Pages: 212NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

no image
Dimple
India
Punjab
Time: 00:01:33
Points
19

Maths Quotes

"If you able to solve the problems in MATHS, then you also able to solve the problems in your LIFE" (Maths is a great Challenger)

Vignesh

If a man's wit be wandering, let him study the mathematics.

Azhar Shahid

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 2 years ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 3 years ago
  • 2476K+Registerd user
  • 1734K+Engineers
  • 742K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com