Save
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

Compsci 111 Quiz 1

Lecture 1 and 2

QuestionAnswer
what are the fundamental ideas of comp sci? -Information processing -Automation -Efficiency -Algorithms
what is a pseudocode? a notation resembling a simplified programming language, used in program design
immediate mode? python code written in interpreter window gets evaluated immediately
script mode? blank file, doesn't run immediately
why python? -easy to understand -popular and widely known -pseudocode that runs
What is the logistic flow of python program? 1) Read an expression 2) Evaluate it 3) Print result (Repeat)
what is scripting? -involves writing code in a file -transferable to other machines and can be used later
what does IDE stand for? Integrated Development Environment
what is a program? sequence of instructions that specifies how to perform a computation
difference between an algorithm and a program? -algorithm: thinking of way to solve an issue -program: very literal
What are the components of a program? -Input -Output -Computation -Conditional Execution -Repetition
Input Get data from source and then we process the data so its usable by the program
Output What you want to display to the user. A signal sent as a result of your program
Computation Some type of computation or numerical analysis Normally contains algorithmic process
Conditional Execution Checking for conditions w/in the program and executes the correct sequence of statements. Some code may not be executed (hence conditional)
Repetition Performing the action multiple times and normally controlled by conditional execution ->reduces the amount of code needed to run
How literal are programs? VERY literal. Must explain step-by-step
Natural Language vs Formal Language Normal: language people speak, evolves naturally Formal: has clear rules to express computation
Semantics ex) X = 2 Y = 2 + 3 // 2 Strings-> "this is my python string"
What are the two ways to comment? Using # or Docstrings
What's a docstring? Not evaluated b/c its a type of comment. Appears at the beginning of files or functions/methods Important b/c it allows you to understand the file
Python Process IDLE editor ->Python source code Python compiler ->Byte code +Input from user Python Virtual Machine(PVM) ->output
Structure of Python Program Docstring Import Statements Input Statements Computation Statements Output of Statements
What do all Python files end with? .py
Created by: carzec
Popular Computers sets

 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards