MCQ Academy - English
Free Online MCQ Practice Tests in English
Popular Quiz Papers
Latest Quizzes
“Don’t you know yet? It is your light that lights the worlds.” – A quote by whom?
- Rumi
“Let yourself be silently drawn by the strange pull of what you really love. It will not lead you astray.” – A quote by whom?
- Rumi
Which rocket is delivered the Bangabandhu-1 to a geostationary transfer orbit on 11th May 2018 EST?
- A Falcon 9 rocket
What’s the difference between unset() and unlink()
unset()sets a variable to "undefined" andunlink()deletes a file from the file system.
What’s the difference between the include() and require() functions?
require()function exits with a fatal error if the file can't be included, while theinclude()function may still pass and jump to the next step in the execution.
What will be output in console:
var animals = ['Tiger', 'Lion', 'Camel', 'Cow', 'Duck']; console.log(animals.slice(2, 4));
Array ["Camel", "Cow"]
What is going to display with this js code:
var myArray = ['a', 'b', 'c']; console.log(myArray[-1]);
- undefined
To insert 2 values into a table, you use which query?
- INSERT INTO `table`(column, column2) VALUES('One', 'Two')
When connecting to a database through PHP, do you use mysql or mysqli?
- mysqli
To update a table using a WHERE clause, we’d write: UPDATE table SET column='New Value' WHERE column IS NOT NULL
- ture
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
