No video

TCS Coding Questions with Answers 2020 | (Most Asked)

  Рет қаралды 364,462

Prep Insta

Prep Insta

Күн бұрын

Пікірлер: 156
@PrepInsta
@PrepInsta 3 жыл бұрын
TCS NQT Online Course - bit.ly/TCS-NQT-and-Ninja-Course
@harsh_here
@harsh_here 3 жыл бұрын
We could have simply divid N by 2, and if N is odd the Nth element will become the (N/2 +1)th element of the first series. Whereas if N is even, it is the N/2th element of the second series. Which we can easily find out as we know the r for each series. We don't need a loop at all. It's a simple if-else problem
@laxus7764
@laxus7764 3 жыл бұрын
These questions are nothing compared to what is asked in Qualcomm preliminary exam 😭😭
@shrajalkumar964
@shrajalkumar964 3 жыл бұрын
the way you explained is really good.... and so is the logic ... apart from that i just wanna ask..... in place of "if(a==1) condition" , can we go with "if(a>1) {a=a*2}" and intiate a and b equals to 1
@deepakbarala1521
@deepakbarala1521 3 жыл бұрын
I found you at right time now I am knows what to do.
@ganesh7537
@ganesh7537 3 жыл бұрын
What you will do bhai
@adityanegi6947
@adityanegi6947 3 жыл бұрын
@@ganesh7537 haha
@ImJhon-jr5tn
@ImJhon-jr5tn 4 жыл бұрын
Bro! Clearly understand Thank you so much bro!
@ramsunnihith1998
@ramsunnihith1998 5 жыл бұрын
We Have just completed with only C & Java how can we write the TCS exam for coding questions. Can You Explain me sir
@uthamkanth2505
@uthamkanth2505 4 жыл бұрын
ram sunnihith The concept is very well explained in this video infact i have my channel which has similar content.pls check, subscribe and show me your support if u like them and give me u r feedback in comment section.thank you:)
@aashishgupta9392
@aashishgupta9392 2 жыл бұрын
bro placement hua kya?
@kamathamvamsi29
@kamathamvamsi29 3 жыл бұрын
12:23 I can write in single line let me know this is correct or wrong Read n, Print("%d",(n%2)?pow(3,n/2):pow(2,n/2));
@irfanirfu1229
@irfanirfu1229 4 жыл бұрын
what type of coding questions are asked for Soti campus interview
@Subzero_101
@Subzero_101 5 жыл бұрын
Thx..love from Kakinada 😍
@PrepInsta
@PrepInsta 5 жыл бұрын
:)
@suvashreepriyadarshinibisw8017
@suvashreepriyadarshinibisw8017 2 жыл бұрын
Clearly understood sir ..the way u explaining it clears all doubts
@laxmikantbotkewar4191
@laxmikantbotkewar4191 4 жыл бұрын
can't get the a series from the code above a series always show's output 0
@nehajain819
@nehajain819 3 жыл бұрын
Thanks prep insta for easy explanation of every problem
@bhaveshrajput5081
@bhaveshrajput5081 3 жыл бұрын
Hm
@tanmoydebnath8802
@tanmoydebnath8802 5 жыл бұрын
In TCS drive if I write the program in java using scanner class will it be ok or I have to use command-line argument? I am confused please help
@uthamkanth2505
@uthamkanth2505 4 жыл бұрын
Tanmoy Debnath The concept is very well explained in this video infact i have my channel which has similar content.pls check, subscribe and show me your support if u like them and give me u r feedback in comment section.thank you:)
@jdacademy721
@jdacademy721 5 жыл бұрын
Kya baat hai sir mja aa gya aapaka. Samjhane ka ktarika...dekh k
@shivangigupta2708
@shivangigupta2708 5 жыл бұрын
thanks for providing the solutions!!
@PrepInsta
@PrepInsta 5 жыл бұрын
Thank you
@arqamhussain4981
@arqamhussain4981 4 жыл бұрын
#include #include using namespace std; int main() { int n; cin >> n; int term=0; if (n%2!= 0) term = pow(2, (int)(n/2)); term = pow(3, (int)(n / 2 - 1)); cout
@vishwasvishu1895
@vishwasvishu1895 Жыл бұрын
Thank you for your great explanation sir
@PrepInsta
@PrepInsta Жыл бұрын
He there Vishwas! 🤗 We're always here for you guys ❤️ Feel free to reach out to us over Instagram: www.prepinsta.com/instagram/ Or drop a message on bit.ly/prime-wa Or call us on 8448440710. Our mentors would be very glad to help you out with your queries and placement. Team PrepInsta is always here to help!
@ROHITSAHU-pi4fu
@ROHITSAHU-pi4fu 5 жыл бұрын
Please upload the videos of amcat and cocubes coding questions
@priyam3004
@priyam3004 3 жыл бұрын
Hi how to prepare amcat and cocubes
@akashsingh2655
@akashsingh2655 5 жыл бұрын
We need to find an output on PC during exam time or we just need to write a code somewhere???
@PrepInsta
@PrepInsta 5 жыл бұрын
They will give you an online compiler in the system which will automatically run your code against pre defined inputs. Three inputs will be show and 3 will be hidden
@abhisheks802
@abhisheks802 4 жыл бұрын
this can be an easy approach..without taking loops and all.. x = int(input("Enter position:")) y = x/2 if (y).is_integer(): y = y-1; z = 1*pow(3,y); z = int(z); else: a = int(y); z = 1*pow(2,a); z = int(z) print(z)
@TamilselvanR599
@TamilselvanR599 4 жыл бұрын
Why dont u make it constant time complexity? If N is odd: { return 2^Floor(N/2); } If N is even: { Return 3^((N/2)-1); }
@namansaxena8624
@namansaxena8624 4 жыл бұрын
I was thinking the same thing bro.
@RAHULROY-oc4ro
@RAHULROY-oc4ro 3 жыл бұрын
there's no need of floor function. by default int/int produce result as int, as example 7/2 is 3 by default.
@yasarhussain3811
@yasarhussain3811 5 жыл бұрын
Excellent😍
@PrepInsta
@PrepInsta 5 жыл бұрын
Thank you Yasar
@vnmusic5216
@vnmusic5216 3 жыл бұрын
In tcs digital should we go for scanf or command line argument fot taking input? Please answer
@sahdevkansal1575
@sahdevkansal1575 4 жыл бұрын
Sir can we compile our program during TCS CCQT exam ? In sample test they are asking to write whole program in one line and compilation option is not there .
@vinaypratap620
@vinaypratap620 4 жыл бұрын
This logic click in my mind when u are say in this series two series are mix
@m.s.1012
@m.s.1012 3 жыл бұрын
Do we allowed to import packages in python during the test?
@manishingale2853
@manishingale2853 3 жыл бұрын
Does prepinsta have offline classes in pune?
@mohammedsohail7774
@mohammedsohail7774 4 жыл бұрын
I have one query regarding % i have 7.8in ssc But in diploma i have 59.98% In btech i have 60% so i need to know that iam eligible for TCS or not? Plzzz clear my dought
@PrepInsta
@PrepInsta 4 жыл бұрын
Sohail, usually TCS asks for 60 % throughout, so if you have less than 60% in any of your academics so it could be a bummer. But don't lose hope, there will be other opportunities as well.
@kamalakasanKamal
@kamalakasanKamal 3 жыл бұрын
What is the difference between B.E computer science engineering and B.E computer science and technology
@vijayborkar2521
@vijayborkar2521 2 жыл бұрын
There is no difference both are same
@sahuaurobindo9291
@sahuaurobindo9291 5 жыл бұрын
sir i have done the coding in java but i am getting the whole series. How to get the nth term of the series
@mridulpandey9402
@mridulpandey9402 4 жыл бұрын
You will get the whole series till the position value you have inputed
@hemanthbvs6325
@hemanthbvs6325 5 жыл бұрын
I am getting it as site can't be reached now for more codes section
@PrepInsta
@PrepInsta 5 жыл бұрын
Check now, the site would be reachable now :)
@sanketnayak1662
@sanketnayak1662 2 жыл бұрын
Thank you sir 🙏
@shreejitgautam9905
@shreejitgautam9905 3 жыл бұрын
You can also use formula a^n-1 and b^n-1 inteads of for lopp
@pavanbegari9301
@pavanbegari9301 Жыл бұрын
JAVA program import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc =new Scanner(System.in); int n=sc.nextInt(); int series1=1; int series2=1; if(n%2==0) { for(int i=1;i
@PrepInsta
@PrepInsta Жыл бұрын
Hey, Join our TA Support Group on Discord, where we will help you out with all your queries: 📍prepinsta.com/discord/ If you are new to discord, please watch our tutorial here❤️: bit.ly/how-to-use-prepinsta-discord-server
@jatinsingh5503
@jatinsingh5503 5 жыл бұрын
Atulya sir you're the best teacher ever !!!!
@manojks7971
@manojks7971 4 жыл бұрын
in python we can easily solve the vowel replacing by under 5 lines so does this make any sense in the exam
@PrepInsta
@PrepInsta 4 жыл бұрын
@manojks7971
@manojks7971 4 жыл бұрын
That's power of python
@nikitasolunke8471
@nikitasolunke8471 3 жыл бұрын
Can we use append() in tcs online programming exam
@aswathikp4812
@aswathikp4812 2 жыл бұрын
Link in description is not working Y?
@FutureAITrend
@FutureAITrend 5 жыл бұрын
is command line programming needed for tcs?
@lakshminarayana7020
@lakshminarayana7020 5 жыл бұрын
Yes
@FutureAITrend
@FutureAITrend 5 жыл бұрын
@@lakshminarayana7020 no i gave the tcs mock test command line is not needed
@abhiramabhiram3013
@abhiramabhiram3013 3 жыл бұрын
Can we use python as coding in tcs Digital
@anandh1967
@anandh1967 5 жыл бұрын
#include #include #include void main() { int x,term; scanf("%d",&term); if (term%2==0) x= pow(3,term/2-1); else x= pow(2,(term-1)/2); printf("%d",x); getch(); }
@sahithivijayagiri6619
@sahithivijayagiri6619 5 жыл бұрын
Sir please explain programs based command line arguments on c
@daipayanhati2347
@daipayanhati2347 3 жыл бұрын
do they ask qestions on Dynamic programming , Graph etc
@shreeshkant8106
@shreeshkant8106 3 жыл бұрын
Sir logic bnta nhi h can i write alogorithm on copy then write in code form on computer ? I am very basics learner.
@rushabhgothi8880
@rushabhgothi8880 3 жыл бұрын
Why couldn't you just use the geometric progression formula
@omkarjoshi48
@omkarjoshi48 3 жыл бұрын
Bro as tcs stated 24 months gap is allowed i filled form for nqt and got selection mail on 25 dec. I failed 2 times in second year but i satisfy all other criteria of 60% throughout academics. During interview he asked me about my gap too. So i hope my year down will not create any problem further?
@arunp2885
@arunp2885 3 жыл бұрын
Are you selected
@prakhararya4697
@prakhararya4697 4 жыл бұрын
Good
@ayandas8757
@ayandas8757 2 жыл бұрын
is there any course for a company which hires on basis of only exams and does require to have 60% aggregate on 12th standard...
@aishwaryadevkar1487
@aishwaryadevkar1487 3 жыл бұрын
Plz gives more codes for practice
@satyanarayanprajapati9665
@satyanarayanprajapati9665 4 жыл бұрын
Thanks a lot to understand in easy way..
@-Raviponnam
@-Raviponnam 3 жыл бұрын
Thank u sir
@artandcraftideas520
@artandcraftideas520 2 жыл бұрын
Jupiter coding Test syllabus and notes about those sir please
@2012ankitkumar
@2012ankitkumar 3 жыл бұрын
can be solved in o(1) time complexity
@ManishSharma-ub9nk
@ManishSharma-ub9nk 3 жыл бұрын
Yes we can, I don't know y he didn't explain
@_BE-A_SaurabhNehe
@_BE-A_SaurabhNehe 3 жыл бұрын
Yes
@applecutie7645
@applecutie7645 3 жыл бұрын
Series starting from 0 wt should I do now
@shubhamtechnical496
@shubhamtechnical496 4 жыл бұрын
Sir, in which programming language the coding would easier Java or Python.
@vm2113
@vm2113 4 жыл бұрын
Python
@akshay6027
@akshay6027 3 жыл бұрын
Python
@abhiramabhiram3013
@abhiramabhiram3013 3 жыл бұрын
But most of them said don't use python as coding it causes compilation prbms. Is it true frds??
@swadhin5562
@swadhin5562 5 жыл бұрын
where do i get these type of question for placement preparation
@pragyapandey8531
@pragyapandey8531 4 жыл бұрын
Hackerrank
@swadhin5562
@swadhin5562 4 жыл бұрын
@@pragyapandey8531 thank you for replying
@princeshukla1025
@princeshukla1025 5 жыл бұрын
which version of python we can use? python 3 or python 2.7
@vasundharachegudi6499
@vasundharachegudi6499 5 жыл бұрын
python 3 is best
@rushikamehta41
@rushikamehta41 3 жыл бұрын
Make a video in sceanrio coding questions
@mayurnimbarte5987
@mayurnimbarte5987 3 жыл бұрын
Time complexity kitni horni bhai dekha kya if n= 200 rha to rha to kitna time complexity badenga
@bhaveshdalvi585
@bhaveshdalvi585 3 жыл бұрын
What to do if there is console error?
@akhilkumarsingh5041
@akhilkumarsingh5041 4 жыл бұрын
Qs-1 draw pattern 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 public class Main { public static void main(String[] args) { int k=1; for(int i=1;i
@bhaveshdalvi585
@bhaveshdalvi585 3 жыл бұрын
How to take input?
@088_abhisheksrivastav6
@088_abhisheksrivastav6 3 жыл бұрын
Karna kya hai koi ye bataye N th value nikalna hai ya series create karni hai
@justthoughts6534
@justthoughts6534 4 жыл бұрын
Can we code in python?
@PrepInsta
@PrepInsta 4 жыл бұрын
Yes @aakash you can code in python surely !
@abhiramabhiram3013
@abhiramabhiram3013 3 жыл бұрын
But most of people saaid not to use python as coding in tcs Digital as it causes compilation prbms??? Is it true??
@aayusingla
@aayusingla 5 жыл бұрын
In TCS exam how to get a number ... plz help
@sudharsanveeranan1321
@sudharsanveeranan1321 5 жыл бұрын
can't join whatsapp group,it says group's full plzz help
@PrepInsta
@PrepInsta 5 жыл бұрын
We have changed the group link now. Please click again.
@iamthegauravsharma1705
@iamthegauravsharma1705 4 жыл бұрын
JAIHIND SIR KESE HO
@debabratatah4887
@debabratatah4887 5 жыл бұрын
sir I can not printing the whole series...to print this what I have to do?
@PrepInsta
@PrepInsta 5 жыл бұрын
check the solution here - prepinsta.com/tcs-coding-questions/
@divyajain2733
@divyajain2733 3 жыл бұрын
Please upload the program in java
@Manikanta-zu9tm
@Manikanta-zu9tm 4 жыл бұрын
Thank you so much sir love from RJY
@avanias8000
@avanias8000 3 жыл бұрын
Which language is this
@allalone3034
@allalone3034 5 ай бұрын
tuzya aaicha dana
@prashantmeshram8184
@prashantmeshram8184 Жыл бұрын
How to print whole series
@PrepInsta
@PrepInsta Жыл бұрын
Hey, prepinsta.com/discord Kindly connect with us for technical queries. Our mentor would love to guide you Feel free to reach out to us at 8448440710 if you have any query
@Akshay-jl7os
@Akshay-jl7os 5 жыл бұрын
Sir can I update my tcs nqt form after 24 July ??
@shalikasinha9025
@shalikasinha9025 5 жыл бұрын
no
@abhishekgupta9852
@abhishekgupta9852 5 жыл бұрын
Sir i saw a 2019 que from ur link ..i have a doubt that in c code why u create function that que is also done by without macking function
@abhishekgupta9852
@abhishekgupta9852 5 жыл бұрын
Is it necessary to create function
@PrepInsta
@PrepInsta 5 жыл бұрын
@@abhishekgupta9852 Hey, to make the program easy to understand I created a function but you can follow your own version of approach if you'd like :)
@sandeepsinghrana8232
@sandeepsinghrana8232 4 жыл бұрын
Thankyou Prep Insta.
@simon-yi6jv
@simon-yi6jv 3 жыл бұрын
Bro I am completing my 2nd year in BTech am I eligible to apply for tcs. Please respond 🙂
@saniya_thousif
@saniya_thousif 4 жыл бұрын
Hello sir, I want to join your courses for the preparation of placement, how much does I need to pay
@vaibhavpatel1695
@vaibhavpatel1695 4 жыл бұрын
#include #include using namespace std; int main () { int n; cout > n; if (n % 2 == 0) { cout
@aashutoshmurthy
@aashutoshmurthy 3 жыл бұрын
My Python Code for the same problem : for n in range(1, 20): if n % 2: print(2 ** (n//2), end=" ") else: print(3 ** (n//2 - 1), end=" ")
@mounisharon3878
@mounisharon3878 3 жыл бұрын
Can you put the code for python in description box, pls.
@cruzeredge2663
@cruzeredge2663 3 жыл бұрын
num = int(input("Enter num ")) array = [] for i in range(1,num+1): if(i % 2 != 0): if(i == 1): a = 1 array.append(a) else: a = a * 2 array.append(a) else: if(i == 2): b = 1 array.append(b) else: b = b * 3 array.append(b) print(array[-1])
@abhiramabhiram3013
@abhiramabhiram3013 3 жыл бұрын
Can we use python as coding in digital hiring , but I heared most of them suggested not to use python as it causes compilation prbms , is it true or , I learned only python so pls reaply me frds
@CptSteelballs
@CptSteelballs 4 жыл бұрын
don't call yourself a coder if you can't solve even these below average questions on your own.
@PrepInsta
@PrepInsta 4 жыл бұрын
Pankaj, why would the students call themselves coder When they already have a name, right Pankaj !?? :) And keep on practising students, it's never too late to start !!
@CptSteelballs
@CptSteelballs 4 жыл бұрын
@@PrepInsta what's your @, i enjoyed your twitter humor. ; )
@rahulsoni6807
@rahulsoni6807 5 жыл бұрын
Plzzz many companies question tell
@wolverine87833
@wolverine87833 5 жыл бұрын
Now, I would really appreciate if you provide me the solution for program @ 2:05
@PrepInsta
@PrepInsta 5 жыл бұрын
You can find it here on this page - prepinsta.com/tcs-coding-questions/
@wolverine87833
@wolverine87833 5 жыл бұрын
@@PrepInsta Can you provide me the link directly to that solution. It would really help me a lot. Thanks.
@Gamescatchtricks
@Gamescatchtricks 4 жыл бұрын
Bt he question to nhi aaye the
@Vikaskumar-cw3lx
@Vikaskumar-cw3lx 5 жыл бұрын
Q:-a man go to the market and buy some product and he find that price of 3 product is bigger than rest of 7 product. For ex- if they shop for 10 items they will give the input as 10 0.2 0.4 0.7 1.31 1.79 1.87 2.13 2.45 2.61 3.11 The output should be printed I single line as 4 Explanation- the 4 costliest items together costed more than all the other items combined. Please send the solution of it in c.
@buffoon3119
@buffoon3119 5 жыл бұрын
import java.util.Scanner; public class Main { public static void main(String[] args) { int n; Scanner sc = new Scanner (System.in); n = sc.nextInt(); double[] item = new double[n]; double sum = 0,ex=0; for(int i =0;i=0;j--) { ex=ex+item[j]; sum = sum-item[j]; count++; if(ex>sum) break; } System.out.println(count); } }
@buffoon3119
@buffoon3119 5 жыл бұрын
correct me if I'm wrong
@RashmiSingh-gn8eh
@RashmiSingh-gn8eh 3 жыл бұрын
👍
@anamsaifi3392
@anamsaifi3392 3 жыл бұрын
Heyy... Please tell.. Can a BCA graduate student give tcs exam.... Anyone with the reply.. Please it's an urgency
@omkarshinde7355
@omkarshinde7355 3 жыл бұрын
yes.. you can give the tcs exam..my friend is also BCA graduate and he selected in TCS .
@anamsaifi3392
@anamsaifi3392 3 жыл бұрын
@@omkarshinde7355 thanks for the help
@mohammadadil4361
@mohammadadil4361 4 жыл бұрын
CORRECT CODE FOR THE SERIES QUESTION IN JAVA LANGUAGE DOWN: import java.io.*; import java.util.*; import java.lang.*; class tcs4 { public static void main(String args[]) { Scanner sc=new Scanner(System.in); System.out.println("Input the nth term"); int n=sc.nextInt();n=n-2; System.out.print("1 1 ");int t=1;int cc=0;int sum=1; while(t
@souravpramanik1547
@souravpramanik1547 2 жыл бұрын
if n=1 then what will be the output?
@hemanthbvs6325
@hemanthbvs6325 5 жыл бұрын
I am getting it as site can't be reached now
@PrepInsta
@PrepInsta 5 жыл бұрын
Hey, We think that the issue must have been fixed please check !
@RAHULROY-oc4ro
@RAHULROY-oc4ro 3 жыл бұрын
(n%2 == 0) ? cout
@PrepInsta
@PrepInsta 5 жыл бұрын
if you have any questions please ask us in the comment section below -
@anshuprakash5022
@anshuprakash5022 5 жыл бұрын
sir please help me,cognizant campus in my college on 29th of july,first round is debugging test,please help
@PrepInsta
@PrepInsta 5 жыл бұрын
@@anshuprakash5022 Why don't you join our Cognizant Online Course ??
@anshuprakash5022
@anshuprakash5022 5 жыл бұрын
@@PrepInsta sir I dont think I have much time
@gulshankumar-ls5pk
@gulshankumar-ls5pk 5 жыл бұрын
is command line programming needed for tcs?
@tanmoydebnath8802
@tanmoydebnath8802 5 жыл бұрын
In TCS drive if I write the program in java using scanner class will it be ok or I have to use command-line argument? I am confused please help
@aishwaryacj5683
@aishwaryacj5683 2 ай бұрын
import java.util.*; public class findingTerm{ public static void main(String[] args) { int n; Scanner sc = new Scanner(System.in); System.out.println("Enter The Nth term you want to find"); n = sc.nextInt(); double ans=0; if(n%2 != 0) { int power = (n/2)-1+1; ans= Math.pow(2,power); System.out.println(ans); } else{ int power = (n/2)-1; ans=Math.pow(3,power); System.out.println(ans); } } } Simple code that do not use for loop , but it involves so much of maths when you observe the numbers there you can see 1st number is 2^0 next 3^0 .. wa can observe the pattren 2^0,3^0 ,2^1 ,3^1 ,2^2,3^2 .. and so on
@originalgangster7853
@originalgangster7853 5 жыл бұрын
Good
(Most Asked) TCS NQT Coding Questions with Answers (TCS NQT 2020)
22:01
Yum 😋 cotton candy 🍭
00:18
Nadir Show
Рет қаралды 7 МЛН
Happy birthday to you by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 11 МЛН
SPONGEBOB POWER-UPS IN BRAWL STARS!!!
08:35
Brawl Stars
Рет қаралды 17 МЛН
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 52 МЛН
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 643 М.
TCS NQT Coding Questions with Answers (Most Important)
44:19
Prep Insta
Рет қаралды 60 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 298 М.
Solve any Star Pattern program in Python
18:44
Simply Coding
Рет қаралды 926 М.
Life at TheMathCompany
4:29
MathCo
Рет қаралды 23 М.
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 829 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 960 М.
Yum 😋 cotton candy 🍭
00:18
Nadir Show
Рет қаралды 7 МЛН