Search Header Logo

Quiz de Programação em C

Authored by FELIPE OLIVEIRA SOUZA

Information Technology (IT)

9th - 12th Grade

Used 2+ times

Quiz de Programação em C
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das seguintes estruturas de controle é usada para repetir um bloco de código enquanto uma condição for verdadeira?

if

for

while

switch

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a sintaxe correta para declarar uma função em C que retorna um inteiro e recebe dois parâmetros inteiros?

int funcao(int a, int b);

void funcao(int a, int b);

int funcao(void);

funcao(int a, int b);

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código em C? ```c char str[] = "Hello, World!"; printf("%c", str[7]); ```

H

e

W

o

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a sintaxe correta para declarar um ponteiro para um inteiro em C?

int *p;

int p*;

*int p;

int p;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código em C? ```c int x = 5; int y = 10; int *p = &x; int *q = &y; *p = *q; printf("%d", x); ```

5

10

0

15

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das seguintes opções é usada para liberar a memória alocada dinamicamente em C?

free

delete

remove

release

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das seguintes estruturas de dados é usada para implementar uma pilha?

Array

Lista encadeada

Ambas as opções acima

Nenhuma das opções acima

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?