WeBWorKdocs

sq_webwork:


Home
Current UR
courses
Visitor
page
Intro to
WeBWorK
WeBWorK 2
Twiki
WW
Community
Grant Support
& awards
Discussion
group
Problem
library
Write/modify
problems
Create &
manage course
Tutorial on
running a course
HowTos
FAQ
WeBWorK2
FAQ
Software
Download
How to
Install WW server
Feedback
Site Map
Change
preferences
Change
password





Prev | Next | tutorial

This page is no longer being maintained. The new URL for this content is http://webwork.maa.org/wiki/PopUpLists


(1 pt) rochesterLibrary/setMAAtutorial/popuplistexample.pg

True False Pop-up Example

Indicate whether each statement is true or false.

 1. All differentiable strictly increasing functions have non-negative derivatives at every point

 2. All polynomials are differentiable.

 3. All compact sets are closed

 4. All closed sets are compact


WARNINGS
µ¦å{h­
{viewSource(setMAAtutorial/popuplistexample.pg)}


Comments:

This problem is just a demo -- it doesn't actually work if you push the submit answer button. (You can test a {linkWebworkProblem("tutorialCourse", "setFirstSteps","5","live")} version of this problem.)
  1. This is nearly identical to the true-false problem, but this time the answers are selected from a list.
  2. First we create the object -- this time called a "pop-up select list". $tf = new_pop_up_select_list(); (line 16)
  3. Next we enter a list of questions, followed by their answers (T or F) (lines 20 - 29)
  4. Choose two questions at random from the list. $tf ->choose(2); (line 32)
  5. Print the questions { $tf-> print_q } (line 40)
  6. Register the correct answers ANS( str_cmp( $tf->ra_correct_ans ) ) ; ( line 45 )


Prev | Next | tutorial

Last update: Tuesday, March 4, 2008 at 12:09:56 AM.
This site maintained using Manila and Frontier software.