Help shape GoConqr. What should we add next?

Quiz

A13 - Completa el código de decisión

Milton Hernandez Garcia 1 question Updated 4 Dec 2020

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (1)

  1. 1#Include <iostream>
    using namespace std;
    int main(void)
    {
    int [blank_start]hora[blank_end];
    cout << "[blank_start]Introduzca una hora (entre 0 y 24):[blank_end] ";
    cin >> hora;
    [blank_start]if[blank_end] ((hora=[blank_start]0[blank_end]) and (hora<12))
    cout<<"Buenos días\n";
    [blank_start]else if[blank_end] ((hora>=12) and ([blank_start]hora<18[blank_end]))
    cout<<"Buenas tardes\n";
    else if (([blank_start]hora>=18[blank_end]) and (hora<[blank_start]24[blank_end]))
    cout<<"Buenas noches\n";
    [blank_start]else[blank_end]
    cout<<"[blank_start]Hora no válida\n[blank_end]";
    return 0;
    }
    1. Ahora
    2. Bif
    3. C0
    4. Delse if
    5. Ehora<18
    6. Fhora>=18
    7. G24
    8. Helse
    9. IHora no válida\n
    10. JIntroduzca una hora (entre 0 y 24):

Information

Description
Quiz on A13 - Completa el código de decisión, created by Milton Hernandez Garcia on 04/12/2020.
Language
Español
Views
62
History
Created on 4 Dec 2020 · updated on 4 Dec 2020
Tags
primero
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What should we add next?