O que faz a função fatorial_iterativo(n)?

Funções de Fatorial e Fibonacci

Flashcard
•
Instructional Technology
•
10th Grade
•
Hard
Leilane Kazuko
FREE Resource
Student preview

50 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
Calcula o fatorial de n usando repetição
2.
FLASHCARD QUESTION
Front
Qual é o valor inicial da variável resultado na função fatorial_iterativo?
Back
1
3.
FLASHCARD QUESTION
Front
O que faz a linha 'for i in range(2, n + 1)' na função fatorial_iterativo?
Back
Cria um laço de repetição de 2 até n
4.
FLASHCARD QUESTION
Front
O que faz a função fatorial_recursivo(n)?
Back
Calcula o fatorial de n usando recursão
5.
FLASHCARD QUESTION
Front
Qual é o caso base na função fatorial_recursivo?
Back
n == 0 ou n == 1
6.
FLASHCARD QUESTION
Front
O que faz a função fibonacci_iterativo(n)?
Back
Calcula o n-ésimo número da sequência de Fibonacci
7.
FLASHCARD QUESTION
Front
O que faz a função fibonacci_recursivo(n)?
Back
Calcula o n-ésimo número da sequência de Fibonacci usando recursão
Create a free account and access millions of resources
Similar Resources on Quizizz
42 questions
VOCAB U2 Reading sgk

Flashcard
•
10th Grade
40 questions
Mendelian Genetics

Flashcard
•
9th - 10th Grade
50 questions
Unit 4 Test Review

Flashcard
•
10th - 11th Grade
50 questions
Resultant Forces

Flashcard
•
9th Grade
50 questions
Vocab MP 1

Flashcard
•
11th Grade
50 questions
Hiragana Championship

Flashcard
•
9th - 12th Grade
44 questions
EEG - B (104-144)

Flashcard
•
10th Grade
43 questions
Vocabulary Flashcards

Flashcard
•
KG
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Instructional Technology
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University