
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
15 questions
CIS1101-programming practice

Quiz
•
University
6 questions
Part1 Array

Quiz
•
University
6 questions
Unit 12 : error no

Quiz
•
University
11 questions
Quiz 2

Quiz
•
University
10 questions
C Program Array and strings

Quiz
•
University
10 questions
pointers and structures

Quiz
•
University
10 questions
Arrays in C (II yr 02.07.2020)

Quiz
•
University
10 questions
C Viva

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University