
OODP FT1

Quiz
•
Computers
•
University
•
Medium
Preethi V
Used 3+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Guess the output of the following code:
#include<stdio.h>
int main() {
char str[]="Hello"
char *ptr=str;
ptr+=3;
printf("%s", ptr);
return 0;
}
Hello
lo
Hel
llo
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
what's wrong with this code?
#include<stdio.h>
void main() {
int n=5;
int arr[n];
for(int i=1;i<=n; i++)
arr[i] = i;
printf("%d",arr[n]);
}
Variable-sized array declaration
Array index out of bound
Missing return statement
All of these
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Operator in pointer is referred as
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
this code will give the output as -----------
#include<stdio.h>
int main(){
int i = 1;
do{
printf("%d",i);
i++;
if(i>3) break;
} while(1);
return 0;
}
123
12
1234
12345
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
An array is a collection of
different data types scattered throughout memory
the same data type scattered throughout memory
the same data type placed next to each other in memory
different data types placed next to each other in memory
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
find the output of the following code:
#include<stdio.h>
int main()
{
int x=15;
printf("\n%d%d",x<30,x=20);
}
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
correct the following code:
int main()
{
int tag = 0,code = 1;
if(tag==0)
(code>1? printf("\nHello")? printf("\nHi"));
else
printf("\nHello Hi ! ! ");
}
Create a free account and access millions of resources
Similar Resources on Wayground
35 questions
C PROGRAMMING FOR 2ND AND 3RD YEAR

Quiz
•
University
25 questions
Java - SET -1

Quiz
•
University
25 questions
Estructura de Datos

Quiz
•
University
30 questions
Branch Master CSE Round 1(Quiz)

Quiz
•
University
25 questions
Algoritma dan Pemrograman

Quiz
•
University
25 questions
ROUND 1

Quiz
•
University
30 questions
C-Programming

Quiz
•
University
25 questions
Aptitude Competition(FY)

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University