EC8393 - Fundamentals of Data Structures in C

EC8393 - Fundamentals of Data Structures in C

University

25 Qs

quiz-placeholder

Similar activities

Programming Round 1

Programming Round 1

12th Grade - University

21 Qs

Pointers in C

Pointers in C

University

24 Qs

C Programing

C Programing

University

25 Qs

C - Structures

C - Structures

University

20 Qs

Pointers

Pointers

University

20 Qs

Playing with C

Playing with C

University

20 Qs

C - Flow Control

C - Flow Control

University

20 Qs

C Language Basics

C Language Basics

University

26 Qs

EC8393 - Fundamentals of Data Structures in C

EC8393 - Fundamentals of Data Structures in C

Assessment

Quiz

Computers

University

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?