
OODP FT1
Authored by Preethi V
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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 ! ! ");
}
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
29 questions
TMK TAHUN 5
Quiz
•
KG - University
31 questions
Budowa komputera
Quiz
•
University
25 questions
Angular 4
Quiz
•
University
25 questions
MS EXCEL
Quiz
•
University
25 questions
Basics of Web Technology
Quiz
•
University
26 questions
VIDEO GAMES
Quiz
•
KG - Professional Dev...
25 questions
MAD Test3 Android Studio
Quiz
•
University
25 questions
Latihan JK4 - GIT
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University