What is the output of this code?
const double PI=3.1416;
printf("%.2f",PI);
Competitive Programming
Quiz
•
Education, Computers
•
1st Grade
•
Medium
Sonali Kumari
Used 15+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of this code?
const double PI=3.1416;
printf("%.2f",PI);
3.141
3.14
3.1416
3.1
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of this code?
int count=1;
for(int i=0;i<10;i++){
for(int j=0;j<=10;j++){
count++;
}
}
printf("%i",count);
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of this code?
int a=2;
int b=4;
a=b/a;
b=a+b;
a=a*b;
printf("%d",a);
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of this code?
int x=1;
x%=3;
printf("%d",x);
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
C language support classes and objects
True
False
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Fill in the blanks to calculate the sum of all elements in the array arr, which contains 7 elements:
int sum=0;
_(int x=0; x<_; x++){
sum+=arr[ _ ];
}
printf("%d",sum);
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of this code?
int i=(1,2,3);
printf("%d",i);
10 questions
java-control structures-vlits
Quiz
•
1st Grade
15 questions
Python Basics
Quiz
•
KG - University
10 questions
Pseudo Code
Quiz
•
1st - 3rd Grade
10 questions
Introduction to Arrays
Quiz
•
KG - University
10 questions
Quiz ComPro 18-12-66
Quiz
•
1st Grade
10 questions
21-22_QUIZ1_KCA102
Quiz
•
1st - 3rd Grade
15 questions
ASK F2 -KOD ARAHAN (PYTHON)
Quiz
•
1st Grade - University
8 questions
Robotics Quiz
Quiz
•
1st - 12th 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
10 questions
American Flag
Quiz
•
1st - 2nd Grade
10 questions
Identifying equations
Quiz
•
KG - University
25 questions
2.4A Add Subtract within 20 quickly: set 3
Quiz
•
1st - 3rd Grade
15 questions
Music 2016
Quiz
•
KG - 12th Grade
12 questions
Summer Trivia
Quiz
•
1st - 5th Grade
44 questions
logos
Quiz
•
KG - University
20 questions
Guess that Disney
Quiz
•
KG - 5th Grade
20 questions
Cartoon Characters!
Quiz
•
KG - 5th Grade