Evaluation: The performance of supervised learning models is typically evaluated using various metrics such as accuracy, precision, recall, or mean squared error, depending on the nature of the problem (classification or regression
Size: 738.61 KB
Language: en
Added: May 08, 2024
Slides: 13 pages
Slide Content
Accenture Preparation
Pseudo Codes
Question 1 Integer x, y, z Set x = 0, y = 3, z = 11 if (x + (1 | 2) && y + (2 | 3)) x = x - 2 y = x Else x = z y = y ^ 2 End if Print x + y + z 15 10 13 7
Question 2 What will be the output of the following pseudocode for a =1, b =2? Integer funn (Integer a, Integer b ) if(a<3 && b<4) return funn ( a +1, b + 1) Else Return a + b End if End function funn () 8 7 19 -7
Question 3 What will be the output of the following pseudo-code: Integer p, q, r Set p= 3, q =1, r = 2 If(p+ (2&2&2) && q + (3&3&3) && r + (2^2^2)) p = p – 2 q = p Else p = r q = q2 End If Print p+q+r 8 4 -8 16
Question 4 What will be the output of the following pseudo-code: Integer p, q, r Set p = 8, q = 51, r = 2 r = (p ^ r) ^ p q = q%4 Print p+q+r 13 17 26 16
Question 5 #include int main() { int x; for (x = 10; x >= 0; x–) { int z = x & (x >> 1); if (z) printf (“%d “, x); } 678 763 6 7 8 7 6 3
✅1: New Sankalp 3.0 Batch for 2025 batch Use code: SANKALP (Offer only for 20 Students ) ✅ 2: New Yodha Batch for 2024, 23, 22, 21, and other Passing Batch Use code: Yodha (offer only 50 Students)
Coding Question
Questio n Q: The function accepts an integer array ‘ arr ’ of size ‘n’ as its argument. The function needs to return the index of an equilibrium point in the array, where the sum of elements on the left of the index is equal to the sum of elements on the right of the index. If no equilibrium point exists, the function should return -1. Input arr - {3, 4, 3, 1, 6} Output = 2
Questio n Q: Given a function binaryStringOperations(string s) with string s in arguments s contains binary numbers '0' and '1' and also operations 'A', 'B' and 'C' Where A denotes : AND operation B denotes : OR operation C denotes : XOR operation you need to return integer answer after applying all bitwise operations in the given string. Input: 1C0C1C1A0B1 Output: 1