
c basic

Quiz
•
Computers
•
University
•
Hard
Manoj R
Used 37+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int main()
{
int i = 1, 2, 3;
printf("%d", i);
return 0;
}
1
3
Garbage value
Compile time error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int main()
{
int main = 3;
printf("%d", main);
return 0;
}
3
Compile time error
Run time error
give garbage value
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this program? if input a is 1 and b is 2
int main()
{
int a, b;
printf("%d", scanf("%d %d",&a,&b));
return 0;
}
1
2
runtime error
compile time error
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int main()
{
int i;
i = printf("letsfindcourse");
i = printf("%d ", i);
printf("%d ", i);
return 0;
}
letsfindcourse14 3
14
letsfindcourse14 30
letsfindcourse14 2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int var = 20;
int main()
{
int var = var;
printf("%d ", var);
return 0;
}
Garbage Value
20
Compiler Error
None of these
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <stdio.h>
int main()
{
int i = 10, j = 2;
printf("%d\n", printf("%d %d ", i, j));
}
Compile time error
10 2 4
10 2 2
10 2 5
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python - Functions

Quiz
•
University
15 questions
Coding and Debugging

Quiz
•
University
15 questions
BASIC C QUIZ

Quiz
•
University
14 questions
Java Operators

Quiz
•
University
12 questions
C Basics

Quiz
•
University
6 questions
sample qizz

Quiz
•
University
10 questions
C++ Quiz

Quiz
•
University
9 questions
IPC144 -- Midterm Review

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade