Computers and Technology

Analise o código a seguir: #include
main() {
int n;
printf("\n Digite um número: ");
scanf("%d", &n);
switch(n) {
case 1: printf("A"); break;
case 3: printf("B");
case 4: printf("C"); break;
default: printf("*");
case 5: printf("D");
}
}

I – Se a opção escolhida for 1, será impresso na tela a letra "A".
II – Se a opção escolhida for 2, será impresso na tela a letra "*" e "D".
III – Se a opção escolhida for 3, será impresso na tela a letra "B" e "C".
IV – Se a opção escolhida for 4, será impresso na tela a letra "C", "*" e"D".

É correto o que se afirma em:

lternativas
Alternativa 1:
II, apenas.

Alternativa 2:
III, apenas.

Alternativa 3:
I e II, apenas.

Alternativa 4:
I, II e III, apenas.

Alternativa 5:
I, II, III e IV.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 13:00, ohnoitsabby5431
The documents a system at the end of the design phase, identifies any changes since the beginning of the project, and includes testing and verification of all system requirements and features. functional baseline operational baseline allocated baseline product baseline
Answers: 1
image
Computers and Technology, 22.06.2019 11:00, tristina20
The isometric projection camera technique provides an illusion of perspective by using things like parallax scrolling to create the illusion of 3d in a 2d game
Answers: 3
image
Computers and Technology, 22.06.2019 11:30, stodd9503
Awell-diversified portfolio needs about 20-25 stocks from different categories is this true or false?
Answers: 2
image
Computers and Technology, 22.06.2019 21:30, mima851
Elements such as fonts colors visual structure graphics and the interface of a web page should complement each other to ensure blank
Answers: 3
Do you know the correct answer?
Analise o código a seguir: #include
main() {
int n;
printf("\n Digite um número:...

Questions in other subjects: