Quiz de Programação em C
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Medium
Amanda Xavier
Used 9+ times
FREE Resource
Enhance your content in a minute
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Em C, qual das seguintes declarações de variáveis é inválida?
int nota1;
float salário_total;
char ende'reço;
double _valor;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Considere o seguinte código em C: #include int main() { int x = 5, y = 3; x = y - x; y = 2 * y * (-x); printf("x = %d, y = %d", x, y); return 0; } Qual será a saída desse programa?
x = -2, y = 12
x = -2, y = -12
x = 2, y = 12
x = 2, y = -12
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a função do operador % em C?
Realizar a divisão exata entre dois inteiros.
Retornar o quociente da divisão entre dois inteiros.
Determinar o resto da divisão inteira.
Converter um número decimal para inteiro.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Qual será a saída do código abaixo, assumindo que o usuário digita o valor 3 quando solicitado?
#include <sdtio.h>
int main() {
int x;
scanf("%d", &x);
x = x + x;
printf("%d\n", x);
return 0;
}
3
6
9
Nenhuma saída, pois há erro no código.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
No código a seguir, qual será o valor final de y?
#include <stdio.h>
int main() {
int x = 2, y = 6, temp;
temp = x;
x = y;
y = temp;
return 0;
}
2
6
8
4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual será a saída do programa a seguir? #include <stdio.h>
int main() {
float x = 2.78;
printf("%10.2f\n", x);
return 0;
}
____2.780
______2.78
_______2.78
2.780000
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Em relação às variáveis de ponto flutuante em C, qual afirmação está correta?
O tipo float tem maior precisão que o tipo double.
Para imprimir um double no printf, é obrigatório usar %lf.
A precisão de long double é menor que a de double.
O tipo float ocupa menos memória que o tipo double.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
TR01-HT01-OP02
Quiz
•
University
20 questions
Revissão - Linguagem C (str, fun, stru, vt+mt,)
Quiz
•
University
15 questions
Fundamentos de Bases de Datos
Quiz
•
10th Grade - University
13 questions
Parcial 1 Reparación y Soporte- 5to BACO - I Unidad Forma B
Quiz
•
10th Grade - University
15 questions
7-sinf Elektron jadvallar bo'yicha bilimlar
Quiz
•
7th Grade - University
20 questions
Ativ PDS Métricas de SW
Quiz
•
University
12 questions
Curso de Videovigilancia
Quiz
•
University
15 questions
Primer Parcial de Inteligencia Artificial Aplicada al Marketing
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
