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

Đồ thị hàm số y=ax^2

Đồ thị hàm số y=ax^2

9th Grade

20 Qs

International Human Resource Management (ROUND 1)

International Human Resource Management (ROUND 1)

University

20 Qs

UAS SPREADSHEET X AKUNTANSI

UAS SPREADSHEET X AKUNTANSI

10th Grade

20 Qs

ALS

ALS

University - Professional Development

21 Qs

FORMAÇÃO

FORMAÇÃO

Professional Development

20 Qs

NASIONALISME A

NASIONALISME A

Professional Development

20 Qs

Harry Potter

Harry Potter

2nd Grade - Professional Development

20 Qs

Sals of Goods Act 1930

Sals of Goods Act 1930

University

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

Already have an account?