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

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

Professional Development

20 Qs

quiz-placeholder

Similar activities

零售購物 Day 16 Pt. 1

零售購物 Day 16 Pt. 1

10th Grade - Professional Development

20 Qs

Revision

Revision

Professional Development

23 Qs

科技與媒體 Day 26 Pt. 2

科技與媒體 Day 26 Pt. 2

10th Grade - Professional Development

20 Qs

VRESEC-24.01.2024-AN-1-3

VRESEC-24.01.2024-AN-1-3

Professional Development

15 Qs

parts of a plane

parts of a plane

Professional Development

15 Qs

房屋與修繕 Day 22 Pt. 2

房屋與修繕 Day 22 Pt. 2

10th Grade - Professional Development

20 Qs

表演與展覽 Day 20 Pt. 1

表演與展覽 Day 20 Pt. 1

10th Grade - Professional Development

20 Qs

餐飲與住宿 Day 18 Pt. 2

餐飲與住宿 Day 18 Pt. 2

10th Grade - Professional Development

20 Qs

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

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

Assessment

Quiz

English

Professional Development

Medium

Created by

CCC info@ccc.training

Used 1+ times

FREE Resource

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

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?