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
37 questions
Biblia - powtórzenie

Flashcard
•
9th Grade
44 questions
2025 Review

Flashcard
•
12th Grade
45 questions
Silent Letters

Flashcard
•
KG - 8th Grade
50 questions
Unit 4 Test Review

Flashcard
•
10th - 11th Grade
40 questions
El abecedario

Flashcard
•
9th Grade
50 questions
Nomenclature

Flashcard
•
9th Grade
46 questions
Flashcards KATAKANA

Flashcard
•
KG
50 questions
Hiragana Championship

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Instructional Technology
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
20 questions
Taxes

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

Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions

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

Quiz
•
KG - University
50 questions
Biology Regents Review 2: Ecology

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade