You are on page 1of 16
31723, 1025 4m KE Result & Analysis Student: Saravana Pand Email id: saravanapandi: Test: PREP_C_PT_1D An Course: 2023 C Progra IP Address: 103.196.28.130 Tab switches: 0 OSused: Windows _ Browser used: Chrome Test Duration: 00:01:28 Test Start Time: Mar 7, 2023 | 03:53 PM Test Submit Time: Mar 7, 2023 | 03:55 PM Overall score McQ Rank: NA Rank: NA [] Tepper score: 105.00,/105 [] Tepper score: 5:00/5 7105 Average score: 17.96 / 105 4s Average score: 1.90/5 Least score: 0.00 / 105 Least score: 0.00/5 Coding Rank: NA {] Tepper score: 100.00 /100 7100 Average score: 16.06 / 100 Least score: 0.00 / 100 Overall Question Status McQ - Question Status Total Questions: 15 Total Questions: 5 Questions Attempted: 0 Questions Attempted: 0 oO Questions Correct: 0 Questions Correct: 0 . Question Wrong: 0 : Question Wrong: 0 Oo Partially Correct: 0 “ Partially Correct: 0 Question Not Viewed: 11 Question Not Viewed: 4 Questions Skipped: 4 Questions Skipped: 1 Coding - Question Status htpssiplacement kongu edu/rosuttostl¢=U2FsdGVix t9w8Sqrw loqScDHkaCLFSB4CzzZUgaZTLHYRSASMgxAnMdRYCXVSL 16 31723, 1025 4m KE Total Questions: 10 Questions Attempted: 0 o Questions Correct: 0 Question Wrong: 0 Partially Correct: 0 Question Not Viewed: 7 Questions Skipped: 3 Topic wise Analysis McQ Y Question No: 1 Single File Programming Question ort Error Write a program to get an array with N integer elements, and reverse all elements of given array using program. Input format Number of array of elements Array elements in second line separated by space Output format Reversed array elements Sample testcases Input 1 Output 1 5 10 30 20 10 10 10 10 28 30 10 Code Size : 1024 kb ci) Vv @ 1 // You are using GCC 2 hitpssiplacement kongu edu/rosuttostl¢=U2FsdGVix 19w8Sqrw loqScDHkaCLFSB4CzzZUgaZTLHYRSASMgxAnMdRYCXVSL 216 31723, 1025 4m KE Status: Skipped Mark obtained: 0/10 Hints used: 0 Times compiled: 0 Times submitted: 0 Level: Easy Question type: Single File Programming Subject: MCQ Subject: C Programming Subject: Arrays Show testcase scores Show solution Question No: 2 Single File Programming Question Rajesh wants to add elements of two arrays and display the merged array. Help Rajesh by writing a program to take input for two arrays and add both array elements and display the merged array. Input format Number of elements in the first array(N) N number of elements in second-line separated by space Number of elements in the second array(M) M number of elements in second-line separated by space Output format Added and Megred array elements in first line (space separated) Sample testcases hitpssiplacement kongu edu/rosuttostl¢=U2FsdGVix 19w8Sqrw loqScDHkaCLFSB4CzzZUgaZTLHYRSASMgxAnMdRYCXVSL 36 31723, 1025 4m KE Input 1 Output 1 5 458 8 11 44 890 257 44 990 3 45634 Code Size : 1024 kb cin’ © 1 // You are using GCC 2 Recommended Learning Content: Status: Not Viewed Mark obtained: 0/10 Hints used: 0 Times compiled: 0 Times submitted: 0 Level: Easy Question type: Single File Programming Subject: Programming Subject: C Programming Subject: Arrays Show testcase scores || Show solution Question No: 3 Single File Programming Question hitpssiplacement kongu edu/rosuttostl¢=U2FsdGVix 19w8Sqrw loqScDHkaCLFSB4CzzZUgaZTLHYRSASMgxAnMdRYCXVSL ane 31723, 1025 4m KE Write a program to create an array of numbers upto given number (N) that do not appear in the Fibonacci series. [Fibonacci series is formed by sum of previous two numbers:011235..] Input format An integer Output format Non Fibonacci numbers upto given number Sample testcases Input 1 Output 1 20 4679 1@ 11 12 14 15 16 17 18 19 20 Code Size : 1024 kb ci) Vv & 1 // You are using GCC 2 Status: Not Viewed Mark obtained: 0/10 Hints used: 0 Times compiled: 0 hitpssiplacement kongu edu/rosuttestl¢=U2F sd Vix 19wSqrw loqSBcDHkaLFSB4CzzZUgaZTLHYRsASMgxAnMdRYCXVSL 5116 31723, 1025 4m KE Times submitted: 0 Level: Medium Question type: Single File Programming Subject: MCQ Subject: C Programming Subject: Arrays Show testease scores __| Show solution Question No: 4 Single File Programming Question Report Error Write a program to find out the repeated element in an unsorted Array. Size of the array is N. Input format The first line of input contains number of elements in an array(N) The second line of input contains N space separated array elements. Output format Output contains duplicate numbers present in the array. Sample testcases Input 1 Output 1 8 42198481 418 Code Size : 1024 kb cn vy @B 1 // You are using 6cc 2 hitpssiplacement kongu edu/rosuttostl¢=U2FsdGVix 19w8Sqrw loqScDHkaCLFSB4CzzZUgaZTLHYRSASMgxAnMdRYCXVSL 66 31723, 1025 4m KE Recommended Learning Content: Status: Not Viewed Mark obtained: 0/10 Hints used: 0 Times compiled: 0 Times submitted: 0 Level: Easy Question type: Single File Programming Subject: Programming Subject: C Programming Subject: Arrays Show testcase scores || Show solution Question No: 5 Single File Programming Question Given an array A consist of N number of elements. if the sum of the element is "even" print the sum of the element.If the sum of the element is "odd" print the product of the element. Input format The first line of input contains the number of elements N The second line of input represents the elements Ay, Ag, Ag...-- Ay Output format Print the desired result Sample testcases Input 1 Output 1 s 1 12344 Input 2 Output 2 4 52000 18 20 525 Code Size : 1024 kb ci) vy @ 1 // You are using GCC 2 hitpssiplacement kongu edu/rosuttostl¢=U2FsdGVix 19w8Sqrw loqScDHkaCLFSB4CzzZUgaZTLHYRSASMgxAnMdRYCXVSL m6 31723, 1025 4m KE Recommended Learning Content: Status: Not Viewed Mark obtained: 0/10 Hints used: 0 Times compiled: 0 Times submitted: 0 Level: Medium Question type: Single File Programming Subject: Programming Subject: C Programming Subject: Arrays Show testcase scores | | Show solution Question No: 6 Single File Programming Question Report Error Ina gymnastics or diving competition, each contestant's score is calculated by dropping the lowest and highest scores and then adding the remaining scores. Write a program that allows the user to enter eight judges scores and then outputs the point received by the contestant. A judge awards point between 1 and 10, with 1 being the lowest and 10 being the highest. Input format Input consists of 8 scores separated by a space, Output format The first line of the output consists of the lowest score. The second line of the output consists of the highest score. hitpssiplacement kongu edu/rosuttostl¢=U2FsdGVix 19w8Sqrw loqScDHkaCLFSB4CzzZUgaZTLHYRSASMgxAnMdRYCXVSL ane 31723, 1025 4m KE The third line of the output consists of the total dropping the lowest and highest scores. The fourth line of the output prints the average. Code constraints Round off the output to two decimal places. Sample testcases Input 1 Output 1 9.1 9.0 8.9 8.8 9.4 7.9 8.6 9.8 Lowest score : 7.99 Highest score : 9.80 Total point : 53.80 Average : 8.97 Code Size : 1024 kb cu) Vv @ & 1 // You are using GCC 2 Recommended Learning Content: hitpsiplacement kongu edu/rosulttestl¢=U2F sd Vx 19wSqrw loqSBcDHkaELFSB4QzzZUgaZTLHYRsArSMgxAnMdRYCXVSL 96 31723, 1025 4M KE Status: Not Viewed Mark obtained: 0/10 Hints used: 0 Times compiled: 0 Times submitted: 0 Level: Medium Question type: Single File Programming Subject: Programming Subject: C Programming Subject: Arrays Show testcase scores || Show solution Question No: 7 Single File Programming Question rt Error Manoj lives in a snowy country like Canada. He records the rainfall each month and wants to identify the rate of rainfall for that particular year. Store the rainfall of each of the 12 months in an array. Calculate the sum, average and the month with low and high rainfall. Write a program for the same. Input format Input consists of the list of 12 integers that represents the value of rainfall each month Output format The first line of the output consists of the sum. The second line has an integer that represents the average rainfall The third line prints the month with lowest rainfall. The fourth line of the output prints the month with highest rainfall. Sample testcases Input 1 Output 1 98542314613 18 17 27 Total rainfall : 123 Average rainfall : 10 Lowest rainfall month : 7 Highest rainfall month : 12 Input 2 Output 2 98 -5423116 13 18.1727 Invalid input Code Size : 1024 kb ci) Vv & 1 // You are using 6cc 2 hitpssiplacement kongu edu/rosuttostl¢=U2FsdGVix 19w8Sqrw loqScDHkaCLFSB4CzzZUgaZTLHYRSASMgxAnMdRYCXVSL 1016 31723, 1025 4m KE Recommended Learning Content: Status: Not Viewed Mark obtained: 0/10 Hints used: 0 Times compiled: 0 Times submitted: 0 Level: Medium Question type: Single File Programming Subject: Programming Subject: C Programming Subject: Arrays Show testcase scores Show solution Question No: 8 Single File Programming Question Report Error Mithran wants to play a number game with his friends. He will give a set of numbers and select one number from it. His friends have to say the number of elements greater than and smaller than that particular element and find how many elements exactly divides the selected element. Write a program to get integer inputs in an array and select an element from the input and count the Number of elements which are greater than the selected element Number of elements which are lesser than the selected element Number of elements that exactly divides the selected element Input format The first line consists of N hitpssiplacement kongu edu/rosuttostl¢=U2FsdGVix 19w8Sqrw loqScDHkaCLFSB4CzzZUgaZTLHYRSASMgxAnMdRYCXVSL nv6 31723, 1025 4m Kec. The second line of the Input consists of the set of elements separated by a space. The third line of the input consists of the selected input. Output format The first line of the output consists of the number of elements greater than the particular element. The second line consists of the number of elements lesser than the particular element. The third line of the output consists of the number of elements that exactly divides the selected element. Code constraints Don't include the selected number in any of the cases. Sample testcases Input 1 10 12 1898 72426391011 R Code Size : 1024 kb Header Snippet 1 #include 2 int 3 4 int =O 5 scanf("%d", & 6 int 7 for(i=@;i<: ++) 8 scanf ("%d" , & 1 // You are using Gcc Output 1 Greater : 1 Lesser : 8 Exactly divides : 5 ci)vy @ hitpssiplacement kongu edu/rosuttostl¢=U2FsdGVix 19w8Sqrw loqScDHkaCLFSB4CzzZUgaZTLHYRSASMgxAnMdRYCXVSL 126 31723, 1025 4m KE Footer Snippet 1 2 if % 3 + 4 5 printf("Greater : %d\n" 6 printf("Lesser : %d\n" 7 printf ("Exactly divides : %d" -1 8 return @ Recommended Learning Content: Status: Not Viewed Mark obtained: 0/10 Hints used: 0 Times compiled: 0 Times submitted: 0 Level: Medium Question type: Single File Programming Subject: Programming Subject: C Programming Subject: Arrays Show testcase scores || Show solution Question No: 9 Single File Programming Question rt Error Niranjan has a set of numbers stored in an array in which he has to find the identical numbers and its positions along with the number of occurrences. Write a program to find the same. Input format The first line of the input consists of a single value n. The next n lines consists of the elements of the array. Output format The first line of the output consists of the duplicate element. The second line of the output consists of its index values. The third line of the input contains number of occurrences. hitpssiplacement kongu edu/rosuttostl¢=U2FsdGVix 19w8Sqrw loqScDHkaCLFSB4CzzZUgaZTLHYRSASMgxAnMdRYCXVSL 1916 31723, 1025 4m KE Refer sample output for more than one duplicate element. Sample testcases Input 1 Output 1 a Similar element : 23 45 23 78 64 11 22 77 23 Positions : 28 Occurence : 2 Input 2 Output 2 5 35 15 23 15 23 Similar element : 15 Positions : 124 Occurence : 3 Similar element : 23 Positions : 3 5 Occurence : 2 cin’ © 1 // You are using GCC 2 Status: Skipped Mark obtained: 0/10 Hints used: 0 Times compiled: 0 Times submitted: 0 Level: Medium Question type: Single File Programming hitpssiplacement kongu edu/rosuttestl¢=U2FsdGVix 19w8Sqrw loqSBcDHkaELFSB4CzzZUgaZTLHYRsASMgxAnMdRYCXVSL 146 31723, 1025 4m Kec Subject: MCQ Subject: C Programming Subject: Arrays Show testease scores |_| Show solution Question No: 10 Single File Programming Question rt Error Ramu wants to get N elements in an array and a number to be multiplied with the array elements, He wants to display the multiplied result in descending order. Help Ramu to complete this task. Input format Number of array elements in the first line(N) Narray elements in second-line separated by space Number to be multiplied with array elements Output format Array elements in descending order after multiplied with given number (space separated) Sample testcases Input 1 Output 1 5 10 30 20 50 40 2 100 80 60 49 20 Code Size : 1024 kb ci) v & & 1 // You are using 6cc 2 hitpssiplacement kongu edu/rosuttostl¢=U2FsdGVix 19w8Sqrw loqScDHkaCLFSB4CzzZUgaZTLHYRSASMgxAnMdRYCXVSL 1916 31723, 1025 4m KE Recommended Learning Content: Status: Skipped Mark obtained: 0/10 Hints used: 0 Times compiled: 0 Times submitted: 0 Level: Medium Question type: Single File Programming Subject: Programming Subject: C Programming Subject: Arrays Show testcase scores _| Show solution hitpssiplacement kongu edu/rosuttostl¢=U2FsdGVix 19w8Sqrw loqScDHkaCLFSB4CzzZUgaZTLHYRSASMgxAnMdRYCXVSL 16116

You might also like