CODING SOLUTIONS | IBM | AMAZON CODING SOLUTIONS
Kanalga Telegram’da o‘tish
8 815
Obunachilar
Ma'lumot yo'q24 soatlar
-207 kun
-11730 kun
Postlar arxiv
awk 'BEGIN{FS=";"; IGNORECASE=1; count=0;}
{
if($4>10000){
count+=$3;
}
}
END{
print "Total count: "count;}
'
Unix java
✅Telegram : https://t.me/coding_solutions_all
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String args[] ) throws Exception {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
Student[] s = new Student[n];
for(int i = 0; i < n; i++) {
int id = sc.nextInt();
sc.nextLine();
String name = sc.nextLine();
double marks = sc.nextDouble();
int age = sc.nextInt();
s[i] = new Student(id, name, marks, age);
}
double m = sc.nextDouble();
Student s1 = searchStudentByAge(s, m);
if(s1 == null) {
System.out.println("No Student found with mentioned age.");
} else {
System.out.println("id-"+s1.getId());
System.out.println("name-"+s1.getName());
System.out.println("marks-"+s1.getMarks());
System.out.println("age-"+s1.getAge());
}
Student s2 = findStudentWithMinimumMarks(s);
if(s2 == null) {
System.out.println("No Student found with mentioned age.");
} else {
System.out.println("id-"+s2.getId());
System.out.println("name-"+s2.getName());
System.out.println("marks-"+s2.getMarks());
System.out.println("age-"+s2.getAge());
}
}
public static Student searchStudentByAge(Student[] s,double marks){
int l = s.length;
for(int i = 0; i < l; i++) {
if(marks == s[i].getAge()) return s[i];
}
return null;
}
public static Student findStudentWithMinimumMarks(Student[] s){
double min = s[0].getMarks();
Student s1 = null;
for(int i = 0; i < s.length; i++) {
if(s[i].getMarks() <= min) {
min = s[i].getMarks();
s1 = s[i];
}
}
return s1;
}
}
class Student {
int id;
String name;
double marks;
int age;
Student(int id, String name, double marks, int age) {
this.id = id;
this.name = name;
this.marks = marks;
this.age = age;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String Name) {
this.name = name;
}
public double getMarks() {
return marks;
}
public void setMarks(double marks) {
this.marks = marks;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
}
JAVA CODE
✅Telegram : https://t.me/coding_solutions_all
☝Use doubles underscores before def and after init
class Toy:
def init(self,id,name,quantity):
self.id=id
self.name=name
self.quantity=quantity
class ToyStore:
def init(self,toyStoreName,toyList):
self.toyStorename=toyStoreName
self.toyList=toyList
def findToyWithMinimumId(self):
result1=min(self.toyList,key=lambda x:x.id)
return result1
def sortToyByQuantity(self):
result2=sorted(self.toyList,key=lambda x:x.quantity)
return result2
toyList=[]
count=int(input())
for i in range (count):
id=int(input())
name=input()
quantity=float(input())
p=Toy(id,name,quantity)
toyList.append(p)
f=ToyStore("ABCD",toyList)
r1=f.findToyWithMinimumId()
if(r1==None):
print("No Data Found")
else:
print(r1.id)
print(r1.name)
print(r1.quantity)
r2=f.sortToyByQuantity()
if(r1==None):
print("No Data Found")
else:
for i in r2:
print(i.quantity)
Python code
✅Telegram : https://t.me/coding_solutions_all
Repost from TCS NQT January | TCS HACKQUEST
Accept this warning during copy paste of code. No issue will happen
Repost from TCS NQT January | TCS HACKQUEST
Instructions for PRA
Install telegram in laptop and pin it to taskbar for copy pasting the codes. Taskbar will be visible during exam. So you can open telegram from bottom and copy paste codes during code section.
Start PRA exam 13 minutes late that is at 9:13 am.
Do not share or forward my codes. Telegram has special feature to know this . If found i will block you immediately
You need not to write the code unless told else you will be responsible for your failure and I won't help in second attempt ,so just copy paste it.
Accept the warning if you get any during copy paste of codes. No issues will happen
Only mark the mcqs answers given by our team in the group. Don't mark other groups answer. If you fail , we won't be responsible
🤡Everyone know to do copy paste right code??
Just let me know your reaction with emojis
✅Telegram : https://t.me/coding_solutions_all
🤡SQB
start at last 5 mins left
I means end time before 5mins start
✅Telegram : https://t.me/coding_solutions_all
Almost all correct✅
Don't submit till last 5 mins left... If any chances means i will say
JAVA pra 1
✅Telegram : https://t.me/coding_solutions_all
Almost all correct✅
Don't submit till last 5 mins left... If any chances means i will say
TCS PRA 1 PYTHONMCQ
PYTHON MCQ 🤡
1.b
@coding_solutions_all
2.c
@coding_solutions_all
3.c
@coding_solutions_all
4.true
@coding_solutions_all
5.true
@coding_solutions_all
6.false
@coding_solutions_all
7.c
@coding_solutions_all
8.c
@coding_solutions_all
9.b
@coding_solutions_all
10.a
@coding_solutions_all
11.a
@coding_solutions_all
12.a
@coding_solutions_all
13.c
@coding_solutions_all
14.a
@coding_solutions_all
15.d
@coding_solutions_all
16.b
@coding_solutions_all
17.c string
@coding_solutions_all
18.a
@coding_solutions_all
19.b
@coding_solutions_all
20.b
@coding_solutions_all
21.c
@coding_solutions_all
22.d
@coding_solutions_all
23.
@coding_solutions_all
24.c
@coding_solutions_all
25.b
@coding_solutions_all
26.b
@coding_solutions_all
27.true
@coding_solutions_all
28.d
@coding_solutions_all
29.c
@coding_solutions_all
30.b
@coding_solutions_all
✅Telegram : Join👇
https://t.me/coding_solutions_all
https://t.me/coding_solutions_all
🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡
