Sir array of characters ka input lena bhi btao. Whan exam main multiple inputs dete hain woh toh size tk ni pata hota hai kitne characters honge iska. Aur aise initialize krke dikhane se adhi hi problem smjh aegi.
If you haven't received your admit card yet, watch this video for details on admit card generation & exam date: th-cam.com/video/WyDaolaDGjU/w-d-xo.htmlsi=tj0tRqPXgS9fHXE1
Jo 2 Coding Questions ke liye 90 Min milte hai ,usme humlog kabhi bhi unn 2 Questions ke beech switch kar sakte hai ki ?? Har 1 Coding Question ka time slot fixed hota hai aur agar fixed hota hai to 1st quesn ko kitna time milta hai ??
third question in python :--- def function(n): value = str(n) value = value[::-1] if int(value) == n: print("palindrome") else: print("not a palindrome") fourth question in python :---- def function(n): sum = 0 value = str(n) for i in value: sum += int(i) value2 = str(sum) value2 = value2[::-1] if int(value2) ==sum : print("palindrome") else: print("not a palindrome") fifth question in python :--- def function(n , k, lss): #let k be the kth element in the array a = lss[k-1] b = lss[-k] lss[k-1] = b lss[-k] = a return lss # here lss is a list
Sum of Digit is Pallindrome or not EASY C++ SOLUTION class Solution { public: int isDigitSumPalindrome(int n) { // code here string temp=to_string(n); int sum=0; for(int i=0;i
If you haven't received your admit card yet, watch this video for details on admit card generation & exam date: th-cam.com/video/WyDaolaDGjU/w-d-xo.htmlsi=tj0tRqPXgS9fHXE1
If you haven't received your admit card, no need to panic, mostly if you will receive it by today or tomorrow if you have exam on 29th or 30th April. There is also a possibility that exams will be scheduled for May since many students have applied this time, but dates are not released yet. So, please wait for it, keep checking your inbox & spam folders daily. All the best👍
// first question Armstrong Number in java import java.util.*; class HelloWorld { public static void main(String[] args) { Scanner sc =new Scanner(System.in); System.out.println("Enter the Number "); int n =sc.nextInt(); int original = n; int rev =0; while(n > 0){ int digit = n % 10; rev = (digit * digit * digit) +rev ; n =n /10; } if(original == rev){ System.out.println("This is armsStrong Number " + original); }else{ System.out.println("This is not armsStrong Number " + original); } } } Second question reverse the number in java code import java.util.*; class HelloWorld { public static void main(String[] args) { Scanner sc =new Scanner(System.in); System.out.println("Enter the Number "); int n =sc.nextInt(); int original = n; int rev =0; while(n > 0){ int digit = n % 10; rev = (rev * 10)+digit; n =n /10; } System.out.println("Reversed the Number "+ rev); } } // Third Second palindrome import java.util.*; class HelloWorld { public static void main(String[] args) { Scanner sc =new Scanner(System.in); System.out.println("Enter the Number "); int n =sc.nextInt(); int original = n; int rev =0; while(n > 0){ int digit = n % 10; rev = (rev * 10)+digit; n =n /10; } if(original == rev){ System.out.println("This is palindrome Number " + original); }else{ System.out.println("This is not palindrome Number " + original); } } }
To Check armstrong number Easy c++ code class Solution { public: string armstrongNumber(int n){ // code here string temp=to_string(n); int sum=0; for(int i=0;i
5 Question answer
m= input("Enter the array list")
arr=[]
for i in m.split():
arr.append(int(i))
w= int(input("Enter the to index to swap"))
if 0
second question in python code :---
def function(n):
for i in range(100):
if n%10 == 0:
n = n//10
else:
break
value= str(n)
print(value[::-1])
sixth question in python :---
def function(n):
value = n.replace(" ","")
return value
first question in python code ----
def function(n):
sum = 0
for i in str(n):
i = int(i)
value = i*i*i
sum = sum+value
print(sum)
if sum == n:
return "yes"
else:
return "no"
awesome, please tel me how do i improve my python!
@@mhsenpai3733 this is not dynamic man
What class name should I take while coding for TCS NQT in Java?
Sir g accenture communication assessment per video daliye plz or unka speech us ya UK hai ye bhi bataiye
Sir array of characters ka input lena bhi btao. Whan exam main multiple inputs dete hain woh toh size tk ni pata hota hai kitne characters honge iska. Aur aise initialize krke dikhane se adhi hi problem smjh aegi.
sir apse DSA dikne mein bahut maza ayega...Could you please start new journey of it.
Sir ab tak admit card nhi aaya, i applied on 5th april
Mera v nhi aaya
Same here
Mera aa gaya 29 april ko he paper
@@harshxo21 kb aaya ??
If you haven't received your admit card yet, watch this video for details on admit card generation & exam date: th-cam.com/video/WyDaolaDGjU/w-d-xo.htmlsi=tj0tRqPXgS9fHXE1
Jo 2 Coding Questions ke liye 90 Min milte hai ,usme humlog kabhi bhi unn 2 Questions ke beech switch kar sakte hai ki ?? Har 1 Coding Question ka time slot fixed hota hai aur agar fixed hota hai to 1st quesn ko kitna time milta hai ??
third question in python :---
def function(n):
value = str(n)
value = value[::-1]
if int(value) == n:
print("palindrome")
else:
print("not a palindrome")
fourth question in python :----
def function(n):
sum = 0
value = str(n)
for i in value:
sum += int(i)
value2 = str(sum)
value2 = value2[::-1]
if int(value2) ==sum :
print("palindrome")
else:
print("not a palindrome")
fifth question in python :---
def function(n , k, lss):
#let k be the kth element in the array
a = lss[k-1]
b = lss[-k]
lss[k-1] = b
lss[-k] = a
return lss
# here lss is a list
what if you don't know the given number total digit what if the digit is 5 number
Isn't these question quiet easy for tcs nqt exam ?
Sum of Digit is Pallindrome or not
EASY C++ SOLUTION
class Solution {
public:
int isDigitSumPalindrome(int n) {
// code here
string temp=to_string(n);
int sum=0;
for(int i=0;i
//chale if a number is armstrong or not
#include
using namespace std;
int pow(int a, int b){
if(b
Sir kya tcs nqt ka paper hindi medium me hota h ya fir English me hi sab aata h please confirm i have doubt in this
Only English
Tcs NQT april cycle waale ka result kb tk declared ho jayega sir
sir if u did this same in java or python then more people will see upto end and it will increse traffic to ur channel...........
number=200
reverse=str(n)[::-1].lstrip('0')
print(reverse)
thanks me latter
sir Trading Chalu hai ky
par aaj ka 26th april ka tcs analysis mai question paper mai first question bhi easy nahi tha thoda tough aya tha
Bhai aapna contact no de sakte ho bahut sare doubt hai tumse puchhna hai Mera exam 6 may ko hai plzzz
@@motivationalwithvikky1100 same
I got 88 %in cognitive, 80% in advance quantitative ability and 58 % in programming. Can i get job in it sector?
Can you please tell where this score is visible ?
@@sahilsehgal2859 I have got e-mail from TCS nqt
@@sahilsehgal2859 can you tell me is this enough to get job in mnc
@@shreyashi9024 your advance score is good and programming is more than 50 % so tehre are chances to get a job call.
@@sahilsehgal2859 sir I am 2019 pass out...still can I get job call.??
sir java mai code nhi hai ky
agra kisi ke coding section me tcs me 7se 4 case pass karliye toh kya Mark's milenge
Yes partial marking is there for coding section.
Itna easy question TCS ab nhi puchta
first question easy he hoga dear
@@KGJobUpdates par aaj ka 26th april ka tcs analysis mai question paper mai first question bhi easy nahi tha thoda tough aya tha
Sir admit card nhi aaya mera kya karu
Mera v nhi aaya
If you haven't received your admit card yet, watch this video for details on admit card generation & exam date: th-cam.com/video/WyDaolaDGjU/w-d-xo.htmlsi=tj0tRqPXgS9fHXE1
yash bhaiya i am from banglore
admit card nahi aya abhi
sabkoo aa chuka hai
😢😢😢😢😢
If you haven't received your admit card, no need to panic, mostly if you will receive it by today or tomorrow if you have exam on 29th or 30th April. There is also a possibility that exams will be scheduled for May since many students have applied this time, but dates are not released yet. So, please wait for it, keep checking your inbox & spam folders daily. All the best👍
// first question Armstrong Number in java
import java.util.*;
class HelloWorld {
public static void main(String[] args) {
Scanner sc =new Scanner(System.in);
System.out.println("Enter the Number ");
int n =sc.nextInt();
int original = n;
int rev =0;
while(n > 0){
int digit = n % 10;
rev = (digit * digit * digit) +rev ;
n =n /10;
}
if(original == rev){
System.out.println("This is armsStrong Number " + original);
}else{
System.out.println("This is not armsStrong Number " + original);
}
}
}
Second question reverse the number in java code
import java.util.*;
class HelloWorld {
public static void main(String[] args) {
Scanner sc =new Scanner(System.in);
System.out.println("Enter the Number ");
int n =sc.nextInt();
int original = n;
int rev =0;
while(n > 0){
int digit = n % 10;
rev = (rev * 10)+digit;
n =n /10;
}
System.out.println("Reversed the Number "+ rev);
}
}
// Third Second palindrome
import java.util.*;
class HelloWorld {
public static void main(String[] args) {
Scanner sc =new Scanner(System.in);
System.out.println("Enter the Number ");
int n =sc.nextInt();
int original = n;
int rev =0;
while(n > 0){
int digit = n % 10;
rev = (rev * 10)+digit;
n =n /10;
}
if(original == rev){
System.out.println("This is palindrome Number " + original);
}else{
System.out.println("This is not palindrome Number " + original);
}
}
}
To Check armstrong number
Easy c++ code
class Solution {
public:
string armstrongNumber(int n){
// code here
string temp=to_string(n);
int sum=0;
for(int i=0;i
Sir pdf bano of this video
first read armstrong number defination
1st one is
wrong solution
🤗🤗sr
dp karo