in Technology by

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

1 Answer

0 votes
by

Answer:-True

Related questions

0 votes
    function multi(a,b) { var ans = a * b; return ans; } var c = _________ 1. multi(15,2); 2. multi 15, 2; 3. multi();...
asked Feb 26, 2021 in Technology by JackTerrance
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...
asked Dec 29, 2021 in Education by JackTerrance
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...
asked Dec 10, 2021 in Education by JackTerrance
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)...
asked Oct 12, 2021 in Education by JackTerrance
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...
asked Dec 13, 2021 in Education by JackTerrance
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...
asked Dec 11, 2021 in Education by JackTerrance
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...
asked Dec 11, 2021 in Education by JackTerrance
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)...
asked Oct 19, 2021 in Education by JackTerrance
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...
asked Dec 23, 2021 in Education by JackTerrance
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...
asked Nov 28, 2021 in Education by JackTerrance
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...
asked Jan 2, 2023 in Technology by JackTerrance
...