0% found this document useful (0 votes)
8 views3 pages

Review 2023

The document contains a series of programming-related questions and tasks, covering topics such as algorithms, abstraction, mobile devices, Scrum terminology, data types, procedures, design methodologies, and code reviews. It includes definitions, examples, and explanations of various programming concepts and structures. Additionally, it addresses common coding errors and the importance of comments in programming.

Uploaded by

dannyngaming
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views3 pages

Review 2023

The document contains a series of programming-related questions and tasks, covering topics such as algorithms, abstraction, mobile devices, Scrum terminology, data types, procedures, design methodologies, and code reviews. It includes definitions, examples, and explanations of various programming concepts and structures. Additionally, it addresses common coding errors and the importance of comments in programming.

Uploaded by

dannyngaming
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

Write an algorithm in Python that will give you a while loop that will
continue until someone answers the correct value
2. What is abstraction?
a. Provide an example of high level of abstraction and a low level of
abstraction
3. Of the following which are considered mobile devices:
a. Cell phone
b. PC
c. Laptop
d. Tablet
4. Define:
a. Scrum
b. Scrum master
c. User story
d. Backlog
e. Sprint task list
f. Stand up meeting
g. User Interface
h. API
i. Version control
j. Psuedocode
k. Event driven
5. Define and provide an example:
a. Function/Procedure
b. Call statement
c. Assignment operator
d. Parameter
e. Variable
f. Decision structure
g. Iteration
h. For loop
i. While loop
j. List
k. Concatenation
l. Local variable
m. Global variable
n. Modulus
o. Element
p. Index
q. Conditional statement
r. Relational operator
s. Logical operator
t. Accumulator
u. Class
v. Objects
w. Methods
x.
6. Explain each data type:
a. Integer
b. Float
c. String
d. Boolean
7. Why do we use procedures?
8. Explain the difference of waterfall design and agile development?
Which is better and why?
9. What is wrong and why?
age = int(input(“Enter your age: “))
months = age * 12
print(“you are “ + months + “ old”)
10. What is wrong and why:
def sum(a,b,c):
return a + b + c

print(sum(2,12))
11. What is sequencing and how does it affect and algorithm?
12. Review the following code: What is wrong with it and why?
total = 0
count = 0
for i in [ 10, 20, 30, 40, 50 ]:
total = count + 1
print("The value of i is:", i)

print("The sum of all the values is:", total)


13. For a list provide the following:
a. How do you print only one element
b. How do you add an item to a list
c. What command is used to delete an item from a list
14. Fruit = [‘apple’, ‘grape’, ‘pear’]
a. Write the code to print the second item in the list
15. Review the following code, what is wrong with it and why?
items = [2, 3, 4.50, 5, 6, 2.5, 11]
for cost in items:
total = 0
total = total + cost
print 'Your bill so far is $' + str(total) + '.'
16. What is the difference between each function and why does it
matter?
def sequence2(stop):
number_list = [ ]
counter = 0
while counter < stop:
number_list.append(counter)
counter = counter + 1
return number_list
17. What is the difference between high level languages and level
languages?
18. What are comments and why and when are they important
19. What is the relationship between if, elif and else

You might also like