1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vekshin1
4 years ago
6

Unit 3 Computer Programming Study Guide

Computers and Technology
1 answer:
andriy [413]4 years ago
3 0

FUNCTION- a group of instructions that is often repeated

DEBUG- to analyse a piece of code and ensure there is no errors

SEQUENCING- placing code in a specific order(/sequence)

LOOP- doing something over and over again until a requirement is met

REPEAT- performing the same tasks again and again

CONDITIONALS- certain requirements

VARIABLE- something that is defined in a piece of code


A PROGRAMMER IS TO A COMPUTER AS A TEACHER IS TO: A student

A GOOD ALGORITHM MUST BE: Efficient and easy to understand

IMAGINE WRITING A PROGRAM THAT INSTRUCTS A BIRD HOW TO TAKE OFF, FLY AND LAND. WHAT FUNCTION IS LIKELY TO BE LOOPED? The fly function as a bird flies a longer period of time

WHICH OF THE FOLLOWING IS MOST SIMILAR TO A FUNCTION? *no choices so unable to answer*

WHAT DO VARIABLES AND FUNCTIONS HAVE IN COMMON? They both have to be defined


8. THE MAIN CAUSE OF BUGS IN CODING IS: Human error

9. LIST THE FOLLOWING IN ORDER FROM THE SIMPLEST TO MOST COMPLEX:

  1. PROGRAM
  2. FUNCTION
  3. STEP

10. IF A PROGRAM HAS GONE THROUGH MANY ITERATIONS, WHAT MUST BE TRUE? A condition(?)

11. What is a benefit of DRYing up code? c. It saves programmers time

12. A statement in a function can be most closely compared to: a. A step in a recipe

T/F: ARE THE SOLUTIONS PROVIDED TRUE? *no choices so unable to answer*


Hopefully this helped and I'm sorry I was unable to answer some questions :)

You might be interested in
1. Extract title Write a function extract_title that takes one parameter, the filename of a GenBank formatted file, and returns
trapecia [35]

Answer:

def extract_title(file):

   import re

   a =''

   with open(file,'r') as file:

       for line in file:

           a += line

       m = re.search("^(TITLE)(.*?)(JOURNAL)", a, re.M + re.S)

       print(m.groups()[1])

extract_title('new.txt')

Explanation:

The programming language used is python 3.

The function is first defined and the regular expression module is imported.

A variable is initialized to an empty string that will hold the content of the GenBank formatted file.

The file is opened and every line in the file is assigned to the string variable. The WITH statement allows files to be closed automatically.

Regular expression is used to capture all the files between TITLE and JOURNAL in a group.

The group is printed and the function is called.

I have attached a picture of the code in action.

6 0
3 years ago
Out-of-order instruction execution can cause problems because a later instruction may depend on the results from an earlier inst
scoundrel [369]

Answer:

C

Explanation:

6 0
3 years ago
January 16, 2018 Q1: This question is worth 99 points and a brainliest. It is a one part question. Medium difficulty.
Naddik [55]
Well, some countries think of the Internet like as if it was a weapon. The Internet to them does not seem like what the Internet is to us. Internet features like the Dark Web or Deep web has given them enough reasons on why they should be prohibiting it.
6 0
3 years ago
Read 2 more answers
Remember to save _____ and be certain that you have your files saved before closing out.
Natali [406]
It could be ‘save as’ or ‘your work’, not completely sure
3 0
3 years ago
What are the types of action involving data base?
Alexeev081 [22]

Answer: The DBMS is a software system that explains the four types of actions, which are defining, constructing, manipulating, and sharing databases among various users and applications.

3 0
3 years ago
Other questions:
  • Different units of CPU ?
    12·1 answer
  • There are ways to perform computer commands quickly and multiple times. <br> a. True <br> b. False
    11·2 answers
  • Type dig www.example A in order to get the IP address of www.example. What’s the TTL of the A record returned in the response? W
    9·1 answer
  • When a speaker is finished talking, you should allow for _____.
    14·2 answers
  • In which of the security mechanism does the file containing data of the users/user groups have inbuilt security?
    6·1 answer
  • DJ Davon is making a playlist for an internet radio show; he is trying to decide what 1212 songs to play and in what order they
    12·1 answer
  • The sameNumber method checks to see if the number of words in the phrase, numwords, is the same number of words contained in the
    5·1 answer
  • If you said the bottom margin, you are talking about what?
    13·2 answers
  • The Binder Prime Company wants to recognize the employee who sold the most of its products during a specified period. Write a qu
    12·1 answer
  • question 5 you need to find the internet protocol (ip) address for a website. which command do you use on a windows system?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!