
EC8393 - Fundamentals of Data Structures in C

Quiz
•
Computers
•
University
•
Hard
Jothi P
Used 19+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which loop is most suitable to first perform the operation and then test the
condition?
while loop
for loop
do while loop
All of the mentioned
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of the below code snippet
#include<stdio.h>
main()
{
printf("%d", -11%2);
}
1
5
-1
-5
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following function is more appropriate for reading in a multi-word string?
puts()
gets()
printf()
scanf()
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int a = 1, b = 1, c;
c = a++ + b;
printf("%d, %d", a, b);
}
a = 1, b = 1
a = 1, b = 2
a = 2, b = 2
a = 2, b = 1
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int x = 5;
if (x < 1)
printf("hello");
if (x == 5)
printf("hi");
else
printf("no");
}
hi
hello
no
error
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Array can be considered as set of elements stored in consecutive memory locations but having __________.
same data type
different data type
same scope
none
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Determine the output:
#include<stdio.h>
int main()
{
int arr[10] = {0,1,2,[7]=7,8,9};
printf("%d ", arr[5]);
printf("%d ", arr[8]);
}
0 0
8 0
0 8
5 8
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
C-Language Q1

Quiz
•
University
30 questions
Resumen Unidad 2 PP

Quiz
•
University
23 questions
C que que que

Quiz
•
University
20 questions
Glitch Hunting Round-1

Quiz
•
University
20 questions
C Program

Quiz
•
University
20 questions
C - Strings

Quiz
•
University
20 questions
1st Year quiz

Quiz
•
University
20 questions
PRA UAS - Dasar Dasar Pemrograman 2023

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University