Day 3 C Programming quiz
Quiz
•
Computers
•
Professional Development
•
Hard
Phantom Techlogics
Used 6+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which conversion is not possible in c programming?
int to float
float to char pointer
float to int
All of these
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which header file is needed to include to use typecasting?
stdin.h
math.h
ctype.h
None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
int main()
{
double x = 1.2;
int sum = (int)x + 1;
printf("sum = %d", sum);
return 0;
}
what will be the value of the variable sum?
1
2
3
0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of conversion is also called Automatic Type Conversion?
Implicit Type Conversion
Explicit Type Conversion
None of the above
Both A and B
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <stdio.h>
int main()
{
int a=40,b=20;
if (a>b) {
printf("a is greater than b");}
else if(a<b) {
printf("a is less than b"); }
else {
printf("a is equal to b");}
}
What is the output of the code?
a is greater than b
a is equal to b
a is less than b
compilation error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int main()
{
switch(24.5)
{
case 24.5: printf("A ");break;
case 25.0: printf("B "); break;
default: printf("None ");
}
printf("Done");
}
What is the output of the above C Program?
Compiler error
Done
A , Done
B , Done
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <stdio.h>
int main()
{
int x = 5;
if (x < 1)
printf("x<1");
if (x == 5)
printf("x=5");
else
printf("none");
}
what is the output of the following code?
x=5
x<1
none
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
15 questions
Tipos de datos y variables
Quiz
•
Professional Development
10 questions
OSI Model - Transport Layer
Quiz
•
9th Grade - Professio...
14 questions
Tin học 6 - Bài 15 Thuật toán
Quiz
•
Professional Development
10 questions
Úng dụng công nghệ thông tin
Quiz
•
Professional Development
14 questions
Day 1 - Basics of Java
Quiz
•
Professional Development
10 questions
Latihan HTML
Quiz
•
12th Grade - Professi...
10 questions
7/2/2024
Quiz
•
Professional Development
10 questions
Latihan Microsoft Word by Kisron
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween
Quiz
•
Professional Development
16 questions
Spooky Season Quiz
Quiz
•
Professional Development
5 questions
11.4.25 Student Engagement & Discourse
Lesson
•
Professional Development
50 questions
ASL Colors and Clothes
Quiz
•
KG - Professional Dev...
15 questions
Ohms Law
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
