Nick Robinson hosted the debate in Scotland between the SNP and Lib Dem leaders just three days before the General Election.
The leaders special was delayed from last night due to the London terror attack and the One Love Manchester concert.
Mr Farron was first up and faced questions about his faith, calling for a second Brexit referendum and opposition to increased internet monitoring to clamp down on jihadis.
Ms Sturgeon faced calls to resign over her education record and backpeddled on a date for an independence referendum as voters accused her of miscalculating feelings over having a second referendum after she said the first would be a "once in a lifetime" opportunity.
Tim Farron and Nicola Sturgeon took to Question Time
The first question is about internet surveillance and asking why it is not a good thing.
Mr Farron said people need to ask if it was a lack of surveillance or resources which did not prevent the Manchester and London terror attacks.
He said the UK does not have enough pairs of eyes in the police force, saying Theresa May's cuts have "not made us safer".
The Lib Dem leader said he is concerned about security services being able to catch people, but he does not believe in the widening of powers.
One lady asks if Mr Farron would give police more than a "big stick".
Back to the terrorists who carried out this weekend's attack, who have just been revealed as Khuram Shazad Butt, 27, a British citizen born in Pakistan, and Rachid Redouane, 30, who had claimed to be Moroccan and Libyan, both of Barking.
Mr Farron said the Government has the power to impose temporary prevention orders and Mrs May has only issued one.
However, Mr Robinson says the Lib Dems do not want to widen powers.
Get Quotes on Home Insurance
Mr Farron defended the EU
And onto Brexit and the Lib Dems offering a second referendum.
A woman says Mr Farron is not listening to the will of the people because he wants another referendum.
The Lib Dem leader says he blames David Cameron and George Osborne for allowing the British people to vote to leave the UK.
He said it is Mr Cameron's fault for not saying what would happen if we left.
Mr Robinson asks why Mr Farron isn't a popular man.
Mr Farron glosses over that and says he wants to look his kids in their eyes in 30 years and tell them he did everything he could to stop narrow calculations.
A Scottish man says the Scots were told the only way to stay in the EU was to vote to stay in the UK.
Mr Farron says he will start off by complimenting Ms Sturgeon for wanting to stay in the EU.
The Lib Dem leader said it is right for his party to support staying in the EU but not letting Scotland to leave the UK.
A woman says there is misinformation on both sides of the EU referendum vote.
One man asks why people should vote for the Lib Dems when they only have 10 seats – Mr Farron says the SNP only had six seats before so why can't the Lib Dems gain.
Mr Farron is asked if his faith shapes his views, to which he says that everybody has different things which shape them.
Mr Robinson says Mr Farron knows why that is being asked because he keeps refusing to answer whether he supports gay marriage.
He says he does but refuses to answer whether he believes in abortion.
He added: "I'm not somebody who wants to go around talking about my faith.
"I'm not running to be Pope, I'm a political leader not a religious one so I don't judge anyone."
Frank Donnelly, asks him if the Lib Dems should be trusted following the u-turn on tuition fees.
Mr Farron claims voting against increasing tuition fees in the last government cost him a place as a cabinet in the coalition.
Frank Donnelly asked about the Lib Dems u-turn on tuition fees
Mr Robinson points out Mr Farron now says tuition fees will not be decreased.
He said: "That policy was always about trust not fees."
Josh West asks how the Lib Dems can justify each taxpayer an extra 1p in tax.
Mr Farron says he is proud of that because he is brutally honest because for the price of a coffee everybody in the country could have a good NHS to make it the best healthcare system in the world.
He said the Lib Dems are going to be honest about how they will pay for the NHS.
Mr Farron said there should be a cap on how much you pay for care, and the Dementia Tax is an appalling thing to put on our country.
Mr Farron tried to defend his 1p tax
Ms Sturgeon is now in the building.
Back to keeping our streets safe.
Ms Sturgeon said there are no easy answers and knee jerk responses are often the worst.
She said we need to work with the Muslim community and not scapegoat them.
Investment in the security, intelligence and police services is key, she says, adding police officers in Scotland have maintained levels.
She added we must make sure we don't start to undermine our own freedoms and civil liberties.
She said we need to listen to the police and security services but refuses to say they should have further powers as she fears they will have "too much information to deal with".
She praised the speed and effectiveness of the police on Saturday night in London.
Ms Sturgeon said the Snoopers' Charter went too far and was not practical but would study any proposals for further powers.
Ms Sturgeon said police should not have more powers
She is asked if she miscalculated the mood, she says politicians have to sometimes :do what you think is right".
She added: "My position on this is reasonably straightforward when you strip it all away we face not just Bexit put perhaps a very extreme form of Brexit that could have implications and consequences for life in Scotland for generations to come.”
An audience member says Ms Sturgeon is very good at standing on her "little podium" talking about independence but when it comes to it, they cannot practically argue why it should happen.
Another man says Ms Sturgeon is not popular now.
Much clapping from the audience.
Responding to plummeting approval ratings she replied: “All the polls suggest the SNP is on track to win this election in Scotland fairly convincingly.”
Ms Sturgeon said she does not take her rule for granted and says the NHS in Scotland is much better than in the UK in terms of numbers and funding.
Next question – would there be a time limit for independence?
Ms Sturgeon said Brexit forced her to want to call a second independence referendum and says when the time is right, when we know what is happening with Brexit then she can see if Scotland wants another referendum.
Ms Sturgeon, added: "I don't think it's right for any politician to dictate what is right for a country."
Cue – laughter from the audience.
Ms Sturgeon did not say if she would definitely call a referendum
A Welsh audience member says the 1707 agreement means Scotland is not its own country.
Another audience member says Scexit will mean Scottish people will have to choose about trading with the UK and Europe.
Ms Sturgeon says she wants Scotland to be able to trade with both and asks why on earth Scotland would want to trade with the UK.
The SNP leader is using Ireland as an example, with the UK saying Ireland does not need to choose between the two so why should Scotland.
Andrew Judge says Ms Sturgeon wants to be judged on education, so should she not resign?
He is talking about the Scottish education system now being "the worst" in the UK and tuition fees.
Ms Sturgeon said she will defend free university tuition, which she benefitted from.
She said she promised to increase the quality of schools, despite Scotland recording its worst ever results in Maths, English and Science in 2016.
Another woman asks if the "named persons act" will improve education.
A man says the 'free' tuition fees means fewer Scottish people can go to university because others have to pay for it.
Ms Sturgeon says there are more places for Scottish students than ever before and people in England have £27,000 of debt when they leave.
She said she should only be judged on her education record at the next Scottish election.
Nick Robinson was chairing the Question Time special
Onto tax and devolved powers.
Ms Sturgeon said Scotland does not have the ability to stop tax avoidance.
She said they are not giving a tax cut to those on the higher rate because they're investing in education and the NHS.
Ms Sturgeon said she wants full tax powers in Scotland but at the moment if they put tax up Scotland will lose money.
Now to mental health.
Back onto the independence referendum – she refuses to say she would call a vote for Spring 2019 when she would before.
Ms Sturgeon says it depends on Theresa May and keeping up with the PM's positions on a range of issues is very difficult during this campaign.
She said she no longer believes Mrs May will get a bigger majority but will win the General Election.
A woman asks if Ms Sturgeon can promise she will not barter away Scottish fisherman's livelihoods.
Ms Sturgeon said she cannot guarantee that because she believes the Tories will do just that.
- Prime Minister Theresa May arives for Question Time debate
- Question Time: Jeremy Corbyn is grilled over IRA
- Question Time audience berates Corbyn for stance on nuclear weapons
After the show rivals urged voters to send Ms Sturgeon a message on Thursday to take her "demands off the table".
Scottish Tory MSP Ross Thomson said: “Once again, we’ve seen the First Minister taken to task on her party’s dreadful record on education.
"She struggled once again to explain why, after 10 years in government, standards in our schools have slipped so badly.
“The reason is that this SNP Government has spent 10 years obsessing about independence.”
Labour General Election campaign manager James Kelly said:"This was a tough night for the First Minister.
"No wonder Nicola Sturgeon spends so much time up in her helicopter, because when she comes into contact with the ordinary people of Scotland it becomes clear that the majority don't want another divisive independence referendum.
"It's time for Nicola Sturgeon to listen to the majority of Scots, who want her to get on with the day job of improving standards in our schools and hospitals instead of constantly trying to break up our country.”