
Quiz sur les tableaux en C

Quiz
•
Other
•
Professional Development
•
Medium
Hamza Bouchikhi
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Comment accède-t-on au dernier élément d'un tableau arr en C de taille n ?
arr[n-1]
arr[n]
arr[n-2]
arr[0]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quelle est la syntaxe correcte pour déclarer une fonction qui retourne un tableau en C ?
int* function_name();
int[] function_name();
int function_name[]();
int function_name(int[]);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quelle est la sortie du code suivant ? int arr[] = {2, 4, 6, 8}; printf("%d", arr[1] * arr[3]);
8
16
32
24
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quelle est la valeur de i après l'exécution de cette boucle ? int i = 0; for (i = 1; i < 5; i++) {}
5
4
6
1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Comment parcourt-on correctement un tableau avec une boucle en C ?
for (int i = 0; i < n; i++) { /* code */ }
for (int i = 1; i <= n; i++) { /* code */ }
for (int i = 0; i <= n; i++) { /* code */ }
for (int i = 1; i < n; i++) { /* code */ }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quel est le résultat du code suivant ? int arr[] = {1, 2, 3}; printf("%d", arr[1] + arr[2]);
5
3
6
4
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quel sera la sortie du code suivant ? int arr[] = {1, 2, 3, 4, 5}; int sum = 0; for (int i = 0; i < 5; i++) { sum += arr[i]; } printf("%d", sum);
10
15
5
20
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Ninjago. Who am I?

Quiz
•
KG - Professional Dev...
10 questions
JAVA QUIZ

Quiz
•
Professional Development
15 questions
Random

Quiz
•
Professional Development
20 questions
Podstawy transportu

Quiz
•
5th Grade - Professio...
10 questions
fundamentals on c

Quiz
•
Professional Development
10 questions
DataStructures

Quiz
•
Professional Development
17 questions
Contabilidad General

Quiz
•
Professional Development
10 questions
Java

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development