Search Header Logo

Programming Challenges for IT Skills

Authored by Jeric Malata

Computers

University

Used 1+ times

Programming Challenges for IT Skills
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of binary search?

O(log n)

O(n log n)

O(n)

O(1)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the difference between a stack and a queue.

A stack uses FIFO, while a queue uses LIFO.

Both stack and queue use LIFO.

A stack uses LIFO, while a queue uses FIFO.

A stack allows random access, while a queue does not.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a hash table?

To create a backup of data.

To store data in a linear format.

To encrypt sensitive information.

The purpose of a hash table is to provide efficient data storage and retrieval.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write a function to reverse a string in Python.

def reverse_string(s): return s[::-2]

def reverse_string(s): return ''.join(reversed(s))

def reverse_string(s): return s[::-1]

def reverse(s): return s.reverse()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code: print(2**3 + 3**2)?

10

17

15

12

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Define polymorphism in object-oriented programming.

Polymorphism is the ability to create multiple instances of a class.

Polymorphism is the ability of different classes to be treated as instances of the same class through a common interface, allowing for method overriding and overloading.

Polymorphism is the technique of hiding the implementation details of a class.

Polymorphism refers to the process of combining multiple classes into one.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between synchronous and asynchronous programming?

Asynchronous programming is always faster than synchronous programming regardless of the task.

Synchronous programming waits for tasks to complete before moving on, while asynchronous programming allows tasks to run concurrently.

Synchronous programming allows multiple tasks to run at the same time, while asynchronous programming runs tasks one after another.

Synchronous programming is used exclusively in web development, while asynchronous programming is used in desktop applications.

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?

Discover more resources for Computers