100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Programming with JavaScript Questions And Answers | Latest Update | 2024/2025 | Already Passed

Rating
-
Sold
-
Pages
7
Grade
A+
Uploaded on
20-06-2024
Written in
2023/2024

Programming with JavaScript Questions And Answers | Latest Update | 2024/2025 | Already Passed 1. What function should you use to print to the screen? println 2. Which keyword is used to declare a variable in JavaScript? var 3. In the code segment: ``` a <— 10 b <— 5 c <— a+b ``` What value is stored in variable c? 15 4. Consider the code: ``` a <— 1 b <— a a <— 2 ``` What value is stored in variable b? 1 5. Which function do you call to prompt the user to enter text? readLine 6. Which function do you use to ask the user for a number in JavaScript? Both readInt and readFloat are for numbers. 7. Consider the code: ``` DISPLAY ("What is your name?") name <— INPUT() DISPLAY ("Hello") DISPLAY (name) ``` If the user inputs "Karel", what is displayed? What is your name? Karel Hello Karel 8. What will be displayed after running the following code? ``` a <— "Welcome!" DISPLAY (a) b <— "¡Hola!" DISPLAY (b) a <— b b <— "Bonjour!" DISPLAY (a) DISPLAY (b) ``` Welcome! ¡Hola! ¡Hola! Bonjour! 9. If the user inputs "P", what is displayed? ``` DISPLAY ("Enter a character.") symbol <— INPUT () DISPLAY (":") DISPLAY ("c") DISPLAY (symbol) ``` Enter a character. : c P 10. What will the following code print to the screen? ``` println(2+2); ``` 4 11. What symbol is used for division in JavaScript? /

Show more Read less
Institution
Programming With JavaScript
Course
Programming with JavaScript









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Programming with JavaScript
Course
Programming with JavaScript

Document information

Uploaded on
June 20, 2024
Number of pages
7
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
SterlingScores Western Governers University
View profile
Follow You need to be logged in order to follow users or courses
Sold
407
Member since
1 year
Number of followers
41
Documents
11900
Last sold
19 hours ago
Boost Your Brilliance: Document Spot

Welcome to my shop! My shop is your one-stop destination for unlocking your full potential. Inside, you\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'ll find a treasure collection of resources prepared to help you reach new heights. Whether you\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'re a student, professional, or lifelong learner, my collection of documents is designed to empower you on your academic journey. Each document is a key to unlocking your capabilities and achieving your goals. Step into my shop today and embark on the path to maximizing your potential!

Read more Read less
4.1

87 reviews

5
51
4
12
3
12
2
4
1
8

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions