Welcome to the Beginner’s Coding Quiz!
Whether you’re just starting out with coding or looking to brush up on your basics, this quiz is for you. It features 10 questions covering a range of topics, from general programming concepts to specifics about the Python and JavaScript languages.
Each question has four options, and only one of them is correct. Try to choose the best answer for each question. Don’t worry if you don’t know all the answers – the main goal here is to learn and have fun.
- Question of
What does HTML stand for?
- Hyper Text Markup Language
- High Text Markup Language
- Hyper Tabular Markup Language
- High Tabular Markup Language
- Question of
In Python, what is the output of the following code?
- 1
- 3
- 0
- 2
- Question of
What is the correct way to define a function in JavaScript?
- function myFunction() {}
- def myFunction() {}
- myFunction() {}
- function: myFunction() {}
- Question of
Which of these is not a valid variable name in Python?
- _myVar
- my_var
- 2myVar
- myVar2
- Question of
Which of these is not a primitive data type in JavaScript?
- Undefined
- Null
- Array
- Boolean
- Question of
What is the output of the following Python code?
- “H”
- “e”
- “l”
- “o”
- Question of
What does the ‘===’ operator check in JavaScript?
- If the values are equal
- If the values and types are equal
- If the values are not equal
- If the values and types are not equal
- Question of
Which of these is not a type of loop in Python?
- for
- while
- do-while
- until
- Question of
How do you declare a variable in JavaScript?
- var myVar = 10;
- myVar = 10;
- declare myVar = 10;
- variable myVar = 10;
- Question of
What is the output of the following Python code?
- 11
- 10
- 12
- 9