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 代碼
刪除
恢復自動保存:
?