![]() |
Ms. Wiley |
Introduction to Programming |
||||||||
|
Black History Month Project - Assigned February 14, 2008 I. Select one computer scientist from the following link (preferably African-American): Computer Scientists of the African Diaspora . Use Microsoft Word to compose a minimum 1 1/2 double-spaced typed biography of the person. Be sure to include the following information:
Use decorative elements in your report, like page borders, and a cover page consisting of a picture of the person. II. Select one person from the following link: African-American Achievers in Modern Science. Use Microsoft Word to compose a minimum 1 1/2 double-spaced typed biography of the person. Be sure to include the following information:
III. Black Inventors: Click on the following link: Black Inventors (A to Z). Go through the list of inventors from A to Z. Select one person for each letter of the alphabet that invented something that changed or improved technology in some way. You will create a PowerPoint presentation titled: Black or African-American (your choice) Inventors (A to Z). The subtitle should be the proper heading we use in class. Your presentation should include slide designs, backgrounds, slide transitions, animation schemes, sound effects, etc. You should have the following information on each slide:
Since there are some letters that do not have a name, you may use the hyperlinks above to see if any names fit the missing letters, since many of these computer scientists were also inventors.
All About Introduction to Computer Programming - Assigned February 12, 2008 You will select from the following options to create a document that discusses QBasic and or C++ Programming.
Your document should discuss what the programming languages are all about, what you can do with them, etc. It should be very in-depth and very decorative. You will receive extra-credit if your document is printed in color.
INTRODUCTION TO PROGRAMMING
MID-TERM EXAM (2007/2008) – STUDY GUIDE
1. Software consists of all of the following: 2. The three levels of computer languages are machine, assembly, and high-level languages. 3. Machine language is… 4. The programming language that is the most English-like is high-level. 5. Structured programming is… 6. All but one of the steps below is in the programming process: 7. Before a problem can be solved, it must be thoroughly understood. 8. Flowcharts graphically represent the logic flow of the solution to a programming problem. 9. Pseudocode is an English-like description of a program’s logic that doesn’t follow strict rules for writing it. 10. Top down design… 11. An algorithm is… 12. Testing your program means to try a variety of data to determine whether the results are always correct. 13. Syntax errors occur when the programmer violates the grammatical rules of the language. 14. The 3 basic logic structures in programming are the sequence, decision, and looping structures. 15. Doing push-ups at the PE class represents a looping structure. 16. Opening an umbrella during a Sunday park walk represents a decision structure. 17. Performing simple arithmetic calculation represents a sequence structure. 18. Computer program modules are subparts within a program designed to perform a specific task. 19. A sequence of instructions that tells the computer how to solve a problem is called a program. 20. Computer instructions must be written in programming language. 21. Programming commands or reserved words in QBasic are called keywords. 22. A value that does not change during program execution is called a constant. 23. Both of these will present a constant: “25” and 25. 24. Both of these will present a variable name: V and 6$. 25. We use variable names to identify storage location. 26. A variable can contain only one value at a time. 27. The PRINT statement is used to display the results of computer processing. 28. The ELSE keyword is added to a single alternative IF to make it into a double alternative IF. 29. The INPUT statement allows the user to enter data at the keyboard while the program is executing. 30. Boolean expression always evaluates to true or false. Matching: Match each term on the left with the term from the right based on their relevance.
True or False:
36. Control structures allow us to control the order in which statements are executed.(T) 37. Boolean expressions always evaluate to true, unless it evaluates to false. (T) 38. String containing 5 characters is always larger than string containing 1 character.(T) 39. Double alternative decision structure is a decision structure in which one action is taken if the specified condition is false and another action if it is true.(F) 40. ((5>3) AND (7<9)) OR (4=6) will evaluate to what?(F) 41. We can’t compare strings and numbers. (T) 42. Strings can be compared with other strings.(T) 43. Numeric constant is a number contained in a statement. (T) 44. (NOT (3=4) ) AND ( (8>=4) OR (8=9) ) evaluates to: (F) 45. All computer processing requires some data.(T) 46. IF control structure must also include ELSE keyword.(F) 47. QBasic is one of the sophisticated programming languages of today.(T) 48. Infinite loop is a loop that executes thousands of times.(F) 49. The following is a valid QBasic statement: name = John (F) 50. One bit is equal 8 bytes.(T) Determine and indicate the output of the program segment. In question 51, assume variable X can have any numerical value. 51. IF X > 0 AND X < 0 THEN PRINT “Hi” ELSE PRINT “Good-bye” END IF a. HI b. Good-bye c. Error d. Blank Screen e. Output depends on the value of X --------------------------------------------------------------------------------------------------------------- 52. x = 55 PRINT “555” ELSE PRINT “5555” END IF a. 5 b. 55 c. 555 d. 5555 53. age = 21 drink$=”wine” ELSE drink$=”sprite” END IF PRINT “You are going to have “; drink$ a. wine b. You are going to have wine c. sprite d. You are going to have sprite --------------------------------------------------------------------------------------------------------------- 54. x = 5 y$ = “y” IF x <> 5 THEN PRINT “Nothing” ELSE IF y$ = “y” THEN PRINT “Something” ELSE PRINT “Neither” END IF END IF a. Nothing b. Something c. Neither d. Error
Access the following website http://www.tedfelix.com/qbasic and complete all of the practice program exercises. (Assigned on December 5, 2007)
Constants and Variables Exercise
Statements:
|
![]() |