Quiz 1 Flashcards

1
Q

How is numeric data stored in memory? Character data

A

numeric-binary
negative numbers- two’s complement
floating point
ASCII

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an algorithm

A

A set of well defined logical steps that must be taken to perform a task.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the steps in the program cycle or machine cycle?

A

fetch, decode, execute, store

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

List three data types in Python

A

Float, integer, strings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the steps in the program development cycle?

A

Design a program, write the code, correct syntax errors, test program, correct logic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are some tools you can use during the design a program step in the program development cycle?

A

pseudocode, flowcharts, algorithms, IPOs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Coding: write a python statement that assigns the sum of 10 and 14 to the variable total.

A

total = 10 + 14

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Write a snippet of code that would prompt the user for their favorite college football team and assigns the user’s input to a variable named team.

A

team = input( “Please name your favorite football team: “)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Write a statement that prompts the user for a number and casts the input as a float.

A

float( input (“Please enter a number: “))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Write a statement that prints the following text: Swoop says “It’s time to fly.”

A

print(‘'’Swoop says, “It’s time to fly.” ‘’’)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

10.0/(44%10/4)

A

10.0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

68/11*2.5+30/9

A

18.787878787878785

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

42/5(10.52)

A

176.4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly