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コード
削除
自動保存:
を復元しますか?