Search Header Logo

ບົດເສັງທ້າຍພາກMA2

Authored by Vongpasith Phouthone

Computers

University

Used 1+ times

ບົດເສັງທ້າຍພາກMA2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Regular Expression (Regex) ໃດທີ່ໃຊ້ເພື່ອຊອກຫາຄຳວ່າ "apple" ຫຼື "orange" ຢູ່ໃນຂໍ້ຄວາມ?

`(apple|orange)`

`[apple|orange]`

`apple|orange`

`apple and orange`

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Regex pattern ໃດໃນ Python ທີ່ສາມາດກວດຫາຕົວເລກໃດໜຶ່ງທີ່ມີຢ່າງໜ້ອຍ 1 ຕົວ?

\d

\d+

\d?

[0-9]{0,}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ຖ້າໃຊ້ Regex pattern `a[b-d]c`, ຂໍ້ໃດຕໍ່ໄປນີ້ຈະ ບໍ່ ກົງກັບ pattern ນີ້?

abc

acc

adc

aec

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ກຸ່ມ (Set) A ມີສະມາຊິກ 4 ຕົວ. ຈຳນວນຂອງກຸ່ມຍ່ອຍ (Subset) ທັງໝົດທີ່ສາມາດສ້າງຈາກກຸ່ມ A ແມ່ນເທົ່າໃດ?

4

8

16

32

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Big O Notation ໃດຕໍ່ໄປນີ້ທີ່ສະແດງເຖິງຄວາມຊັບຊ້ອນດ້ານເວລາ (Time Complexity) ທີ່ດີທີ່ສຸດ (ມີປະສິດທິພາບທີ່ສຸດ) ສໍາລັບຄ່າ n ທີ່ໃຫຍ່?

O(n)

O(log n)

O(n^2)

O(1)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ພິຈາລະນາ Python code snippet ຕໍ່ໄປນີ້:

def process_list(data):

for item in data:

print(item)

ຖ້າ `len(data)` ແມ່ນ n, Big O Notation ຂອງຟັງຊັນນີ້ແມ່ນເທົ່າໃດ?

O(1)

O(log n)

O(n)

O(n^2)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ໃນສະຖານະການໃດທີ່ເໝາະສົມກັບການໃຊ້ Combination?

ການຈັດລຽງໜັງສືໃສ່ຊັ້ນວາງ

ການເລືອກທີມບານເຕະ 5 ຄົນຈາກນັກເຕະ 11 ຄົນ

ການກຳນົດອັນດັບຜູ້ຊະນະໃນການແຂ່ງຂັນແລ່ນ

ການສ້າງລະຫັດຜ່ານທີ່ມີຕົວເລກ ແລະ ຕົວອັກສອນ

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?