
Quiz sobre Ponteiros e Memória

Quiz
•
Information Technology (IT)
•
12th Grade
•
Hard
KLEBER BITENCOURTT
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que é um ponteiro em C e qual é a sua principal utilidade?
Um tipo de dado que armazena caracteres.
Uma variável que armazena o endereço de memória de outra variável.
Uma função que aloca memória dinamicamente.
Um operador que compara strings.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a função da biblioteca padrão C utilizada para alocar memória dinamicamente?
`strcpy`
`malloc`
`strcmp`
`strlen`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o propósito da função `sizeof` em C?
Comparar duas strings.
Copiar o conteúdo de uma string para outra.
Retornar o tamanho em bytes de um tipo de dado ou variável.
Concatenar duas strings.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como você pode calcular o tamanho de uma string em C?
Usando a função `strcmp`.
Usando a função `strcat`.
Usando a função `strlen`.
Usando a função `strcpy`.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a função utilizada para realocar memória previamente alocada em C?
`malloc`
`free`
`realloc`
`calloc`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das opções abaixo descreve corretamente o uso da função `strcmp`?
Copiar uma string para outra.
Comparar duas strings e retornar um valor inteiro.
Concatenar duas strings.
Alocar memória para uma string.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código em C? ```c char str1[] = "Hello"; char str2[] = "World"; strcat(str1, str2); printf("%s", str1); ```
`Hello`
`World`
`HelloWorld`
`WorldHello`
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Quiz de Programação em C

Quiz
•
9th - 12th Grade
20 questions
Basic CSS Quiz

Quiz
•
9th Grade - University
10 questions
Estrelas Além do Tempo

Quiz
•
9th - 12th Grade
12 questions
Planning Poker

Quiz
•
2nd Grade - University
10 questions
Teste de Conhecimentos

Quiz
•
12th Grade
10 questions
Quiz sobre JavaScript e Node.js

Quiz
•
12th Grade
15 questions
Quiz sobre João Batista

Quiz
•
12th Grade
15 questions
Quiz de Robótica com Arduino

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade