Funções e Estruturas em Programação C - Parte I

Funções e Estruturas em Programação C - Parte I

9th Grade - Professional Development

22 Qs

quiz-placeholder

Similar activities

APRENDO PROGRAMANDO

APRENDO PROGRAMANDO

12th Grade

20 Qs

ĐỀ THI HKI TOÁN LỚP 10 2021-2022 SỐ 2

ĐỀ THI HKI TOÁN LỚP 10 2021-2022 SỐ 2

10th Grade

20 Qs

UFCD 0605

UFCD 0605

12th Grade

18 Qs

Confined Space

Confined Space

Professional Development

20 Qs

EXCEL JHOINER RAMIREZ

EXCEL JHOINER RAMIREZ

Professional Development

20 Qs

PPPK TAHAP 2 PASTI LOLOS

PPPK TAHAP 2 PASTI LOLOS

University

20 Qs

ORIGEN DEL CASTELLANO

ORIGEN DEL CASTELLANO

10th Grade

20 Qs

Service Knowledge Quiz

Service Knowledge Quiz

7th - 12th Grade

20 Qs

Funções e Estruturas em Programação C - Parte I

Funções e Estruturas em Programação C - Parte I

Assessment

Quiz

Other, Other

9th Grade - Professional Development

Practice Problem

Hard

Created by

Gregório Teixeira

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Todo o programa C começa com a função:

#include

main

int()

my_function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Que devemos usar se quisermos que uma função não retorne nenhum valor?

void

main

printf

char

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Uma função C consiste em:

tipo_de_retorno, nome da função, parâmetros e um corpo

somente tipo_de_retorno

um nome sem corpo

4.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Media Image

Preencha os espaços em branco para definir uma função chamada my_func que retorne um void e imprima "Eu sou uma função" em seu corpo:

_____ my_func () {

_____ << “Eu sou uma função” << endl;

}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Uma função deve ser declarada:

Após sua chamada

Antes de ser chamada

6.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Preencha os espaços em branco para imprimir "funciona!" na tela, digite o protótipo da função antes da chamada.

void ___________ ()

int main ()

{ some_func();

return 0; }

_____ some_func()

{ cout << “funciona!” << endl; }

7.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Media Image

Preencha as partes ausentes do código a seguir para definir uma função printValue () que recebe um parâmetro chamado x e imprime seu valor.


void printvalue (int _)

{ cout << _ << endl; }

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?