
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
20 questions
Desenvolvimento sis 2tri

Quiz
•
12th Grade - University
14 questions
Fundamentos de Informática e Internet

Quiz
•
12th Grade
11 questions
Senki

Quiz
•
11th Grade - University
13 questions
Explorando Jogos Digitais e Criatividade

Quiz
•
9th Grade - University
15 questions
Quiz sobre Redes de Comunicação

Quiz
•
12th Grade
15 questions
Quiz sobre Ponteiros em Programação

Quiz
•
12th Grade
20 questions
Quiz sobre Google Forms

Quiz
•
12th Grade
20 questions
Atividade Avaliativa Robótica /Aula Projetos

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Information Technology (IT)
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
13 questions
8th - Unit 1 Lesson 3

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

Quiz
•
9th - 12th Grade
21 questions
SPANISH GREETINGS REVIEW

Quiz
•
9th - 12th Grade
6 questions
PRIDE Always and Everywhere

Lesson
•
12th Grade
25 questions
ServSafe Foodhandler Part 3 Quiz

Quiz
•
9th - 12th Grade