O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

CS1101 Week 6

Usuário eliminado 15 perguntas Atualizado em 10 jan 2017

Fazer o quiz

Perguntas do quiz (15)

  1. 1A function that returns an integer value greater than 0 is called a Boolean function.
    1. AVerdadeiro
    2. BFalso
  2. 2Encapsulation is the process of wrapping a piece of code in a function
    1. AVerdadeiro
    2. BFalso
  3. 3Repeated execution of a set of programming statements is called repetitive execution.
    1. AVerdadeiro
    2. BFalso
  4. 4A development approach that is intended to avoid a lot of debugging by only adding and testing small amounts of code at a time is called.
    1. Astructured development
    2. Bincremental development
    3. Cunit testing
    4. Dsystems development life cycle
  5. 5What output will the following code produce?

    def area(l,w);
    temp=l*w;
    return temp

    l=4.0
    w=3.25
    x=area(l,w)
    if(x):
    print(x)
    1. A13.0
    2. B0
    3. Cexpression does not evaluate to Boolean true
    4. D13
  6. 6What output will the following code produce?

    n=10
    while n!=1:
    print(n,)
    if n%2==0: #n is even
    n=n//2
    else: #n is odd
    n=n*3+1
    1. A10 5 16 8 4 2
    2. Bnone an error will be displayed
    3. C8 4 2
    4. D9 28 14 7 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2
  7. 7What output will the following statements produce?

    n=2
    n+=5
    print(n)
    1. A7
    2. B5
    3. C0
    4. Dnone
  8. 8The statements inside of a loop are known as the _____ of the loop.
    1. Abody
    2. Bexpression
    3. Ccounter
    4. Dblock
  9. 9A loop where terminating condition is never achieved is called an _____.
    1. Ainfinite loop
    2. Buniversal loop
    3. Cwhile loop
    4. Dfor .. ever loop
  10. 10Functions can only return Boolean expressions.
    1. AVerdadeiro
    2. BFalso

Informações

Descrição
O usuário eliminou as informações de disciplina Quiz sobre CS1101 Week 6, criado por Usuário eliminado em 22-09-2016.
Autor
Usuário eliminado
Idioma
English
Visualizações
87
Histórico
Criado em 22 set 2016 · atualizado em 10 jan 2017

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?