MCQ Academy - English
Free Online MCQ Practice Tests in English
Popular Quiz Papers
Latest Quizzes
Before insert information into a database for any reason, you need to escape the content so you don’t get SQL hacked (injected)
- true
How do you store passwords?
- One way encryption.
The following SQL query will get how many columns from the table? SELECT * FROM table
- All
Which of these lines of code would replace the content of a webpage with “Saaaaaakib”?
document.body.innerHTML = "Saaaaaakib";
What sort of data type does the document variable store?
- object
When you’re writing JS on a webpage, what is the name of the global variable that represents the DOM?
- document
The DOM is the set of functionality that browsers provide to enable developers to access and manipulate webpages. What does DOM stand for?
- Document Object Model
const team = [
'Mashrafi',
'Sakib',
'Mahmudullah',
'Mushfiq',
'Tamim',
'Rubel',
'Aftab',
'Razzaq',
'Rafiq'
];
const [captain, assistant, ...players] = team;
consoloe.log(players);
What is the output of consoloe.log(players); in your console?
Array ["Mahmudullah", "Mushfiq", "Tamim", "Rubel", "Aftab", "Razzaq", "Rafiq"]
const team = [
'Mashrafi',
'Sakib',
'Mahmudullah',
'Mushfiq',
'Tamim',
'Rubel',
'Aftab',
'Razzaq',
'Rafiq'
];
const [captain, assistant, ...players] = team;
consoloe.log(captain);
What is the output of consoloe.log(captain); in your console?
- Mashrafi
Considering the following snap of code, what is the expected result?
const gotNumber = 46;
if (gotNumber>45) {
var division = 'Second Division';
}
console.log(`Division is ${division} by number ${gotNumber}`);
- Division is Second Division by number 46
Considering the following snap of code, what is the expected result?
const gotNumber = 46;
if (gotNumber>45) {
let division = 'Second Division';
}
console.log(`Division is ${division} by number ${gotNumber}`);
- Error: division is not defined
Considering the following snap of code, what is the expected result?
let dogName = 'Tom';
let catName = 'Jerry';
[dogName, catName] = [catName, dogName];
console.log(`Dog name: ${dogName}`);
- String output:
Dog name: Jerry
When used as a constructor, like new MyFunction(), the value of this will be a brand new object provided by the JavaScript runtime. If we don’t explicitly return anything from that function, this will be considered its return value.
- true
Apply or call method can be used to override the value of this?
- true
What does the below line do considering it as the first line in your javascript file:
(function(){
alert(this);
})();
- I will see an alert with not null value
Pi Day is celebrated on which date?
- 4th March
Who was the first man to walk on the moon?
- Neil Armstrong
The term “Partition of India” created which of the two independent dominions?
- India and Pakistan
When multiplied by itself, which number is equal to 12,345,678,987,654,321?
- 111,111,111
What is the analogy of VACCINE : PREVENT?
- antidote : counteract
