14 dec 2023 SRMIST TRC MCA AN
Quiz
•
English
•
Professional Development
•
Practice Problem
•
Hard
CCC info@ccc.training
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int triangularNumber(int n) { if (n == 0) return 0; else return n + triangularNumber(n - 1); } int main() { printf("Triangular Number: %d\n", triangularNumber(3)); return 0; }
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int countDown(int n) { if (n <= 0) return 0; else { return 1 + countDown(n - 1); } } int main() { printf("Count Down: %d\n", countDown(4)); return 0; }
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int digitSum(int n) { if (n == 0) return 0; else return n % 10 + digitSum(n / 10); } int main() { printf("Digit Sum: %d\n", digitSum(567)); return 0; }
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int consecutiveSquaresSum(int n) { if (n == 0) return 0; else return n * n + consecutiveSquaresSum(n - 1); } int main() { printf("Consecutive Squares Sum: %d\n", consecutiveSquaresSum(3)); return 0; }
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int decimalToBinary(int n) { if (n == 0) return 0; else return n % 2 + 10 * decimalToBinary(n / 2); } int main() { printf("Binary Representation: %d\n", decimalToBinary(5)); return 0; }
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int palindromeCheck(int n) { if (n <= 0) return 1; else return n % 10 == (n / 10) % 10 && palindromeCheck(n / 100); } int main() { printf("Palindrome Check: %d\n", palindromeCheck(1221)); return 0; }
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int sumOfEvenDigits(int n) { if (n == 0) return 0; else return (n % 10 % 2 == 0 ? n % 10 : 0) + sumOfEvenDigits(n / 10); } int main() { printf("Sum of Even Digits: %d\n", sumOfEvenDigits(123456)); return 0; }
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
16 questions
G1 - TỪ VỰNG TEST YOURSELF 1 – PAGE 22,23,24,25
Quiz
•
Professional Development
20 questions
Marketing vocabulary
Quiz
•
Professional Development
18 questions
Sports Intermediate
Quiz
•
6th Grade - Professio...
12 questions
Questions about the Internet
Quiz
•
Professional Development
20 questions
Pecha Kucha Presentation
Quiz
•
University - Professi...
15 questions
VCE-BETA-20.11.2023-AN
Quiz
•
Professional Development
10 questions
B2-M2-Vocabulary Quiz-Chapter 7
Quiz
•
University - Professi...
15 questions
Prepositions
Quiz
•
11th Grade - Professi...
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
