From c3136f1d188b86a4245ff90f6076894b88c3cf5d Mon Sep 17 00:00:00 2001 From: Elizabeth Humphries Date: Wed, 12 Jul 2023 13:00:36 -0400 Subject: [PATCH 1/4] Create quiz_ch3.md --- quizzes/quiz_ch3.md | 59 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 quizzes/quiz_ch3.md diff --git a/quizzes/quiz_ch3.md b/quizzes/quiz_ch3.md new file mode 100644 index 00000000..3cf16d85 --- /dev/null +++ b/quizzes/quiz_ch3.md @@ -0,0 +1,59 @@ + +{quiz, id: quiz_writing_code, attempts: 10} + +## Template quiz + +Choose the best answer. + +{choose-answers: 4} + + +? Which is true about using AI tools to write code? + +C) AI tools should be used as a supplement alongside traditional education and training. +m) Complete novices can easily learn to program by relying solely on AI tools. +m) AI code generation tools do not produce any buggy or substandard code. +o) Experienced programmers cannot use AI tools to write code in unfamiliar languages. +o) Memorizing syntax is still an important skill when using AI to write code. + +{choose-answers: 4} +? What are some coding tasks that AI help with? + +o) Creating functions +o) Choosing a programming language +o) Debugging +o) Planning your program +o) Figuring out a common programming task +o) Comparing syntax +C) AI can help with all of these tasks + +{choose-answers: 4} +? Which of the following is NOT a recommended practice when using AI to write code? + +o) Be clear about your goals. +o) Provide specific instructions to the AI. +m) Test everything AI writes and ensure responsible and ethical use of AI. +o) Get feedback from others to identify and fix problems with your code. +C) Start with a complex task and gradually work your way up to simpler tasks. +o) Be patient when interacting with AI. + + +{choose-answers: 4} +? Which of the following statements is true regarding using AI to generate code? + +m) You should always run code generated by AI without verifying its source. +C) It is important to ask the AI chatbot about the source of the code and verify its authorizations. +o) AI-generated code does not require any verification or tracking of citations. +m) The AI chatbot always provides accurate and trustworthy information about the code source. +o) AI chatbots cannot provide citations or sources. + +{choose-answers: 4} +?When using an AI chatbot to help debug errors in your code, which of the following approaches is BEST? + +o) Submitting your entire program to the AI and having it identify and fix all errors at once +C) Periodically checking small code snippets with the AI as you write your program +o) Having the AI fix every error as soon as it's encountered +o) Running the entire program and then submitting it to the AI for debugging +m) None of these approaches work; AI cannot reliably debug code + +{/quiz} \ No newline at end of file From 60b0a2bbdcfd51d43452a1eabf10215bf3e6cb4a Mon Sep 17 00:00:00 2001 From: Elizabeth Humphries Date: Wed, 12 Jul 2023 13:01:53 -0400 Subject: [PATCH 2/4] change-title --- quizzes/quiz_ch3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quizzes/quiz_ch3.md b/quizzes/quiz_ch3.md index 3cf16d85..c4bd4dd7 100644 --- a/quizzes/quiz_ch3.md +++ b/quizzes/quiz_ch3.md @@ -1,7 +1,7 @@ {quiz, id: quiz_writing_code, attempts: 10} -## Template quiz +## Quiz: Writing Code Choose the best answer. From af4c8d64ea595800cfb8503fc46ac8131aef5102 Mon Sep 17 00:00:00 2001 From: Elizabeth Humphries Date: Wed, 12 Jul 2023 13:04:41 -0400 Subject: [PATCH 3/4] change-answer-order --- quizzes/quiz_ch3.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/quizzes/quiz_ch3.md b/quizzes/quiz_ch3.md index c4bd4dd7..42bbbef4 100644 --- a/quizzes/quiz_ch3.md +++ b/quizzes/quiz_ch3.md @@ -19,41 +19,42 @@ o) Memorizing syntax is still an important skill when using AI to write code. {choose-answers: 4} ? What are some coding tasks that AI help with? +C) AI can help with all of these tasks o) Creating functions o) Choosing a programming language o) Debugging o) Planning your program o) Figuring out a common programming task o) Comparing syntax -C) AI can help with all of these tasks + {choose-answers: 4} ? Which of the following is NOT a recommended practice when using AI to write code? +C) Start with a complex task and gradually work your way up to simpler tasks. +m) Test everything AI writes and ensure responsible and ethical use of AI. o) Be clear about your goals. o) Provide specific instructions to the AI. -m) Test everything AI writes and ensure responsible and ethical use of AI. o) Get feedback from others to identify and fix problems with your code. -C) Start with a complex task and gradually work your way up to simpler tasks. o) Be patient when interacting with AI. {choose-answers: 4} ? Which of the following statements is true regarding using AI to generate code? -m) You should always run code generated by AI without verifying its source. C) It is important to ask the AI chatbot about the source of the code and verify its authorizations. -o) AI-generated code does not require any verification or tracking of citations. +m) You should always run code generated by AI without verifying its source. m) The AI chatbot always provides accurate and trustworthy information about the code source. +o) AI-generated code does not require any verification or tracking of citations. o) AI chatbots cannot provide citations or sources. {choose-answers: 4} ?When using an AI chatbot to help debug errors in your code, which of the following approaches is BEST? -o) Submitting your entire program to the AI and having it identify and fix all errors at once C) Periodically checking small code snippets with the AI as you write your program +m) None of these approaches work; AI cannot reliably debug code +o) Submitting your entire program to the AI and having it identify and fix all errors at once o) Having the AI fix every error as soon as it's encountered o) Running the entire program and then submitting it to the AI for debugging -m) None of these approaches work; AI cannot reliably debug code {/quiz} \ No newline at end of file From 7e797b95de957d00e6139a4a7734b54449d1c436 Mon Sep 17 00:00:00 2001 From: Elizabeth Humphries Date: Wed, 12 Jul 2023 13:20:29 -0400 Subject: [PATCH 4/4] update-answer-about-AI-providing-sources --- quizzes/quiz_ch3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quizzes/quiz_ch3.md b/quizzes/quiz_ch3.md index 42bbbef4..593c3fed 100644 --- a/quizzes/quiz_ch3.md +++ b/quizzes/quiz_ch3.md @@ -46,7 +46,7 @@ C) It is important to ask the AI chatbot about the source of the code and verify m) You should always run code generated by AI without verifying its source. m) The AI chatbot always provides accurate and trustworthy information about the code source. o) AI-generated code does not require any verification or tracking of citations. -o) AI chatbots cannot provide citations or sources. +o) The source of AI-generated code is irrelevant, as long as it produces the desired outcome. {choose-answers: 4} ?When using an AI chatbot to help debug errors in your code, which of the following approaches is BEST?