ch
Feedback
Programming Quiz Channel

Programming Quiz Channel

前往频道在 Telegram

Programming quizzes and knowledge tests Short quizzes on programming, logic and computer science. Test and improve your coding knowledge. Join 👉 https://rebrand.ly/bigdatachannels DMCA: @disclosure_bds Contact: @mldatascientist

显示更多
780
订阅者
-124 小时
+37
+1730
帖子存档
Find the error in the code. Difficulty: Easy😁
function greet(name) {
  console.log("Hello, " + name);
}

greet();

#html #input #cheatsheet
#html #input #cheatsheet

Which of the following is NOT a JavaScript data type?
Anonymous voting

Which is the correct CSS syntax?
Anonymous voting

How do you define a function in JavaScript?
Anonymous voting

Which one is not a legal variable name in Python?
Anonymous voting

Find errors in the code. Difficulty: Average🤨
class Rectangle {
    constructor(width, height) {
        this.width = width;
        this.height = height;
    }

    getArea() {
        return width * height;
    }
}

const rect = new Rectangle(5, 10);
console.log("Area:", rect.getArea());

Where in an HTML document is the correct place to refer to an external style sheet?
Anonymous voting

#html #semantic #tips
#html #semantic #tips

Preparing for an interview? Check out all the key questions right here!

How can you open a link in a new tab/browser window?
Anonymous voting

What is a correct syntax to output "Hello World" in Python?
Anonymous voting

Best colors for brands #colors
+4
Best colors for brands #colors

Find the error in the code. Difficulty: Average😐
numbers = [1, 2, 3, 4, 5]

total = 0
for number in numbers:
    total += number

print("The total is: " + total)

How can you ensure that an element always stays at the bottom of its parent container?
Anonymous voting

Which tag is used to define an HTML table header?
Anonymous voting

What does the push() method do for an array in JavaScript?
Anonymous voting

#css #border #cheatsheet
#css #border #cheatsheet

What is the correct way to create a variable with the value of 5 in Python?
Anonymous voting

Find the error in the code. The answer should be: 0, 1 Difficulty: Average😐
const createCounter = () => {
  let count = 0;
  return () => {
    console.log(count++);
  };
};

const counter1 = createCounter();
const counter2 = createCounter();

counter1(); 
counter2();