What will happen when the following code is executed?
void main()
{
printf("MIET");
main();
}
C Programming
Quiz
•
Computers
•
5th - 12th Grade
•
Medium
Aarya Aarya
Used 12+ times
FREE Resource
31 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen when the following code is executed?
void main()
{
printf("MIET");
main();
}
Wrong statement
It will keep on printing MIET
It will print MIET once
None of these
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result after execution of the following code if a is 10, b is 5, and c is 10?
if ((a > b) && (a <= c))
a = a + 1;
else
c = c+1;
a = 10, c = 10
a = 11, c = 10
a = 10, c = 11
a = 11, c = 11
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the result of 'num' variable after execution of the following statements?
int num = 58;
num % = 11;
3
5
8
11
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int x = 5;
if (x < 1)
printf("hello");
if (x == 5)
printf("hi");
else
printf("no");
}
hi
hello
no
error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int x = 0;
if (x == 1)
if (x == 0)
printf("inside if\n");
else
printf("inside else if\n");
else
printf("inside else\n");
}
inside if
inside else if
inside else
compile time error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The value of i after the execution of the following segment is
i = 2;
for( i=0; i>10; i=i+1);
1
2
0
11
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
C language developed at _____?
AT & T's Bell Laboratories of USA in 1972
AT & T's Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
26 questions
ULANGAN HARIAN PEMROGRAMAN C
Quiz
•
12th Grade
26 questions
Understanding Arduino Programming Basics
Quiz
•
11th Grade
34 questions
CB30: Unit 2 Test Review
Quiz
•
9th - 12th Grade
30 questions
Quiz Pra ASAS Informatika Lanjut Asyikk uhuy Banget...
Quiz
•
10th Grade - University
32 questions
แบบทดสอบปลายภาค 2/2566
Quiz
•
12th Grade
30 questions
Python Basic
Quiz
•
9th - 12th Grade
30 questions
Understanding Code
Quiz
•
11th Grade
30 questions
ASESMEN TENGAH SEMESTER INFORMATIKA KELAS X - SMKN 52 JAKARTA
Quiz
•
10th Grade
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
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th 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
20 questions
Final Exam Vocabulary
Quiz
•
6th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade