Search Header Logo

coding skills (ISCP 02) Tuesday slot2 (11am - 1:00pm) CSE E & G

Authored by CCC info@ccc.training

English

Professional Development

Used 1+ times

coding skills (ISCP 02) Tuesday slot2 (11am - 1:00pm) CSE E & G
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the outcome of the following code snippet? int func(int arr[], int n, int target) { int left = 0; int right = n - 1; while (left <= right) { int mid = left + (right - left) / 2; if (arr[mid] == target) return mid; else if (arr[mid] < target) left = mid + 1; else right = mid - 1; } return -1; }

Searching for a target element in a sorted array.
Reversing the order of elements in an array.
Sorting an array in ascending order.
Calculating the sum of elements in an array.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the best case complexity of insertion sort?

O(n**2)
O(n)
O(nlogn)
O(n**3)

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How many variables are required to implement stack using arrays?

1
2
3
4

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Stack can be implemented which of the following concepts?

Array
Linked list
Both a and b
Trees

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The process of deleting an element into stack is called?

pop operation
push operation
underflow operation
enqueue operation

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The postfix form of A*B+C/D is?

*AB/CD+
AB*CD/+
A*BC+/D
ABCD+/*

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The process of deleting an element from the queue is called?

pop operation
push operation
enqueue operation
dequeue operation

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?