GoConqr has a new look! Let us know what you think.

Quiz

PCEP

Khudaija Siddiqui 6 questions

Take the quiz

Questions in this quiz (6)

  1. 1What will be the value of the i variable once the loop has been executed?

    i = 0
    while i != 0:
    i = i - 1
    else:
    i = i + 1
    1. A0
    2. B1
    3. C2
    4. Dthe variable becomes unavailable
  2. 2An operator able to perform bitwise shifts is coded as (Select two answers)
    1. A--
    2. B++
    3. C<<
    4. D>>
  3. 3What will the value of the i variable be when the following loop finishes its execution?
    for i in range(10):
    pass
    1. A10
    2. Bthe variable becomes unavailable
    3. C11
    4. D9
  4. 4The following expression evaluates to:
    1+-2
    1. Aequal to 1
    2. Binvalid
    3. Cequal to 2
    4. Dequal to -1
  5. 5A compiler is a program designed to:
    1. Arearrange the source code to make it clearer
    2. Bcheck the source code in order to see if it's correct
    3. Cexecute the source code
    4. Dtranslate the source code into machine code
  6. 6What is the output of the following piece of code?

    a = 'ant'
    b = 'bat'
    c = 'camel'
    print(a,b,c, sep = '"')
    1. Aant' bat' camel
    2. Bant"bat" camel
    3. Cantbatcamel
    4. Dprint(a,b,c, sep='"')

Information

Description
2º de Bachillerato python Quiz on PCEP, created by Khudaija Siddiqui on 31/10/2021.
Language
English
Views
0
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?