fundamentals of computing

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Which of these is a valid Karel command? a. move() b. move(); c. move; d. MOVE

b. move();

Abstraction is ... a. Unreal coding b. removing details to reuse code. c. Non concrete statements d. All of the above

b. removing details to reuse code.

What is the correct HTML for inserting a background image? a. <body style="background-image:url(background.gif)"> b. <body background="background.gif"> c. <body style= background:"background.gif"> d. <background img="background.gif">

a. <body style="background-image:url(background.gif)">

What is the correct HTML tag for inserting a line break? a. <br> b. <div> c. <span> d. <break>

a. <br>

What is the correct tag for the largest heading? a. <h1> b. <heading> c. <h6> d. <head>

a. <h1>

Which tag separates single items in a list? a. <li> and </li> b. <hl> and </hl> c. <ol> and </ol> d. <ul> and </ul>

a. <li> and </li>

Which of these tags are all <table> tags? a. <table><tr><td> b. <table><thead><tdata> c. <thead><body><tr> d. <table><tr><tt>

a. <table><tr><td>

CSS selectors can be .... a. A tag name, an ID or a class b. A class, an ID or a title c. Any HTML tag that has style attribute d. A tag name, a class or a title

a. A tag name, an ID or a class

Which STEM field is the only one to have more annual jobs than graduates? a. Computing b. Mathematics c. Engineering d. Life Sciences

a. Computing

Which of these commands does Karel NOT know? a. turnLeft(); b. turnCircle(); c. putBall(); d. takeBall();

b. turnCircle();

What keyword do you need to use to define a variable in JavaScript? a. variable b. var c. int d. All of the above

b. var

For HTML tables, <td> means create a... a. TABLE HEADING b. TABLE c. TABLE ROW d. TABLE DATA

d. TABLE DATA

For HTML tables, <tr> means create a... a. TABLE b. TABLE HEADING c. TABLE DATA d. TABLE ROW

d. TABLE ROW

What DOES NOT belong in the start function? a. Comments about what the code does b. Control Structures (for loop, while loop, if/else statement) c. Commands for Karel d. Function definition

d. function definition

What function do you need to call to get the height of the screen? a. height(); b. screenHeight(); c. getScreenHeight(); d. getHeight();

d. getHeight();

In a graphics canvas, what are the coordinates of the bottom right corner of the window? a. 0, 0 b. 0, getWidth() c. getHeight(), getWidth() d. getWidth(), getHeight()

d. getWidth(), getHeight()

What commands does Super Karel know that regular Karel does not? a. turnRight and jump( ) b. turnAround() and jump( ) c. turnLeft( ) and jump( ) d. turnAround( ) and turnRight( )

d. turnAround( ) and turnRight( )

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? a. var applesToBuy = readLine("How many apples would you like? "); b. var applesToBuy = println("How many apples would you like? "); c. var applesToBuy = nextInt("How many apples would you like? "); d. var applesToBuy = readInt("How many apples would you like? ");

d. var applesToBuy = readInt("How many apples would you like? ");

Which of the following choices is a properly formed JavaScript variable name, meaning it is both legal in the JavaScript language and considered good style? a. userAge b. user_age c. User age d. UserAge

a. userAge

A store has 20 apples in its inventory. How can you store this information in a JavaScript variable? a. var numApples = 20; b. var num apples = 20; c. var numApples == 20; d. 20 = numApples;

a. var numApples = 20;

We want to flip a coin until we get 3 heads in a row. What kind of loop should we use? a. while loop b. loop and a half c. infinite loop d. for loop

a. while loop

What is the proper format for a single line comment in CodeHS? a. This is a comment b. // This is a comment c. /* This is a comment d. <comment>This is a comment</comment>

b. // This is a comment

What is the RGB code for Red? a. 0, 0, 255 b. 255, 0, 0 c. 0, 255, 0 d. None of the above

b. 255, 0, 0

What is the preferred way for adding a background color in HTML? a. <background>yellow</background> b. <body style="background-color:yellow;"> c. <background style= #yolo> d. <body background="yellow">

b. <body style="background-color:yellow;">

What is the correct HTML for inserting an image? a. <img alt="MyImage">image.gif</img> b. <img src="image.gif" alt="MyImage"> c. <img href="image.gif" alt="MyImage"> d. <image src="image.gif" alt="MyImage">

b. <img src="image.gif" alt="MyImage">

How do you add an image in HTML? a. <a href> b. <img src> c. <img href> d. <a src>

b. <img src>

What does URL stand for? a. Underlying Request Layout b. Uniform Resource Locator c. Usable Render List d. Underlying Response Layout

b. Uniform Resource Locator

To add a rectangle named rect to the screen, which command do you need to give? a. new(rect); b. add(rect); c. put(rect); d. create(rect);

b. add(rect);

We want to print "CodeHS is the best" exactly 25 times.What control structure should we use? a. break statement b. for loop c. while loop d. if statement

b. for loop

You are splitting up all of your apples equally between 3 people. Which statement below will calculate how many apples will be left over? a. var leftOver = numApples / 3; b. var leftOver = numApples % 3; c. var leftOver = 3 % numApples; d. var leftOver = 3 / numApples;

b. var leftOver = numApples % 3;

Which of the following is an ID selector? a. .callout b. .margin c. #left d. Id#

c. #left

If I want to use the class "header" as a selector in CSS, how should I begin the rule? a. #header { b. header { c. .header { d. class header {

c. .header {

Choose the correct HTML tag to make a text bold: a. <bold> b. <em> c. <b> d. <s>

c. <b>

Which tag do you use to make a numbered list? a. <li> b. <nl> c. <ol> d. <ul>

c. <ol>

Which tag do you use to make a bulleted list? a. <bl> b. <ol> c. <ul> d. <li>

c. <ul>

Which of the following is an example of metadata about a webpage? a. The title of the webpage b. The body of the webpage c. An <h1> tag on the webpage d. All of the above

c. An <h1> tag on the webpage

What does CSS stand for? a. Creative Style Sheets b. Colorful Style Sheets c. Cascading Style Sheets d. Computer Style Sheets

c. Cascading Style Sheets

How can we teach Karel new commands? a. For loop b. While loop c. Define a new function d. All of the above

c. Define a new function

What does HTML stand for? a. Hyper Terminal Markup Language b. Home Tool Markup Language c. Hyper Text Markup Language d. Happy Terminal Mannequin Lipstick

c. Hyper Text Markup Language

For HTML tables, <th> means create a... a. TABLE b. TABLE DATA c. TABLE HEADING d. TABLE ROW

c. TABLE HEADING

What are the coordinates of the center of the window? a. getHeight() / 2, getWidth() / 2 b. getHeight() - getWidth(), getWidth() - getHeight() c. getWidth() / 2, getHeight() / 2 d. getWidth(), getHeight()

c. getWidth() / 2, getHeight() / 2

What function do you need to call to ask the user of the program to enter text? a. enterText b. println c. readLine d. readln

c. readLine

What is the RGB code for White? a. 0, 0, 0 b. 255, 255, 0 c. 0, 255, 0 d. 255, 255, 255

d. 255, 255, 255

What is the correct HTML for creating a hyperlink? a. <a url="http://www.w3schools.com">w3schools.com</a> b. <a src="http://www.w3schools.com">w3schools.com</a> c. <a name="http://www.w3schools.com">w3schools.com</a> d. <a href="http://www.w3schools.com">w3schools.com</a>

d. <a href="http://www.w3schools.com">w3schools.com</a>

Choose the correct HTML tag to make a text italic: a. <it> b. <p> c. <italic> d. <i>

d. <i>

Which of these are true about RGB? a. RGB describes colors in terms of light b. R= Red, G= Green, B=Blue c. RGB is used on computer screens d. All of the above

d. All of the above

Why do we want our code to be "reusable"? a. To save time b. To avoid solving the same problem over and over again c. To avoid writing similar code multiple times d. All of the above

d. All of the above

Why do we write functions? a. Make our code easier to understand b. Avoid writing repeated code c. Make our code reusable d. All of the above

d. All of the above

To ask the user of the program for a number, which function should you use? a. readLine b. readInt c. readFloat d. Both readInt and readFloat are for numbers.

d. Both readInt and readFloat are for numbers.

Who/What is Karel? a. Karel is made up b. Karel is nobody c. Karel is a person d. Karel is a dog

d. Karel is a dog


Ensembles d'études connexes

Biology Chapter 12 Study Questions

View Set

Chapter 16 Exercise Technique for Alternative Modes and Nontraditional Implement Training

View Set

Current Issues 4: What is RAID 0, 1, 5, and 10

View Set