Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/feed-rss2.php on line 8
‘Quizzes’ Articles at TC101 Fall 2015 https://kenscourses.com/tc101fall2015 Introduction to Programming Python and C++ Thu, 22 Oct 2015 04:55:35 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ #Quiz08 https://kenscourses.com/tc101fall2015/2015/quiz08-21/ Thu, 22 Oct 2015 04:55:35 +0000 http://alansprogramming.wordpress.com/?p=85 Continue reading #Quiz08 ]]> Lists

Grab ink and paper, we’re making lists. “Grocery List” by Brittney Bush Bollay @ https://www.flickr.com/photos/tzofia/145057857/

  1. Write a function called sumsquares_list which receives a vector of int and returns the sum of the squares of the elementes in the list. For example, if we have a vector with the values x with values [1,2,3,4,5], sumsquares_list(x) would return 55 since 1 + 4 + 9 + 16 + 25 is 55.

GitHub link to code answer.

]]>
https://creativecommons.org/licenses/by/4.0/
#Quiz08 https://kenscourses.com/tc101fall2015/2015/quiz08-36/ Thu, 22 Oct 2015 04:55:35 +0000 https://alansprogramming.wordpress.com/?p=85 Continue reading #Quiz08 ]]> Lists

Grab ink and paper, we’re making lists. “Grocery List” by Brittney Bush Bollay @ https://www.flickr.com/photos/tzofia/145057857/

  1. Write a function called sumsquares_list which receives a vector of int and returns the sum of the squares of the elementes in the list. For example, if we have a vector with the values x with values [1,2,3,4,5], sumsquares_list(x) would return 55 since 1 + 4 + 9 + 16 + 25 is 55.

GitHub link to code answer.

]]>
https://creativecommons.org/licenses/by/4.0/
#Quiz07 https://kenscourses.com/tc101fall2015/2015/quiz07-12/ Mon, 19 Oct 2015 03:43:37 +0000 http://alansprogramming.wordpress.com/?p=82 Continue reading #Quiz07 ]]> Quiz07

Trippy, exactly what the quiz was like. Credit to Mark Strozler. Link @ https://www.flickr.com/photos/r80o/17657229/

  1. Write a function called fibonacci which receives a lon “n” and returns a long which is the value of the nth number in the fibonacci series which is: 0,1,1,2,3,5,8,13,21,34,55,89……….
    So, fibonacci(0) woud return 0, fibonacci(5) would return 5, fibonacci(8) would return 21.
    Note that the first two fibonacci numbers are 0 and 1.
    All others are the sum of the previous two fibonacci numbers.
    GitHub link to question 1 answer.
  2.  Write a function called isPalindrome which receives a string “x” and returns true if the string x is a palindrome, otherwise false.
    GitHub link to question 2 answer

]]>
https://creativecommons.org/licenses/by/4.0/
#Quiz07 https://kenscourses.com/tc101fall2015/2015/quiz07-28/ Mon, 19 Oct 2015 03:43:37 +0000 https://alansprogramming.wordpress.com/?p=82 Continue reading #Quiz07 ]]> Quiz07

Trippy, exactly what the quiz was like. Credit to Mark Strozler. Link @ https://www.flickr.com/photos/r80o/17657229/

  1. Write a function called fibonacci which receives a lon “n” and returns a long which is the value of the nth number in the fibonacci series which is: 0,1,1,2,3,5,8,13,21,34,55,89……….
    So, fibonacci(0) woud return 0, fibonacci(5) would return 5, fibonacci(8) would return 21.
    Note that the first two fibonacci numbers are 0 and 1.
    All others are the sum of the previous two fibonacci numbers.
    GitHub link to question 1 answer.
  2.  Write a function called isPalindrome which receives a string “x” and returns true if the string x is a palindrome, otherwise false.
    GitHub link to question 2 answer

]]>
https://creativecommons.org/licenses/by/4.0/