int main()
{
int i = 1, 2, 3;
printf("%d", i);
return 0;
}
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
15 questions
ARRAYS AND FUNCTIONS
Quiz
•
University
10 questions
Structure in C
Quiz
•
University
10 questions
Arrays in C (II yr 02.07.2020)
Quiz
•
University
10 questions
pointers and structures
Quiz
•
University
15 questions
Coding and Debugging
Quiz
•
University
10 questions
C Program Array and strings
Quiz
•
University
10 questions
Basics of C
Quiz
•
University
15 questions
BASIC C QUIZ
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade