跳至主要內容
UIC All QUIZ7 类似题目-模拟考

Question 7

Question1 Warm-up . Define a function get_title(movielist) that returns a new list of movies with (year) removed. movielist contains titles of movie as string and year is always written as 4 digits within parathesis at the end of the title. For example 'Transformers (2007)'


AI悦创原创...大约 3 分钟Python 一对一教学uicUIC Information SpacecodingbatPython 一对一教学uicUIC Information Spacecodingbat
UIC All QUIZ 类似题目-模拟考

难度:🌟

问题1:

问题2:

难度:🌟🌟

以下是两个更有挑战性的问题,它们涉及字符串处理和子字符串搜索的知识点:

问题1:

问题2:

Question 1

题目一:编写一个函数 replace_item(list1, old_item, new_item),该函数接收一个列表和两个项作为参数,将列表中所有的 old_item 替换为 new_item


AI悦创原创...大约 10 分钟Python 一对一教学uicUIC Information SpacecodingbatPython 一对一教学uicUIC Information Spacecodingbat
UIC All QUIZ 模拟考

UNITED INTERNATIONAL COLLEGE

Each question is worth 2 points. Only 1 answer is correct. Report your answer in the last page

每道题2分。只有一个答案正确。在最后一页报告你的答案

选择题

  1. Which of the following function convert a string to a float in python?

AI悦创原创...大约 11 分钟Python 一对一教学uicUIC Information SpacecodingbatPython 一对一教学uicUIC Information Spacecodingbat
07-MATLAB Tutorial for Calculus III - Part 1

1. Introduction to MATLAB

MATLAB is a powerful computer algebra system that can perform many mathematical calculations. It can also be used as a programming language. This lab is intended to introduce both of these capabilities. The MATLAB program is available to UCCS students in the computer lab in EAS 136.


AI悦创原创...大约 15 分钟Python 一对一教学uicUIC Information SpacecodingbatPython 一对一教学uicUIC Information Spacecodingbat
UIC All QUIZ

Chapter 2 - Quiz

This is the in-class quiz for Chapter 2. Your solution can account for maximum 2.5% of your final grade.

这是第2章的课堂测验。你的答案最多可以占你最终成绩的2.5%。

Note

  • Write your code after you see # YOUR CODE HERE

    在看到 # YOUR CODE HERE 后编写你的代码。

  • Read the instruction of each question. You have a limited time to submit: Tue March 7, h. 17:00. Only your last submission counts.

    请阅读每个问题的说明。你有有限时间提交:3月7日星期二,下午17:00。只有你的最后一次提交有效。

  • Copying the solution of other students is forbidden.

    禁止抄袭其他学生的解答。

  • This quiz will be auto-graded. The auto-grading will check that your answers to the question is correct (or close to be correct). If your submission fails the auto-grade, you will get 0.

    本次测验将采用自动评分方式。自动评分将检查您对问题的回答是否正确(或接近正确)。如果您的提交未通过自动评分,您将得零分。


AI悦创原创...大约 28 分钟Python 一对一教学uicUIC Information SpacecodingbatPython 一对一教学uicUIC Information Spacecodingbat
05-Final Project

This is your project. It accounts for maximum 20% of the final grade.

Instructions

  • You should work on this project individually.
  • This project will be partially auto-graded and partially manually graded: the auto-grading will check that your answers to the question is correct (or close to be correct) and the manual grading will check your python coding and visualization style. If your submission fails the auto-grade, you will get 0.

AI悦创原创...大约 14 分钟Python 一对一教学uicUIC Information SpacePython 一对一教学uicUIC Information Space
04-Programming Assignment 2

This is the Part 2 of your Assignment 2. Together with the Part 1 multiple choice questions on iSpace, it accounts for maximum 10% of the final grade.

Note

  • Write your code after you see # YOUR CODE HERE
  • Read the instruction of each question. You have a limited time to submit: May 5, 2023, h. 13:00. Only your last submission counts.
  • Copying the solution of other students is forbidden.
  • For each exercise example, the symbol -> indicates the value the function should return.
  • After the deadline, submission is only possible by email attachment (.ipynb file) to yujiahu@uic.edu.cn. Late submission will be heavily penalized (up to 100%, if late > 48h ).
  • This assignment will be auto-graded. If you fail to submit or if your submission fails the auto-grade, you will get 0 points.**

AI悦创原创...大约 8 分钟Python 一对一教学uicUIC Information SpacePython 一对一教学uicUIC Information Space
03-Assignment2_MultipleChoice

Question 1

Question 2

Question 3

Question 4

Question 5


AI悦创原创...大约 3 分钟Python 一对一教学uicUIC Information SpacePython 一对一教学uicUIC Information Space
Programming Assignment 2

Question - Warm up

Define a function front_times(str1, n) that returns n copies of the front. n is a non-negative int. The front of the string is the first 3 chars, or whatever is there if the string is less than length 3.

Example


AI悦创原创...大约 11 分钟Python 一对一教学uicUIC Information SpacePython 一对一教学uicUIC Information Space
While
  1. 编写一个程序,要求用户输入一个正整数,并使用 while 循环计算该数的阶乘。
  2. 编写一个程序,要求用户输入一个整数,使用 while 循环计算并输出该数的所有正因子。
  3. 编写一个程序,生成一个介于1和100之间的随机数,然后让用户不断尝试猜测这个数,直到猜对为止。使用 while 循环,并给出提示(猜大了或猜小了)。
  4. 编写一个程序,使用 while 循环计算并输出斐波那契数列的前20个数字。
  5. 编写一个程序,使用 while 循环计算并输出一个用户输入的正整数的二进制表示。
  6. 编写一个程序,使用 while 循环实现一个简单的计数器。要求用户输入开始值、结束值和步长,然后从开始值开始计数,每次增加步长,直到到达或超过结束值。
  7. 编写一个程序,要求用户输入一个整数,使用 while 循环计算并输出该数的所有素数因子。
  8. 编写一个程序,使用 while 循环计算并输出一个用户输入的整数的所有位数之和。例如,输入 12345,输出 15(1+2+3+4+5)。
  9. 编写一个程序,使用 while 循环实现一个简单的倒计时。要求用户输入一个正整数作为起始值,然后从该值开始倒计时,每秒减1,直到0。
  10. 编写一个程序,使用 while 循环模拟一个简单的石头、剪刀、布游戏。让用户与计算机进行对战,游戏会一直进行,直到用户输入“退出”。游戏过程中要记录并输出双方的胜负情况。

AI悦创原创...大约 6 分钟Python 一对一教学uicUIC Information SpacePython 一对一教学uicUIC Information Space
Programming Assignment 1

1. 选择题

1. 「C」

2. 「B」

3. 「D」

4.「C」

5.「D」


AI悦创原创...大约 6 分钟Python 一对一教学uicUIC Information SpacePython 一对一教学uicUIC Information Space