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
Delen
Delen
Delen
door
Gmccormackgcc
Inhoud Bewerken
Afdrukken
Embedden
Meer
Toewijzingen
Scorebord
Meer weergeven
Minder weergeven
Dit scoreboard is momenteel privé. Klik op
Delen
om het publiek te maken.
Dit scoreboard is uitgeschakeld door de eigenaar.
Dit scoreboard is uitgeschakeld omdat uw opties anders zijn dan die van de eigenaar.
Opties Herstellen
Quiz
is een open template. Het genereert geen scores voor een scoreboard.
Inloggen vereist
Visuele stijl
Lettertypen
Abonnement vereist
Opties
Template wisselen
Alles weergeven
Er zullen meer templates verschijnen terwijl je de activiteit gebruikt.
Open resultaten
Kopieer link
QR-code
Verwijderen
Automatisch opgeslagen activiteit "
" herstellen?