Computer Science Principles - Instructional Cycle 1

Ace your homework & exams now with Quizwiz!

The most commonly used language for video games is:

C++

Which statement describes the differences between compiled and interpreted languages?

Compiled languages first create a file to run, and interpreted languages execute statements directly.

Which software paradigm focuses on responding to input instead of a step-by-step approach?

Event-driven

Each programming language belongs to only one category of languages.

False

Event-driven programming executes in an order determined by the programmer.

False

Every brand of computer requires a different high-level language.

False

Functional programming is based on the use of loops.

False

Object-oriented languages are more focused on algorithms than data.

False

The design phase is the longest phase of the Software Development Life Cycle.

False

The same assembly language works on all computers.

False

There are about 7,000 different programming languages.

False

Marissa wants to work in web development, creating the parts of webpages that the users see and interact with. Which of these search strings should Marissa use when she looks for a job?

Frontend development.

Which of these is a disadvantage of using a functional language?

Functions can be difficult to understand.

Which group of languages is used to create most web pages?

HTML, CSS, JavaScript

Which software is used to track help desk tickets?

IT service management

To execute a Python program from a file, what button needs to be pressed?

Run

Which of the languages is used to query, store, and retrieve data from a database?

SQL

A company will be designing software to control aircraft, which means that minimizing risk is the highest priority. Which development methodology would be most appropriate?

Spiral

The main language for developing Apple iOS and OS X apps is:

Swift

Determinations about which hardware, programming language, and algorithms the software will use are part of which portion of the software development life cycle

design

The ability to use a smartphone to pay for a purchase is an example of how computing has changed:

financial transactions.

Which one of these is an acceptable variable name?

gradeLevel

A computer monitor, keyboard, and printer are examples of:

hardware.

The main purpose of customer support is to:

help users operate software.

Lei wants to learn a programming language that is simple of beginners. She is browsing through an online bookstore. Which of these categories should Lei look in?

high-level languages.

Which of these is most similar to a human language?

high-level languages.

A variable in a programming language:

holds a value.

Sequence, selection, and iteration are part of:

imperative languages.

Which of these variables is legal?

item4

Machine Language and assembly language are examples of:

low-level languages.

A new software program is able to learn from its environment. This is an example of:

machine learning.

Months after its release, an update is sent out to people who have purchased a new game in order to improve the security of the credit card numbers that users enter in order to buy items in the game. This update is an example of which phase of the software development life cycle?

maintenance

Which of these is a correct input statement?

name = input("What is your name?")

Which software paradigm focuses on individual elements of a problem instead of a step-by-step approach?

object-oriented

Adil wants to replace the software that controls the basic functions of his computer. Which of these should he search for at the online store he is browsing?

operating systems

What is the purpose of pseudocode?

planning a program

Which of these lines of code will print out "Welcome to Boston, Mei!"?

print("Welcome to Boston, Mei!")

Which of these is a convention for naming variables?

separate words with an underscore

The most popular operating systems are:

single-user, multitasking.

Browsers, databases, and games are examples of:

software.

The SMART approach to scope means that a plan is:

specific, measurable, attainable, relevant, and timely.

A company will be designing software to control aircraft, which means that minimizing risk is the highest priority. Which development methodology would be most appropriate?

spiral

At the end of this program, what data type will the variable y have? y = 14.5 y = y - 0.5 print(y) y = "Max" print(y)

string

Amara wants to buy new antivirus software. Which tab should she click on at the website she is shopping at?

system software

Which of these phases of the software development life cycle is done immediately after developing the software?

testing the software

In an untyped language:

the type of the variables does not need to be defined by the programmer.

An advantage of a visual language is that:

there are no syntax errors.

What is the function of a compiler or an interpreter?

to change a high-level language to machine code.

When is typecasting used?

to combine one data type with another

The purpose of natural language programming is:

to instruct a computer using plain English.

This line of code is part of which kind of language? int date = 13;

typed.

This line of code is part of which kind of language? name = "Julio"

untyped.

Which of these is an example of machine language?

0010 0001

What will be the output when this program is run? y = 14 print(y)

14

Which of these would have the data type integer?

16

In the future, programming languages are likely to include more:

Natural language processing.

Classes are used in:

Object-oriented languages.

A software team prefers to develop software in a step-by-step manner. Which software paradigm are they likely to prefer?

Procedural

Jacob wants to learn how to create programs that run on a smartphone. Which webinar will be most useful to him?

Programming New Apps

Most schools teach _____ as a first computer language.

Python

Which of the statements is true?

Python is executed with both a compiler and an interpreter.

Which of the statements describes an interation?

When a certain condition is met, a block of code is repeated.

Which of these statements describes an iteration?

When a certain condition is met, a block of code is repeated.

Which of these is an example of assembly language?

3 ADD 9

HTML is:

A declarative language.

Which software development methodology involves breaking a larger project down into 'sprints'?

Agile

Why is typecasting used in this program? date = 23 print("Today's date is" + str(date))

If the variable wasn't a string, there would be an error message.

What is the difference between imperative and declarative languages?

Imperative languages focus on "how;" declarative languages focus on "what."

Which of these statements about pseudocode is true?

Indentation is used with loops and if-statements.

Why is JavaScript used to create web pages?

It allows web pages to be interactive.

Why is the language R used in the healthcare industry?

It can process large amounts of data.

What is a disadvantage of writing code in machine language?

It is extremely difficult for humans to understand.

Which of these statements is true of the programming language called R?

It is used for computing and analyzing statistics.

Which of these statements is true for an interpreted language?

It is usually easier for a beginner to learn.

Which of these statements is true for a compiled language?

It usually runs more quickly than in an interpreted language.

Which software methodology is best when a client is known for repeatedly making changes to their functionality requirements during the development process?

Iterative

The Android OS is written in:

Java

______ is the most-used language for developing apps.

Java

What problem will prevent this program from working correctly? x = input("Input a number: ") y = input("Input a second number: ") z = x + y print("The sum of your numbers is", z)

The variables are treated as strings.

Which of these is true of blank lines in Python?

They should be used to improve readability.

A program is a list of instructions that a computer uses to accomplish a task.

True

An accumulator stores values for mathematical operations.

True

An algorithm usually needs to be tested with at least several different sets of data.

True

An argument is a piece of data that a method needs to work.

True

An object is an instance of a class.

True

In Python, comments begin with the # symbol.

True

Object-oriented languages are a subgroup of imperative languages.

True

Procedural languages are a subgroup of imperative languages.

True

Recursion means that a function calls itself.

True

In which development methodology is the software tested only once, after everything has been coded?

Waterfall

Which of these is the best analogy for a variable?

a mailbox.

What is the purpose of the <-- or = symbol in pseudocode?

an assignment statement.

Which of these is input?

an email address typed in by a website's user

What will be the output when this program is run? prnit("Hello, friend.")

an error message

An employee's weekly paycheck is created with:

automated billing systems software.

Machine language consists of:

binary numbers.

The main purpose of HTML is:

building a webpage.

In Python, print is a:

built-in function.

What will the output of this program be? x = 14 print(type(14))

class 'int'

All of your photographs are stored by a company that allows you access to them from any device, anywhere in the world. This is an example of:

cloud computing.


Related study sets

CELL STRUCTURE AND FUNCTION: PARTS II & III // LAB EXAM #3

View Set

EMT Module 5 TRAUMA Quiz Questions

View Set

Forensics Exam #4 Chapters 17, 18

View Set