Notifications Mark All Read. The languages that you can use in the test are —. There will be total of 6 test cases, out of which results of 3 will be shown to you and 3 will be hidden.
Test cases are basically compiler generated input which will check if your output is coming as expected. Total marks for coding section are 30 marks. Write a code to check whether no is prime or not. Link to this Question. This series is a mixture of 2 series — all the odd terms in this series form a geometric series and all the even terms form yet another geometric series.
Write a program to find the Nth term in the series. Link to this Question —. Link to this Questions.
There were a total of 4 test cases. Once you compile 3 of them will be shown to you and 1 will be a hidden one. You have to display error message if numbers are not numeric.
TCS Coding Programming Questions with Answers PDF Download
In Online class you will get preparation paid materials access also, but if you just want materials then you can buy the ones below —. We will try help you with learning command line argument based coding for TCS. We have the latest set of questions for the new pattern.
Platform will be eclipse based compiler. You can code on onlinegdb.
All your codes working on this website would run perfectly in TCS compiler. Read everything once and then when you read again things will start to make sense.Post a Comment. About Me priyankabharti52 View my complete profile. Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. Add a behavior to change the Wattage and price of the electrical product.
Display the updated ElectricalProduct details. Create Periodical which has the following additional attributes: Period weekly, monthly etc Add a behavior to modify the Price and the Period of the periodical. Display the updated periodical details. Create Vehicle having following attributes: Vehicle No. Create truck which has the following additional attributes:loading capacity tons…. Add a behavior to change the color and loading capacity. Display the updated truck details.
Write a program which performs to raise a number to a power and returns the value. Provide a behavior to the program so as to accept any type of numeric values and returns the results. Write a function Model-of-Category for a Tata motor dealers, which accepts category of car customer is looking for and returns the car Model available in that category. Posted by priyankabharti52 at Email This BlogThis!
No comments:. Newer Post Older Post Home. Subscribe to: Post Comments Atom.February 23, Post a Comment. March 18, Amidst the outbreak of coronavirus, the management committee at tcs xplore assessments has released an understanding on the pressing issue.
According to them those who were unwilling to step out their homes can now remain intact and keep learning since theyll be conducting the scheduled assessment at a later date which will be communicated via various means.
Though they have told to keep an eye on mails from their side. They have also clearly stated that the readiness incentive deadline which was earlier 31st March will also be extended so that the willing candidates should not lose their chance of getting those bucks right their into your pockets. They haven't spoken about the current joining dates and it is more prominent that the dates will get affected due to the coronavirus outbreak.2nd March 2020 Tcs Xplore Proctored Exam Java Solution
So whatever…. Read more. Must do : PA Coding Questions:. February 28, Aiming for those extra-bucks, you've come to the right place. Here is the collection of the most important questions that are a must-do before the Assessment. So that you can stand out the crowd and yeah can get those bucks right there in your pocket. Note: Make sure to submit your answers in the comment section below: Solutions would only be provided to those who are willing to edge through the PA. Percentage marks are calculated using from above information….GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
If nothing happens, download GitHub Desktop and try again. If nothing happens, download Xcode and try again. If nothing happens, download the GitHub extension for Visual Studio and try again. UPI: venkivijay upi Click to scan. All the best for your assessments. Skip to content. Dismiss Join GitHub today GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up. Java Branch: master. Find file. Sign in Sign up. Go back. Launching Xcode If nothing happens, download Xcode and try again. Latest commit. Latest commit 11cb2d9 Apr 17, The question is saved as a md markdown file with name as "question".
The answer is saved as a java file with name as solution. Contribute Your suggestions are most welcome. Need help? Struck somewhere? You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Update issue templates. Apr 11, Initial Commit. Feb 27, Data Transmission Program Hackathon. Apr 2, Updated Hackathon Apr Apr 17, Update Question. Apr 9, We have the best material to help you learning command line argument based coding for TCS.
You can also prepare for tcs coding question on prepinsta here. B all the variable declared inside the function automatically will be assigned initial value of zero. The factorial of a number N is defined as the product of all integers from 1 up to N. Factorial of 0 is defined to be 1. The number N is a non-negative integer that will be passed to the program as the first command line parameter.
TCS Coding Questions with Answers
You may assume that the input integer will be such that the output will not exceed the largest possible integer that can be stored in an int type variable. The values base and height are both positive integers passed to the program as the first and second command line parameters respectively. Scientific format such as 1.
You may assume that the inputs will be such that the output will not exceed the largest possible real number that can be stored in a float type variable. Therefore, when we want to restrict access to functions, we make them static. These are some questions you should know the answers to. The underlined options are the correct ones.
Strings are character arrays. The last index of it contains the null-terminated character. In the standard library of C programming language, which of the following header file is designed for basic mathematical operations? What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array? If the index of the array size is exceeded, the program will crash. But the modern compilers will take care of this kind of errors. In C, if you pass an array as an argument to a function, what actually gets passed?
When we pass an array as a function argument, the base address of the array will be passed. No, both the statements are same. It is the prototype for the function fun that accepts one integer array as an parameter and returns an integer value.Define constructors and getter setters as given in the class outline.
Ensure attributes are private and other methods which will be called from main method, getter-setter methods and constructor is public. Declare Bank class with below attributes: a. Balance — float Write below methods in this class.
Thanks for Sharing this article keep update this kind of nice articles. Write a program to find the difference between sum of the squares and the square of the sums of n numbers? Sum of the square n ,square of sum n. Scanner; import java.
Develop a program that accepts the area of a square and will calculate its perimeter. Develop the program calculateCylinderVolume. Define the program calculateTax which determines the tax on the gross pay. Define calculateNetPay that determines the net pay of an employee from the number of hours worked. An old-style movie theater has a simple profit program. Develop the program calculateTotalProfit that consumes the number of attendees of a show and calculates how much income the show earns.
Develop the program calculateCylinderArea, which accepts radius of the cylinder's base disk and its height and computes surface area of the cylinder.
Develop the program calculatePipeArea. It computes the surface area of a pipe, which is an open cylinder. The program accpets three values: the pipes inner radius, its length, and the thickness of its wall. Develop the program calculateHeight, which computes the height that a rocket reaches in a given amount of time. Develop a program that computes the distance a boat travels across a river, given the width of the river, the boat's speed perpendicular to the river, and the river's speed.
Develop a program that accepts an initial amount of money called the principala simple annual interest rate, and a number of months will compute the balance at the end of that time. Total interest is the product of the principal, the annual interest rate expressed as a decimal, and the number of years. Email This BlogThis!
Unknown 25 January at Coimbatore Ooty Taxi 2 April at Subscribe to: Posts Atom.We hope that these coding programming questions will be useful for the contenders to crack the test. Moreover, this article helps you to create some awareness about the TCS programming test. Furthermore, we provide you the additional test pattern and placement papers to practice.
Applying for an MNC job is not only the solution to success but also you have to practice in order to get placed in the TCS. Moreover, getting a job in a TCS is not an easy task. Every individual has to work hard to get a job in such reputed company.
TCS Coding Questions
And, our website wants to help those contenders who have a zeal to work with TCS. Practice is a mandatory criterion for attaining a job. In order to get a job, one should take it seriously and prepare a timetable to give the equal importance to all the subjects. When we come to coding, it plays a crucial role in an IT Industry. Hence, every individual should have a minimum knowledge of the basic programming languages. Thereupon, we provide important information about the TCS Coding Programming questions in order to create awareness about the interview process.
For becoming a good coder one need to be known the algorithms and the way of analyzing a problem given to them. TCS has revised Exams pattern by introducing two more sections in written exam i. In addition to this, the contenders have to practice the basic C programming questions. Before going to start your preparation you should always check current vacancies, Syllabus and Test Pattern.
So, that candidate can ace the test easily. Therefore to guide the contenders we are providing Aptitude, Reasoning and English Test Papers with solutions. With the help of these practice papers, candidates can get an idea how to perform well in the TCS Recruitment Process.
This new section added in TCS new pattern Exam, where candidates have to solve one programming question in 20 minutes, in C Programming using an inbuilt online compiler. In order to attain a job in MNC, one should be skilled in the basic C programs. So, they should be able to write the C program in any language or in any format even if the recruitment team changes the logic.
Moreover, you can now practice the previous repeated questions asked repeatedly given above.