
OCS752 Introduction to C Programming
Authored by Anusuya V
Computers
Professional Development
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be printed if we execute following program ?
#include<stdio.h>
int main()
{
float a = 0.3;
if(0.3 > a)
printf("True\n");
else
printf("False\n");
return 0;
}
False
True False
True
None of These
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Guess the output of the program ?
#include<stdio.h>
int main()
{
int i = 1, j = 2;
if(i = 1) && if(j = 2)
printf("India is my country");
return 0;
}
Error: Undeclared identifier if
Error : Expression Syntax Error
Error: Misplaced If
No output and No Error
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
How many times loop will get executed ?
#include<stdio.h>
int main()
{
int i = 0;
while(i <= 255)
{
printf("%d", i);
i++;
}
return 0;
}
Infinite Times
255 Times
256 Times
1 Time
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Predict the output of the program ?
#include<stdio.h>
int main()
{
if(printf("ABC"))
printf("True");
else
printf("False");
return 0;
}
True
ABCFalse
ABC
ABCTrue
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Guess the output of the following program ?
#include<stdio.h>
int main()
{
int x=10;
printf("%d, %d, %d\n", x <= 10, x = 40, x >= 10);
return 0;
}
1, 1, 1
1, 40, 1
0, 40, 1
0, 1, 1
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Predict the output of the following code ?
#include<stdio.h>
int main()
{
int i = 10;
printf("%d, %d\n", ++i, i++);
return 0;
}
12, 10
12, 11
12, 12
Output may Vary from Compiler to Compiler
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the most preferred function to read a string in C?
scanf()
gets()
fgets()
strcpy()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
DBMS-QUIZ
Quiz
•
Professional Development
20 questions
PC Troubleshooting
Quiz
•
Professional Development
20 questions
U.T. 7: Configuración de Routers y Encaminamiento
Quiz
•
Professional Development
20 questions
MS OFFICE QUIZ 01
Quiz
•
Professional Development
20 questions
Technology
Quiz
•
Professional Development
20 questions
Round-1 Technical Aptitude
Quiz
•
11th Grade - Professi...
20 questions
Dev Web Java / Angular
Quiz
•
Professional Development
20 questions
Fundamentos y Algoritmia para Inteligencia Artificial
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development