Quelle est la forme réduite en langage C de la structure alternative 'Si (condition) alors Bloc d’instructions ; Sinon Bloc d’instructions ; Fin si' ?

Quiz sur les structures de contrôle en langage C

Quiz
•
Computers
•
12th Grade
•
Hard
renard noir
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Si (condition) alors Bloc d’instruction 1 ; Sinon Bloc d’instruction 2 ; Fin si
Bloc d’instructions ; { Fin si
Forme complète en langage C
Forme réduite en algorithme
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quel est l'opérateur ternaire en langage C qui est égal à expression 1 si la condition est satisfaite, et à expression 2 sinon ?
L'opérateur conditionnel '?'
L'opérateur de boucle 'for'
L'opérateur virgule ','
L'opérateur conditionnel 'if'
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quelle est la structure itérative en langage C qui consiste à répéter un certain traitement un nombre de fois fixé à l’avance ?
Boucle for
Boucle while
Boucle do...while
Structure alternative complète
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
En utilisant la structure if, quel programme en C teste une variable age pour informer si l'utilisateur est majeur ?
if (age>18) { printf('Vous êtes majeur'); }
if (age<=18) { printf('Vous êtes mineur'); }
if (age>=18) { printf('Vous êtes majeur'); }
if (age<18) { printf('Vous êtes mineur'); }
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quelle est la forme complète en langage C de la structure alternative 'Si (condition) { Bloc d’instruction 1 ; } else { Bloc d’instruction 2 ; }' ?
Si (condition) alors Bloc d’instruction 1 ; Sinon Bloc d’instruction 2 ; Fin si
Forme réduite en langage C
Bloc d’instructions ; { Fin si
Forme complète en langage C
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quelle est la boucle conditionnelle en langage C qui répète un traitement tant qu'une condition reste valide ?
Boucle while
Boucle for
Structure alternative complète
Boucle do...while
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
En utilisant la boucle while, écrire un programme qui affiche les 10 premiers nombres entiers.
while (i<=10) { printf('i=%d', i); i++; }
while (i<5) { printf('i=%d', i); i++; }
while (i<10) { printf('i=%d', i); i++; }
while (i<=5) { printf('i=%d', i); i++; }
Create a free account and access millions of resources
Similar Resources on Quizizz
7 questions
Quiz de Programmation en Langage C

Quiz
•
12th Grade
15 questions
Bootcamp da1

Quiz
•
9th - 12th Grade
10 questions
QCM et Exercices sur les Algorithmes

Quiz
•
12th Grade
14 questions
Linux Chapitre 3

Quiz
•
12th Grade
14 questions
QCM SNT PHOTO NUMERIQUE

Quiz
•
9th - 12th Grade
5 questions
Les fondamentaux de JavaScript

Quiz
•
3rd Grade - Professio...
10 questions
Test App inventor

Quiz
•
9th - 12th Grade
15 questions
2GT - SNT - 2 - Le Web Bilan

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University