Looking for CC - P1 - Promo 2029 test answers and solutions? Browse our comprehensive collection of verified answers for CC - P1 - Promo 2029 at moodle.myefrei.fr.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Quelle est la fonction réalisée par ce circuit ?
Laquelle de ces équations est équivalente à ?
Laquelle de ces équations est équivalente à ?
Quelle est la fonction réalisée par ce circuit ?
What is the number of stars displayed by the following lines of instruction ?
n <- 5
For i <- 1 to n Do
For j <- n to i [-1] Do
Write("* ")
End For
Write("\NL")
End For
Consider the following sequence of instructions. Assume that the user has typed the values 0, 2, 4, 30, 12, 18, 24 in order. What is the last value read?
i <- 1
val <- 0
Do
Read(val)
i <- i + 6
While (val % 6 != 0)
Which conditions allow the write instruction to be executed?
Do
Read(val)
While (val < 0 OR val >= 10)
Write(val)
Analyze the sequence of instructions below. Then, choose which of the following statements are true. Assume that each variable has been correctly declared.
n <- 5
arr <- {1, 2, 3, 4, 5}
tmp <- arr[1]
For i <- 1 to n Do
arr[i - 1] <- arr[i]
End For
arr[n] <- tmp
In the following sequence of instructions, how many times is the string "hello" displayed?
For i <- 1 to 10 [2] Do
Write("hello\NL")
End For
What is the value of the variable count at the end of execution of the following sequence of instructions ?
count <- 0
For i <- 2 to 5 Do
For j <- 1 to 2 Do
If i % j = 0 Then
count <- count + 1
End If
End For
End For