Subject

Programming Language

Practice related MCQ quizzes and improve step by step.

Practice by Education Level

Subtopics under Programming Language

Quizzes in Programming Language

Which of the following is correct about C#?

Correct answer(s):
  • It is component oriented.
  • It can be compiled on a variety of computer platforms.
  • It is a part of .Net Framework.

What’s the difference between unset() and unlink()

Correct answer(s):
  • unset() sets a variable to "undefined" and unlink() deletes a file from the file system.

What’s the difference between the include() and require() functions?

Correct answer(s):
  • require() function exits with a fatal error if the file can't be included, while the include() 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));
Correct answer(s):
  • Array ["Camel", "Cow"]

What is going to display with this js code:

var myArray = ['a', 'b', 'c'];
 console.log(myArray[-1]);
Correct answer(s):
  • undefined

Which of these lines of code would replace the content of a webpage with “Saaaaaakib”?

Correct answer(s):
  • document.body.innerHTML = "Saaaaaakib";

When you’re writing JS on a webpage, what is the name of the global variable that represents the DOM?

Correct answer(s):
  • document

The DOM is the set of functionality that browsers provide to enable developers to access and manipulate webpages. What does DOM stand for?

Correct answer(s):
  • 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?

Correct answer(s):
  • 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?

Correct answer(s):
  • 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}`);
Correct answer(s):
  • Division is Second Division by number 46