
AQ Quiz 5
Authored by Mandeep Singh
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
100 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
/* C program to check palindrome and check the input and output*/
#include <stdio.h>
int main()
{ int n, reverse = 0, temp;
printf("Enter a number you want to check\n");
scanf("%d",&n);
temp = n;
while( temp != 0 )
{ reverse = reverse * 10;
reverse = reverse + temp%10;
temp = temp/10;
} if ( n == reverse )
printf("%d is a palindrome number.\n", n);
else
printf("%d is not a palindrome number.\n", n);
return 0;
}
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
SYNTAX ERROR
LOGICAL ERROR
RUNTIME ERROR
ALL OF THE ABOVE
3.
MULTIPLE SELECT QUESTION
1 min • 1 pt
ERROR EXCEPTED COLON IN LINE11
ERROR EXCEPTED SEMICOLON IN LINE11
ERROR EXCEPTED COLON IN LINE12
ERROR EXCEPTED SEMICOLON IN LINE12
4.
MULTIPLE SELECT QUESTION
1 min • 1 pt
In which of the following cases the minimum no of insertions to form palindrome is maximum?
string with all same characters
string of length 1
palindromic string
non palindromic string
5.
MULTIPLE SELECT QUESTION
1 min • Ungraded
In the worst case, the minimum no of insertions to be made to convert the string into a palindrome is equal to the length of the string
TRUE
FALSE
NEITHER TRUE NOR FALSE
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following function print for n = 25?
void fun(int n)
{
if (n == 0)
return;
printf("%d", n%2);
fun(n/2);
}
11001
10011
11111
00000
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What’s happen if base condition is not defined in recursion ?
Stack underflow
Stack Overflow
None of these
Both a and b
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
100 questions
POST TEST - DDPTJKT ASAS
Quiz
•
1st Grade - University
95 questions
Mid Term Practice AX1
Quiz
•
University
100 questions
6 - 10 N+
Quiz
•
University - Professi...
102 questions
Preguntas de Matemáticas Financieras
Quiz
•
University
97 questions
Cuestionario de Seguridad Informática
Quiz
•
University
100 questions
TIN 1 CB
Quiz
•
University
100 questions
Fundamentals of IT Revision
Quiz
•
University
100 questions
Berpikir Komputasi Kelas X YSKI
Quiz
•
University - Professi...
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University