*More Test*
*11*. Which is correct which is incorrect! (*scope of variable*)
a)
\define m2()
The value of n in m2 <$text text=<<__n__>> />
\end
\define m1(n)
This is a test of scope of variable.<br>
The value of n in m1: $n$<br>
Call m2: <<m2>>
\end
<<m1 10>>
b)
\define m2()
The value of n in m2 <$text text="""$n$""" />
\end
\define m1(n)
This is a test of scope of variable.<br>
The value of n in m1: $n$<br>
Call m2: <<m2>>
\end
<<m1 10>>
c)
\define m2()
The value of n in m2 <$text text="""$(n)$""" />
\end
\define m1(n)
This is a test of scope of variable.<br>
The value of n in m1: $n$<br>
Call m2: <<m2>>
\end
<<m1 10>>
d)
\define m2(n)
The value of n in m2 <$text text="""$n$""" />
\end
\define m1(n)
This is a test of scope of variable.<br>
The value of n in m1: $n$<br>
Call m2: <<m2>>
\end
<<m1 10>>
On Thursday, February 27, 2020 at 4:50:45 PM UTC+3:30, Luis Gonzalez wrote:
>
> Here you have the next release of The-Book.
>
>
> I have done this little test with the best intention and humor. Use it to
> check your knowledge about Tiddlywiki.
>
>
> *TEST*
>
> 1. You have a Tiddlywiki to store information about your favorite
> programming language. It is full of CamelCase words and tiddliwiki converts
> them to links. This is very annoying, because those links do not exist.
> What is the easiest way to solve the problem?
> a) You have to begin each CamelCase word with a ~ .
> b) You can use the “\pragma” sentence to deactivate all wikitext
> format.
> c) You can use the “\pragma except wikilinik” sentence to
> deactivate the CamelCase detection.
> d) You can use the “\rules excect wikilink” sentence to deactivate
> the CamelCase detection.
>
>
>
> 2. Your very rich significant other has passed away. You find her(his)
> testament in a Tiddlywiki file. Unfortunately, her ex-boyfriend(his
> ex-girlfriend) has hidden all controls and buttons to manage the wiki, so
> you can't read it. What can you do?
> a) There is no problem. You can use the DragAndDrop mechanism to
> import all tiddlers to other file.
> b) You can't read the testament. You have lost the heritage.
> c) You have to hire a group of hackers to analyze the html file.
> d) You must call Jeremy. Only he has the resources to recover the
> information.
>
>
>
> 3. You are using Tiddlywiki in a html file opened with Firefox without
> complements or other applications loaded. You have spent two hours adding
> information to your tiddlywiki. Tired, you close the browser without
> reading a message that appeared on the screen. The next time you open your
> tiddliwiki file it is empty. What can you do?
> a) There is no problem. You can use the DragAndDrop mechanism to
> import all tiddlers to other file.
> b) You have lost all the information.
> c) You have to hire a group of hackers to analyze the html file.
> d) You must call Jeremy. Only he has the resources to recover the
> information.
>
>
>
> 4. You need a list of all your tags (sorted alphabetically) followed by
> the number of tiddlers tagged with it. Write a macro.
>
>
>
> 5. You have a todo tiddlywiki. You have many people, tiddlers tagged with
> “person” whose title is his name. And you have the tasks, tiddlers tagged
> with “task”. Each time you assign a task to a person you tag the task with
> the name of the person. How do you find all tasks not assigned to anyone?
>
>
>
> 6. You have a macro to show the title and content of a tiddler in a
> little square:
> \define content(tidd:"")
> <div class="squared">
> <h2>
> <$link to=<<tidd>>>
> <<tidd>>
> </$link>
> </h2>
> <small>
> <$transclude tiddler=<<tidd>> mode="block"/>
> </small>
> </div>
> <br/>
> \end
> but it does not produce any output. What happens?
> a) You have to add the default value for the tidd attribute.
> b) You have to use $tidd$ as a placeholder for your attribute.
> c) You have to use <<__tidd__>> as a placeholder for your
> attribute.
> d) There is no “block” mode for transclusions.
>
>
>
> 7. You manage your business with some tiddlywikis. One of them is to
> control staff. You add all people tagged with his position in the company.
> For all the managers you want to show in its tiddlers the staff that
> depends on him, the resources assigned to it and some more fields, in
> addition to the information of its tiddler. What is the best?
> a) Write the macro “manager” and add <<manager>> to each manager
> at the end of the tiddler content
> b) Use a Conditional View Template for the “manager” tag with the
> information you need to include.
> c) Use the css { display:none; } for all tiddlers not tagged whit
> the “manager” tag.
> d) You have to write all this information manually.
>
>
>
> 8. You want to add an icon in few tiddlers. You want the icon to appears
> next to the title. What's the easy?
> a) Use a Conditional View Template and add the icon in this
> template.
> b) This is a feature already incorporated in tw. Add the icon you
> want in the icon field of the tiddler.
> c) Modify the View Template to show the icon.
> d) Write a macro with the icon tiddler as a parameter and add this
> macro to the tiddler.
>
>
>
> 9. Before saving, you deleted the tiddler “$:/core/modules/startup.js” of
> a tiddlywiki file.
> a) ¡No problem!. It is a shadow tiddler and Tiddlywiki will
> restore it again.
> b) You have crashed tiddlywiki. The file will never load again.
> c) Tiddlywiki will load completely empty.
> d) You have removed all tiddlywiki functionality.
>
>
>
> 10. Before saving, you deleted the tiddler “$:/core” of a tiddlywiki file.
> a) ¡No problem!. It is a shadow tiddler and Tiddlywiki will
> restore it again.
> b) You have crashed tiddlywiki. The file will never load again.
> c) Tiddlywiki will load completely empty.
> d) You have removed all tiddlywiki functionality.
>
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/e4b42cc2-56b1-4998-8307-f5f86d97786b%40googlegroups.com.