ch
Feedback

不要被骗子欺骗!Telemetrio 会找到并标记这些频道 👉 如果想查看标记,请订阅

Coding Quiz Zone

Coding Quiz Zone

前往频道在 Telegram

✨ Part Of @OfficialCodingExpert Dive into the world of computer science, programming, and coding challenges. Sharpen your skills, expand your knowledge, and embark on a journey of continuous learning. Stay tuned for daily quizzes!

显示更多
1 551
订阅者
+124 小时
+17 天
无数据30 天
帖子存档
14. What will be the output of the following JavaScript code?

var a = 4;
var b = 1;
var c = 0;
if (a === b)
    document.write(a);
else if (a === c)
    document.write(a);
else
    document.write(c);

What will be the output of the following JavaScript code?
Anonymous voting


var grade='A';  
var result=0;  
switch(grade)
{  
    case 'A':  
        result+=10;  
    case 'B':  
        result+=9;  
    case 'C':  
        result+=8;  
    default:  
        result+=0;  
}  
document.write(result);

What will be the output of the following JavaScript code?
Anonymous voting


var B = 65; // ASCII value of A
var grade = B;
var result = 0; // Initialize result here
switch(grade) {
    case 'A': {
        result += 10; 
        break;
    } 
    case 'B': {
        result += 9;
        break;
    }  
    case 'C': {
        result += 8;
        break;
    }  
    default:  
        result += 0;  
}  
document.write(result);

What will be the output of the following JavaScript code?
Anonymous voting

let a = 1;
if (a > 10) {  
    document.write(10);  
} else {
    document.write(a > 10);  
}

The enumeration order becomes implementation dependent and non-interoperable if ___________
Anonymous voting

What happens in the following javaScript code snippet?
Anonymous voting

var count = 0;
while (count < 10) 
{
     console.log(count);
     count++;
}

. In the following switch syntax, the expression is compared with the case labels using which of the following operator(s)? switch(expression) { statements }
Anonymous voting

The “var” and “function” are __________
Anonymous voting

When an empty statement is encountered, a JavaScript interpreter __________
Anonymous voting

Which of the following measurement is relative to font-size of the root element?
Anonymous voting

Which of the following measurement is relative to 1% of the height of the viewport?
Anonymous voting

Which of the following measurement is relative to 1percentage of the width of the viewport?
Anonymous voting

Which of the following measurement is relative to 1percentage of viewport’s larger dimension?
Anonymous voting

Which of the following measurement defines a measurement relative to a font’s x-height?
Anonymous voting

Which of the following measurement defines a measurement in pixels?
Anonymous voting

Which of the following measurement defines a measurement in inches?
Anonymous voting