PCEP-30-02 Practice Test practice questions, page 14 of 20, with answer review and explanations.
Question 66
What is the expected output of the following code?
1 1 2 3 4 5
2 3 4 5 6 1
2 3 4 5 6 6
1 2 3 4 5 6
Question 67
What is the expected output of the following code?
[1, 10, 3, 20, 5, 30, 7, 40, 9, 50, 60]
[1, 2, 10, 20, 30, 40, 50, 60]
The code is erroneous.
[10, 2, 20, 4, 30, 6, 40, 8, 50, 60]
Question 68
What is the expected output of the following code?
2
1
The code is erroneous.
3
4
Question 69
What is the expected output of the following code?
hellopeter
hello@Peter!!
hello@peter!!
None
Question 70
Consider the following list. data = [1, 5, 10, 19, 55, 30, 55, 99] Which of the code snippets below would produce a new list like the following? [1, 5, 10, 99]