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

Fe Electrical and Computer Exam 2024

Rating
-
Sold
-
Pages
5
Grade
A+
Uploaded on
06-05-2024
Written in
2023/2024

What is top down design? Correct Answer-Top down design is a way of designing your program by starting with the biggest problem and breaking it down into smaller and smaller pieces that are easier to solve. What is the meaning of the x variable in the following code: Correct Answer-The x coordinate of the center of the circle If you were given the following variables, What line of code would print the speed in km/hr if the distance is given in km and the time is given in minutes? (Speed = distance/time) Correct Answer-println(distance/(time/60)); In a graphics canvas, what are the coordinates of the bottom right corner of the window? Correct Answer-getWidth(), getHeight() If Karel starts at Street 1 and Avenue 3 facing East, what street (row) and avenue (column) will Karel be on after this code runs? move(); move(); move(); turnLeft(); move(); Correct Answer-Street 2 and Avenue 6 How many times should you call the start function in a program? Correct Answer-0 Which general While loop definition is written correctly? Correct Answer-while (condition) { // code } You need to write a program that has Karel move 8 times and then put a ball. Which control structure do you need to use? Correct Answer-For Loop What is the output of the following program: (Assume the user enters 'Florence' then 'Fernandez'.) Correct Answer-FlorenceFernandez In the following code, we create a circle and add it to the screen. What is the meaning of the x variable? Correct Answer-The radius of the circle A store has 20 apples in its inventory. How can you store this information in a JavaScript variable? Correct Answer-var numApples = 20; What function do you need to call to get the width of the screen? Correct Answer-getWidth() You want to read input from the user to know how many apples they would like to buy. Which statement should you use to read in a number from the user? Correct Answer-var applesToBuy = readInt("How many apples would you like? "); Why do we use if/else statements in JavaScript? Correct Answer-To either do something if a condition is true or do something else. Why should a programmer indent their code? Correct Answer-Helps show the structure of the code. Easier for other people to understand by matching our code to each command. All code inside a function should be indented. You need to write a program that has Karel put down a tennis ball if the world has dimensions of 1x1. Which control structure do you need to use? Correct Answer-If Statement You need to write a program where Karel will take a ball if there is a ball present, otherwise Karel should put down a ball. Which control structure do you need to use? Correct Answer-If / Else Statement True or False ? We use the Tab Key to indent once to the right in our programming. Correct Answer-True Why do we use while loops in JavaScript? Correct Answer-To repeat some code while a condition is true. What type of error do we have when the program starts running, but doesn't do what it is suppose to do? Correct Answer-Logic Error What is the proper function to call to print to the screen? Correct Answer-println Which general "if" statement definition is written correctly? Correct Answer-if ( condition ) { //code } What symbol do you use to do division in JavaScript? Correct Answer-/ What function do you need to call to ask the user of the program to enter text? Correct Answer-readLine True or False ? A bug can be a simple fix! Correct Answer-True

Show more Read less
Institution
Fe Electrical And Computer
Course
Fe Electrical and Computer









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

Written for

Institution
Fe Electrical and Computer
Course
Fe Electrical and Computer

Document information

Uploaded on
May 6, 2024
Number of pages
5
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.
Tush3161 Chamberlain School Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
74
Member since
3 year
Number of followers
14
Documents
1870
Last sold
2 weeks ago
Nursing Test Banks and Solution manuals

My carefully curated materials are designed to help students study smarter, prepare with confidence, and succeed in their exams. With a strong focus on accuracy and up-to-date content, we ensure that each test bank meets academic standards and supports your educational goals. You can also reach me through jtutor018atgmaildotcom. I am a specialist in NCLEX BOTH RN and PN, also i provide other nursing materials

Read more Read less
5.0

149 reviews

5
147
4
0
3
1
2
0
1
1

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