1) Which HTML tags are used for JavaScript? a) <javascript> and </javascript> b) <script> and </script> c) <js> and </js> 2) How can you add a comment in JavaScript? a) <!--This is a comment--> b) This is a comment c) // This is a comment 3) What name is used to describe whole numbers, like 5, 65, and 22? a) String b) Floating Point c) Integer 4) What name is used to describe decimal numbers, like 5.8, 65.76, and 22.43? a) String b) Floating Point c) Integer 5) How do you declare a JavaScript variable? a) variable carName; b) v carName c) var carName; 6) Which operator is used to assign a value to a variable? a) = b) * c) == 7) Which of the following is used to represent "not equal to" in JavaScript? a) <> b) .NE. c) != 8) What is the pseudocode keyword for Input? a) Display b) Calc c) Get 9) Which operator is used to compare values in JavaScript? a) = b) * c) == 10) Which of the following commands is associated with the selection construct? a) if b) function c) while 11) What is the pseudocode keyword for Output? a) Display b) Calc c) Get 12) What is the pseudocode keyword for Process? a) Display b) Calc c) Get 13) Which of these is a visual design tool for programmers? a) Flowchart b) Pseudocode c) Stepwise Refinement 14) Which of the following commands is associated with the iteration construct? a) if b) switch c) while 15) Which of these is a legal input command? a) var name = prompt("What is your name?"); b) alert(name); c) do { 'What is your name?' } while (name < 0); 16) What logical danger should be avoided when creating a do .. while loop? a) Misplacing Syntax b) Not incrementing the counter and creating a infinite loop c) Using an if statement inside the loop 17) What is the general syntax of a do .. while loop? a) do { code } while (condition) b) while (condition) { code } c) do (condition) { code } (condition) 18) Which of these shows a legal function call? a) call menu() b) menu(); c) do menu(); 19) Which type of testing looks at inputs and outputs and not the code? a) Alpha Testing b) Black Box Testing c) White Box Testing 20) Which type of testing looks at the code when developing test data? a) Alpha Testing b) Black Box Testing c) White Box Testing
0%
Computer Programming and JavaScript
共享
共享
共享
由
Gmccormackgcc
编辑内容
打印
嵌入
更多
作业
排行榜
显示更多
显示更少
此排行榜当前是私人享有。单击
,共享
使其公开。
资源所有者已禁用此排行榜。
此排行榜被禁用,因为您的选择与资源所有者不同。
还原选项
随堂测验
是一个开放式模板。它不会为排行榜生成分数。
需要登录
视觉风格
字体
需要订阅
选项
切换模板
显示所有
播放活动时将显示更多格式。
打开成绩
复制链接
QR 代码
删除
恢复自动保存:
?