Preview

Computer Science Assignment 1

Satisfactory Essays
Open Document
Open Document
290 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Computer Science Assignment 1
1. What is code? (1.0 pts) Text that is written in a human-readable programming language that a computer can also interpret
2. What does the Python(command line) interpreter’s command prompt look like? (0.5 points) Like a standard command prompt. Black screen, white writing.
3. Name at least one way to deal with a frozen window. (0.5 points) Close the window and try again.
4. What does the reset() command do? (1.0 points) Erases everything drawn by the turtle and moves the turtle back to its starting position
5. What is an argument? (1.0 points) A letter, number, word or combination of those that a command needs in order to work.

Lesson 2 (4.0 points)
1. What is the radius of a circle? (1.0 points) The distance from the center of the circle to the line of the circle.
2. In the circle() command, what is the steps argument? (1.0 points) The radius of the circle.
3. In the forward() command, what does the number argument inside the parentheses do? (1.0 points) Tells how many pixels forward the turtle will move.
4. What would the command left(-720) do? (1.0 points) Spin the turtle clockwise in two full circles.

Lesson 3 (4.0 points)
1. What is IDLE used for? (1.0 points) Used to run code and programs written in Python.
2. What does the exitonclick() command do? (1.0 points) Turtle command that keeps the turtle graphics window open until someone clicks it with a mouse
3. What is a shell? (1.0 points) A software interface that stands between the user and the lowest-level software program of a computer system, making it easier for the user to work with that computer system.
4. What is a way to tell the Python Shell from the text editor? (1.0 points) A text editor can save the code you write. Python Shell has a command line prompt, and the text editor

You May Also Find These Documents Helpful

  • Better Essays

    Nt1310 Unit 4

    • 3614 Words
    • 15 Pages

    13. If the following program (myprog) is run from the command line as myprog monday tuesday wednesday thursday? What would be the output?…

    • 3614 Words
    • 15 Pages
    Better Essays
  • Satisfactory Essays

    NT1310 Unit 3 Homework

    • 1253 Words
    • 5 Pages

    tem. Each of these numbers identifies the command running in the background. It’s useful to know what jobs the program has completed and which ones are still running. The utility to use to run more than one command is “&”.…

    • 1253 Words
    • 5 Pages
    Satisfactory Essays
  • Powerful Essays

    Comp3652 Unit 2 Assignment

    • 1090 Words
    • 5 Pages

    been provided with the source code for Turtle or TurtleDisplay, so you may not edit the…

    • 1090 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    CNE 251 Lab 07

    • 548 Words
    • 2 Pages

    9) The output from the command listed lines 1 and 3 from the hosts file.…

    • 548 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    4) Assume that a pseudocode program contains the following module: Module display( Integer arg1, Real arg2, String arg3) Display " Here are the values:" Display arg1, " ", arg2, " ", arg3 End Module…

    • 1580 Words
    • 11 Pages
    Better Essays
  • Better Essays

    The Loggerhead Sea Turtle is a beautiful creature that many marine biologists in today’s world love to study. It is the world’s largest hard shelled turtle, belonging to family Cheloniidae. Its scientific name is Caretta Caretta. The Loggerhead can be found all around the world in many different habitats. Although they are the most abundant marine turtle in the U.S., they have been on the threatened species list since 1978. This is due to many factors, a couple being: pollution and trawling.(National Geographic)…

    • 1458 Words
    • 6 Pages
    Better Essays
  • Satisfactory Essays

    •Name and describe the only language that computers understand and explain how the instructions that people write for computers get into that form…

    • 322 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    17. What utility connects standard output of one command to standard input of another command?…

    • 1070 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    The digital divide is considered the gap between those who are technologically inclined and those who aren’t. The internet has many uses and can simplify the way many everyday tasks are carried out. There are different points-of-view of how this affects our society and how the divide is gauged as well as how to bridge the divide internationally.…

    • 1309 Words
    • 2 Pages
    Powerful Essays
  • Powerful Essays

    Machine language consists of a sequence or pattern of bits that are all zeros & ones. Each combination or sequence is an instruction to the computer and is the only language a computer understands. However, this is a very difficult language for humans to read or write (Venit &…

    • 1318 Words
    • 6 Pages
    Powerful Essays
  • Better Essays

    Their armored appearance assists with camouflage along with their black and gray coloring. They are fascinating creatures with long life spans, unique characteristics such as their worm like tongue, the ability to expel air quickly, and their ability to remain under water for long periods of time while controlling their PH balance to decrease carbon dioxide. (Ukessays.com, 2014) Unfortunately due to hunting, habitat depletion and slow reproduction rates the Alligator Snapping Turtle is not as abundant as it once was. Over time the Alligator Snapping Turtle has adapted to its surroundings, using its unique characteristics to survive; however those adaptions soon will no longer be enough to sustain the…

    • 2297 Words
    • 10 Pages
    Better Essays
  • Satisfactory Essays

    1) When working with a sequential access file, you can jump directly to any piece of data in the file without reading the data that comes before it.…

    • 544 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    Small Basic

    • 9811 Words
    • 40 Pages

    This is the Small Basic Environment, where we’ll write and run our Small Basic programs. This environment has several distinct elements which are identified by numbers. The Editor, identified by [1] is where we will write our Small Basic programs. When you open a sample program or a previously saved program, it will show up on this editor. You can then modify it and save if for later use. You can also open and work with more than one program at one time. Each program you are working with will be displayed in a separate editor. The editor that contains the program you are currently working with is called the active editor. The Toolbar,…

    • 9811 Words
    • 40 Pages
    Powerful Essays
  • Satisfactory Essays

    10. What is the importance of shell? (without shell, a user cannot do anything on the system because it acts as the interface between the user and the operating system)…

    • 518 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Socket Programming

    • 1283 Words
    • 6 Pages

    – – – – – – – – – – – – file : load the program for debugging kill : stop the program for debugging list : list the source code of the program for debugging break : set a break point in the source program run : run the program to be debugged next : execute a single line of the program, but not go into it step : execute a single line of the program, but go into it quit : quit the gdb to shell print : display the…

    • 1283 Words
    • 6 Pages
    Powerful Essays