
fundamentals on c
Quiz
•
Other
•
Professional Development
•
Hard

Prasanth Kumar
Used 13+ times
FREE Resource
Enhance your content
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
who is the father of c language
bjoune strousstrip
dennis m ritchie
dr e.f coud
james a .gosling
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
#include<stdio.h>
int main()
{
int n;
for(n = 7; n!=0; n--)
printf("n = %d", n--);
getchar();
return 0;
}
infinite loop
finite loop
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
find the output of snippet?
#include<stdio.h>
int main()
{
printf("%x", -1<<1);
getchar();
return 0;
}
dependent on the compiler
independent on the compiler
error
compile successfully
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
# include <stdio.h>
# define scanf "%s Geeks For Geeks "
main()
{
printf(scanf, scanf);
getchar();
return 0;
}
Output: %s Geeks For Geeks Geeks For Geeks
Output: %d Geeks For Geeks Geeks For Geeks
Output: %f Geeks For Geeks Geeks For Geeks
Output: %c Geeks For Geeks Geeks For Geeks
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
#include<stdio.h>
char *getString()
{
char str[] = "Will I be printed?";
return str;
}
int main()
{
printf("%s", getString());
getchar();
}
Output:accurate value
Output: Some garbage value
Output:error
Output:not compile
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
#include<stdio.h>
main()
{
char s[]="hello", t[]="hello";
if(s==t){
printf("eqaul strings");
}
}
equal
unequal
will have output
no output
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the output of the following program?
#include<stdio.h>
main()
{
float t = 2;
switch(t)
{
case 2: printf("Hi");
default: printf("Hello");
Hi
HiHello
Hello
Error
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
10 questions
POST TEST PKP Employee Advocacy 2023
Quiz
•
Professional Development
12 questions
Pre test M&E
Quiz
•
Professional Development
10 questions
Gemini AI
Quiz
•
Professional Development
10 questions
DC Power Supply
Quiz
•
Professional Development
10 questions
BMW X5 45e
Quiz
•
Professional Development
9 questions
CBI Quiz
Quiz
•
Professional Development
10 questions
TEST 2 PISAV XII TAV Audio Paging
Quiz
•
12th Grade - Professi...
10 questions
Teknik Sepeda Motor
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade