DS week2

DS week2

University

18 Qs

quiz-placeholder

Similar activities

C - Strings

C - Strings

University

20 Qs

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

Java Control and Loop -2

Java Control and Loop -2

University

20 Qs

Coding CHASE

Coding CHASE

10th Grade - University

15 Qs

Quiz 2 - CS110

Quiz 2 - CS110

University

15 Qs

Test_On_Tap_01

Test_On_Tap_01

University

14 Qs

Ciclos Python

Ciclos Python

University

13 Qs

Ôn Tập Các Hàm Trong Excel

Ôn Tập Các Hàm Trong Excel

KG - Professional Development

20 Qs

DS week2

DS week2

Assessment

Quiz

Computers

University

Hard

Created by

HARITHA REDDY

Used 2+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt


If elements of the data structure form a sequence of the list then it is called as _________.

Linear data structure

Primitive data structure

Non-primitive data structure

None of these

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is non-primitive data type from these?

Integer

Character

Double

Array

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The Term Data structure refers to _______ and interrelationships between them.

Programming Language Statement


Coding standards

Organization of data element

None of these

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

void f(){

int a = 0, b =0;

for( i = 1; i<n; i++)

a += i;

for(i = 1; i<m; i++)

b += i;

}

The time complexity of the above code is:

O(n)

O(m)

O(m + n)

O(n * m)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

void f(){

int a[n][n],sum = 0

for(i = 0; i<n; i++)

for(j =0; j<n; j++)

sum += a[i][j];

print(sum);

}

The time complexity of above program is:

O(n)

O(n log n)

O(n^2)

O(n^3)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the length of an array when its first index is denoted by i and last index is denoted by j?

i + j

j - i - 1

j - i

j - i + 1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the integer data type requires 2 bytes, then what will be the size of following declared array:

int a[2][3];

24 bytes

12 bytes

6 bytes

10 bytes

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?