
Data Structure
Quiz
•
Professional Development
•
4th Grade
•
Hard
K Indira
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the Application
Stack
Queue
List ADT
List
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <stdio.h>
int main()
{
int arr[] = {1,2,3,4,5};
printf("arr [0] is %d", arr[0]);
// arr[10] is out of bound
printf("arr[10] is %d", arr[10]);
return 0;
}
Error
arr [0] is 1
arr[10] is -1786647872
arr [0] is 1
arr[10] is -1786647872
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <stdio.h>
int main()
{
int arr[] = {1,2,3,4,5};
printf("arr [0] is %d",arr[0]);
printf("arr[10] is %d",arr[10]);
// allocation memory to out of bound
// element
arr[10] = 11;
printf("arr[10] is %d",arr[10]);
return 0;
}
Segmentation Fault (SIGSEGV)
Output will be displayed
Compiler Error
None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the ourput:
printf("Enter the value to insert\n");
scanf("%d", &value);
for (c = n - 1; c >= position - 1; c--)
array[c+1] = array[c];//Moving to Next Position
array[position-1] = value;//Array Index
printf("Resultant array is\n");
for (c = 0; c <= n; c++)
printf("%d\n", array[c]);
return 0;
insert an element in an Array
delete an element in an Array
insert an element in the middle
delete an element in the middle
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
scanf("%d", &position);
if(position >= n+1)
printf("\n\nDeletion not possible\n\n");
else
// updating the locations with next elements
for(c = position-1; c < n-1; c++)
array[c] = array[c+1];
printf("\n\nResultant array is: ");
/*
the array size gets reduced by 1
after deletion of the element
*/
for(c = 0; c < n-1; c++)
printf("%d ", array[c]);
printf("\n\n\t\t\tCoding is Fun !\n\n\n");
Delete an Element from Array
Insert an Element from Array
Insert an Element from Array in the middle
Delete an Element from Array in the middle
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
{
if(p!=0)
{
int elt,flag=0;
printf("Enter the element to search in the List");
scanf("%d",&elt);
for(int i=0;i<p;i++)
{
if(L[i]==elt)
{
printf("The %d is available at %d ", elt, i);
flag=1;
}
}
if(flag==0)
{
printf("Element not found in the list");
}
}
else
{
printf("The List is empty");
}
}
Insert the Element
Delete the Element
Find the Element
Insert the Element at Last
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if(isStackFull())
printf("Unable to %d as the Stack Is Full\n",val);
else
{
//increment top by 1
++top;
arr[top]=val;
}
PUSH
POP
Middle element
none of the these
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
CV
Quiz
•
1st - 5th Grade
14 questions
Norme électrique
Quiz
•
KG - 4th Grade
10 questions
Principios Pedagógicos 2017
Quiz
•
1st - 12th Grade
10 questions
TIU 6 - 31 JANUARI 2021
Quiz
•
1st - 5th Grade
10 questions
Mecanismos para la resolución de conflictos
Quiz
•
4th Grade
10 questions
Santé et sécurité au travail
Quiz
•
1st Grade - University
15 questions
Google Certification
Quiz
•
KG - 7th Grade
11 questions
Mickey Mouse
Quiz
•
KG - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Professional Development
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
10 questions
Setting Quiz
Quiz
•
2nd - 5th Grade
15 questions
Subject-Verb Agreement
Quiz
•
4th Grade
21 questions
Factors and Multiples
Quiz
•
4th Grade
13 questions
Point of View
Quiz
•
4th Grade
5 questions
4.2G Relate Fractions to Decimals
Interactive video
•
4th Grade
20 questions
Theme
Quiz
•
4th Grade
