
DS week2

Quiz
•
Computers
•
University
•
Hard
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
Similar Resources on Wayground
20 questions
EST102 : PROGRAMMING IN C TEST 1

Quiz
•
University
20 questions
Dynamic Programming DAA

Quiz
•
University
15 questions
VECTORES Y MATRICES

Quiz
•
University
16 questions
Lógica de programação

Quiz
•
University
15 questions
Quiz Algoritma Looping

Quiz
•
University
20 questions
TECHFEST QUALIFYING ROUND

Quiz
•
University
15 questions
CIS1101-programming practice

Quiz
•
University
13 questions
Struktur Data-Sorting

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade