Question and answers
Challenge #1 Questions Answe
Your Notes (Editable) Your Answers
1. Which of the following statements describes Computer Science?
The study of problems with solutions
The study of problems with no solutions
The study of algorithms
All of the above
2. What do you call a a specific instruction designed to do a task?
Command
Process
Task
Instruction
None of the above
3. In computer science, algorithm refers to a special method useable by a computer for solution of a
problem.
True
False
4. 1. Which of the following is incorrect?
Algorithms can be represented:
as pseudo codes
as syntax
as programs
as flowcharts
None of the above
1/31
,5/16/2019
5. Which of the following industries does NOT need computer scientists?
Medical
Banking
Education
Space Exploration
None of the above
6. What is the metric for analyzing the worst-case scenario of algorithms in terms of scalability and
e iciency called?
Parallelism
Big Data
Recursion
Big O Notation
7. Which of the following statements IS TRUE about Computer Scientists?
They design so ware but not computers
They apply innovation and expertise to complex problems
They are just programmers
All of the above
None of the above
8. The act of making something happen on its own, i.e. without any external help or human interferen
is called?
Engineering
Abstraction
Automation
Simulation
Challenge #2 Questions Answe
Your Notes (Editable) Your Answers
1. Which of the following is not a data type?
Symbolic Data
Alphanumeric Data
Numeric Data
None of the above
2/31
,5/16/2019
2. What are the entities whose values can be changed called?
Constants
Variables
Modules
Tokens
None of the above
3. Which of the following is not an element of a programming language?
File I/O
Functions
Environment setup
Basic syntax
None of the above
4. Which of the following best represents the set of features that should be present in a programming
language for it to be useful in algorithm implementation?
Data structures, variables, abstract data types and binary digits
Assignment operators, arithmetic operators and logical operators
Ability to execute instructions one a er the other, statements for expressing
conditional logic and functionality to repetitively execute instructions
Strings, integers, lists and dictionaries
5. Before source code can be compiled, it has to be ___
parsed
saved in a separate file
viewed in a command prompt
capitalise
None of the above
6. Which of the following programming languages requires a compiler?
Python
Java
PHP
Lisp
None of the above
3/31
, 7. Which of the following is the best example of automatic type conversion in JavaScript?
"5" + cats = 5 cats
"5" + "cats" = "5 cats"
5 + "cats" = "5 cats"
"5" + cats = "5 cats"
8. Ask user for a number, ask user for another number, multiply the two numbers, print result..What
you call this set of instructions?
PHP
An Algorithm
A Class
A compliler
9. What is object-oriented programming?
A type of programming involving a structured method of creating programs
A type of programming not in use anymore
A type of programming involving data types representing data structures
A type of programming using only numbers
None of the above
10. How tdo you append a value to an array of Java Script?
arr[arr.length+1] = new Arrays()
arr[arr.length*1] = value
arr[arr.length] = value
arr[arr.length-1] = value
11. Beginner programmers should start with a development environment
True
False
Challenge #3 100% 4/4T
Solution Your Tests
1 def number_game(x,y):
2 # code here!
3 num= []
4
5
if x > y:
for i in range(y,x):
6 if i%2 == 0:
7 num.append(+i)
4/31