AI Programming Fundamentals Python Skillup Exam Answers

- Advertisement -

AI Programming Fundamentals Python

Exam 3.1 – 5 Questions

Question 1: Python allows users to do both,

  • Object Oriented programming and C#
  • Java and C++
  • Object Oriented programming and functional programming
  • Functional programming and Java

Question 2: In Python string data is referred to as what data type?

  • “str”
  • “string data”
  • “strg-data”
  • “strng”

Question 3: Select the line that shows how a list object looks in Python.

  • {1,”two”,3.5,True,1,”two”}
  • (1,”two”,3.5,True,1,”two”)
  • 1,”two”,3.5,True,1,”two”
  • [1,”two”,3.5,True,1,”two”]

Question 4: Select the line that shows how a set looks in Python.

  • [1,”two”,3.5,True]
  • {1,”two”,3.5,True}
  • 1,”two”,3.5,True
  • “1,”two”,3.5,True”

Question 5: In Python, Dict stands for,

  • Diction
  • Dictate
  • Direction
  • Dictionary

Exam 3.2 – 5 Questions

Question 1: Strings in Python are created by enclosing characters in,

  • Only single quotes
  • Square brackets
  • Double quotes or single quotes
  • Curly brackets

Question 2: A collection of diverse type of objects that are also immutable are called,

  • Tuples
  • String data
  • Lists
  • Functions

Question 3: Which of the following would NOT be considered an arithmetic operator?

  • +
  • *
  • /
  • These are all arithmetic operators

Question 4: Logical Operators are used to return either a,

  • Table
  • List and Tuple
  • True of False
  • Sting or list

Question 5: What are the two types of functions in Python?

  • User-defined Functions and object functions
  • Built-in Functions and List functions
  • Built-in Functions and dictionary functions
  • Built-in Functions and User-defined Functions

Module 3.3 Exam – 4 Questions

Question 1: Which of the following is NOT a type of algorithm

  • Searching
  • Sorting
  • Geometric
  • Algebraic
  • Graph

Question 2: An algorithm can be defined as,

  • A set of rules to obtain the expected output from a given input.
  • A set of rules to that helps to figure out problems.
  • A complex mathamatical formula
  • A set of rules to live by.

Question 3: Select all of the tpes of sorting algorithms. Select all that apply.

  • Linear
  • Bubble
  • Jump
  • Selection
  • Insertion
  • Regression
  • Graph
  • Quick
  • Merge

Question 4: A Graph Algorithm would be a good way to describe which of the following data requirements

  • Social networking
  • COVID-19 response
  • Twitter usage
  • All of the above

Exam 3.4 – 3 Questions

Question 1: A sorting algorithm that builds the final sorted array (or list) one item at a time is called a,

  • Memory sort
  • Bubble sort
  • Insertion sort
  • Merge sort

Question 2: Compare and swapping two elements like soap bubbles is called a,

  • Bubble sort
  • Insertion sort
  • Merge sort
  • Quick Sort

Question 3: A sort that makes use of Insertion sort and Merge sort is called a,

  • Quick sort
  • Insertion sort
  • Bubble sort
  • Timsort

Exam 3.5 – 3 Questions

Question 1: What are the two categories of searches?

  • Insertion and Sorting
  • Interval and Merge search
  • Sequential and Interval Seraches
  • Sequential and Bubble Searches

Question 2: For an interval search to be the most effective, the data needs to be,

  • merged before searching
  • sequenced before searching
  • sequenced before sorting
  • sorted before searching

Question 3: A search where every element in a list is checked until the requested search item is found is called a,

  • Merge search
  • Sequential search
  • Bubble search
  • Sorted search

Final Exam – 10 Questions

Question 1: Select all of the reasons Python is one of the most popular languages.

  • Flexibility
  • Easy to use
  • Full-stack
  • Pre-Built Models and Libraries
  • Easy to understand
  • Simple to connect to databases

Question 2: Data type that returns either True or False is called,

  • String data type
  • Boolean data type
  • Numeric data type
  • Tuple data type

Question 3: With Python, the code “TableA” would return what value type?

  • Any
  • a sorted value
  • a boolean type
  • all of the above

Question 4:  The following Python code is an example of what type of operation?

  • Boolean operation
  • Tuple operation
  • Sorting operation
  • String operations

Question 5:  The following Python code for lists would produce what output?

  • 1,2,4,4,5,6,7
  • list
  • one,two,three
  • my_list

Question 6:  The following Python code for lists would produce what output?

  • ‘one’
  • 1
  • 2
  • {“two”}

Question 7: The elif statement, short for,

  • elist
  • elipseif
  • else if
  • if else

Question 8: A Python operation that happens repetitively is called a,

  • ifelse
  • boolean loop
  • tuple string
  • for loop

Question 9: For an interval search to be the most effective, the data needs to be,

  • booleaned
  • sorted
  • searched
  • listed

Question 10: Combinatorial computational geometry is used extensively in which type of construction.

  • pyramid construction
  • spacecraft construction
  • marine construction
  • All of the above
- Advertisement -

Related Articles

Stay Connected

4,682FansLike
9,800FollowersFollow
155FollowersFollow
596SubscribersSubscribe

Latest Articles

- Advertisement -