Search Header Logo

connettivi logici

Authored by Carolina Pellecchia

Computers

12th Grade

Used 9+ times

connettivi logici
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Qual è il risultato dell'espressione `(True and False) or (True and True)`?

Non è possibile determinare il risultato senza ulteriori informazioni

True

Folse

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Se x è True e y è False, quale delle seguenti espressioni è True?

x and not y

x or not y

not x or y

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Se a è True e b è True, quale delle seguenti espressioni è False?

a or b

a and b

not a and not b

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Scrivi un'istruzione condizionale utilizzando i connettivi logici che verifichi se un numero n è compreso tra 10 e 20 inclusi. (Ad esempio, se n è 15, l'istruzione restituirà True.)

n_compreso = 10 >= n <= 20

n_compreso > 10 <= n <= 20

n_compreso = 10 = n <= 20

n_compreso = 10 <= n <= 20

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Spiega la differenza tra and e or nei connettivi logici e fornisce un esempio per ciascuno.

  • and restituisce True solo se entrambe le condizioni sono True. Ad esempio, True and True è True, ma True and False è False.

  • or restituisce True se almeno una delle condizioni è True. Ad esempio, True or False è True.

  • or restituisce True solo se entrambe le condizioni sono True. Ad esempio, True and True è True, ma True and False è False.

  • and restituisce True se almeno una delle condizioni è True. Ad esempio, True or False è True.

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Se x è True e y è True, quale delle seguenti espressioni è True?

not x or not y

x or y

x and y

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Se p è False e q è True, quale delle seguenti espressioni è False?

not p and q

p or q

p and q

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?