# FIbonacci Series Program function fibonacciSequence(input) { var a=0;b=1;c=0; var array1=[0,1]; for(var i=2;i<=input;i++) { c=a+b; a=b; b=c; array1.push(c) } return array1; }

FIbonacci Series Program
function fibonacciSequence(input)
{
var a=0;b=1;c=0;
var array1=[0,1];
for(var i=2;i<=input;i++)
{
c=a+b;
a=b;
b=c;
array1.push(c)
}
return array1;
}
<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->

a) True

b) False

Read Loans and Insurance questions

0 votes

Answer:-True

## Related questions

0 votes
FIbonacci Series Program function fibonacciSequence(input) { var a=0;b=1;c=0; var array1=[0,1]; for(var i=2;i...
0 votes
Write a menu-driven program to print the following patterns, where number of rows for the pattern should be the user ... 2 4 8 32 Select the correct answer from above options...
0 votes
function multi(a,b) { var ans = a * b; return ans; } var c = _________ 1. multi(15,2); 2. multi 15, 2; 3. multi();...
0 votes
write a program to print fibonacci series . write a program to search an element within the array using binary search Select the correct answer from above options...
0 votes
Write a program to generate first 20 terms of Fibonacci series and store them in single dimension array. Display ... from the array Select the correct answer from above options...
0 votes
In a series RLC circuit excited by a voltage 3e^-t u (t), the resistance is equal to 1 Ω and capacitance ... for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
0 votes
If A =1,B’=0, C=0 are the input of a NOR GATE what will be the out put Select the correct answer from above options...
0 votes
If A =1,B’=0, C=0 are the input of a NOR GATE what will be the out put. Select the correct answer from above options...
0 votes
If A =1,B’=0, C=0 are the input of a NOR GATE what will be the out put. Select the correct answer from above options...
0 votes
For a series RLC circuit, excited by voltage V = 20 sinωt. The values of R = 2 Ω, L = 1mH and C ... Questions for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
0 votes
For a series RLC circuit, excited by voltage V = 20 sinωt. The values of R = 2 Ω, L = 1mH and C ... Questions for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
0 votes
Derive a Canonical POS expression for a Boolean function F, represented by the following truth table : 1 A B C F 0 0 0 ... 1 0 1 1 1 1 Select the correct answer from above options...
0 votes
a) Derive a Canonical POS expression for a Boolean function F, represented by the following truth table : 1 A B C F 0 0 ... 1 0 1 1 1 1 Select the correct answer from above options...
0 votes
In a series RLC circuit R = 10 kΩ, L = 0.5 H and C = \frac{1}{250} μF. Calculate the frequency ... theory Questions for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
0 votes
What will be the output of the following Python program? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc ... (id(q) == foo(q)) a) Error b) None c) False d) True...