Search Header Logo

Info2 / prog C

Authored by Yann Leboulanger

Computers

University

Used 2+ times

Info2 / prog C
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Quel nom de variable est le mieux choisi :

int var1

int COMPTEUR

int entree

int sortir_pour_le_portA_du_microcontroleur

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle instruction permet de forcer le bit 2 de x à 1 :

x = x | 2

x = x | (1 << 2)

x = x & (1 << 2)

x = x & 2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle est la meilleur écriture pour forcer le bit TXEN de UCSRB à 1 :

UCSRB = UCSRB | 0x08

UCSRB = UCSRB | (1 << 3)

UCSRB = UCSRB | 1 << TXEN

UCSRB = UCSRB | (1 << TXEN)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle instruction permet de fixer le bit 2 de x à 0

x = x & ~(1<< 2)

x = x & (1<< 2)

x = x | (0<< 2)

x = x | ~(1<< 2)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle instruction permet de tester si le bit 2 de x est à 0

if (x == 0)

if ((x | (1 << 2)) == 0)

if ((x & (1 << 2)) != 0)

if ((x & (1 << 2)) == 0)

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?