create account

My Coding Quiz #2 by eniolw

View this thread on: hive.blogpeakd.comecency.com
· @eniolw ·
$10.08
My Coding Quiz #2
<div class="text-justify">

<center><h2>My Coding Quiz #2 👨‍💻🛠️🧩</h2></center>

<p>Welcome to the new installment of my series of <b>Coding Quizzes</b>, in which you will be able to test your knowledge and skills about programming and software development in a simple and fun way. If you want to learn more about it visit <a href="/@eniolw">my blog</a> here on Hive and the <a href="/@eniolw/my-coding-quiz-1">first post</a> where I introduced it.</p>

<h3>Without further ado, here's the riddle...</h3>

<br><center><img src="https://images.ecency.com/DQmafzo7P3fPTUXCkcybJCvpD4yZvJrS1LugeNADHcimZuz/quiz_img_en.png
" alt="Quiz"></center>

<br><center><h3>What's your choice?</h3></center>

<p><b>Solution to the previous quiz:</b> <b>4</b>. On line 1, the <code>//</code> operator corresponds to division and automatic rounding of the result to the nearest integer below. It means that the operation <code>11 // 2</code> produces <b>5</b>. On line 2, the <code>round</code> function is a red herring, as it won't round anything. Line 3 performs the well-known modulo operation with the <code>%</code> operator, returning <b>1</b>. Line 4 introduces the exponentiation operator<code>**</code>. Evaluating the previously computed and assigned values, you would have 5 raised to the power 1, giving <b>5</b>, and subtract 1 from this, giving <b>4</b>. So <code>z</code> is equal to <b>4</b>, which is what is printed on the last line.</p>

<p>Congratulations to @gwajnberg, @bluerobo and @edb for coming up with the right answer!</p>

<p>If you want to blog about computer science and programming content, I invite you to join <a href="/">Hive</a> and participate in its communities, such as <a href="/created/hive-196387">STEM-social</a>, <a href="/created/hive-196387">Develop Spanish</a>, <a href="/created/hive-169321">Programming & Dev</a> and others.</p>

<hr>

<center><h2>Mi Quiz de Programación #2 👨‍💻🛠️🧩</h2></center>

<p>Bienvenido a mi nueva serie de <b>Quizzes de Programación</b>, en la cual podrás poner a prueba tus conocimientos y habilidades sobre programación y desarrollo de software de una manera sencilla y divertida.  Si quieres aprender más sobre ella visita <a href="/@eniolw">mi blog</a> aquí en Hive y el <a href="/@eniolw/my-coding-quiz-1">primer post</a> donde la presenté.</p>

<h3>Sin más preámbulos, he aquí el acertijo...</h3>

<br><center><img src="https://images.ecency.com/DQmRoaeWX9CDcJ4oE4uq4avUtzt5ViPuvhJQFU4XiAhfQHg/quiz_img_es.png" alt="Quiz"></center>

<br><center><h3>¿Cuál es tu elección?</h3></center>

<p><b>Solución al quiz anterior:</b> <b>4</b>. En la línea 1 el operador // corresponde con la division y automático redondeo del resultado hacia el entero más cercano por debajo. Significa que la operación produce 5. En la línea dos, la función round es una pista falsa, pues no redondeará nada. La línea 3 ejecuta la operación de módulo bien conocida, dando como resultado 1. La línea presenta al operador de potenciación **. Al evaluar los valores calculados y asignados se tendría que 5 se eleva a la potencia 1, lo que da 5 y a esto se le resta 1 y da 4. Por lo tanto, z vale 4, que es lo que se imprime en la última línea.</p>

<p>¡Enhorabuena a @gwajnberg, @bluerobo y @edb por dar con la respuesta correcta!</p>

<p>Si quieres bloguear sobre contenido informático y de programación, te invito a unirte a <a href="/">Hive</a> y participar en sus comunidades, tales como <a href="/created/hive-196387">STEM-social</a>, <a href="/created/hive-196387">Develop Spanish</a>, <a href="/created/hive-169321">Programming & Dev</a> y otras.</p>

</div>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 508 others
properties (23)
authoreniolw
permlinkmy-coding-quiz-2
categoryhive-169321
json_metadata"{"image": ["https://images.ecency.com/DQmafzo7P3fPTUXCkcybJCvpD4yZvJrS1LugeNADHcimZuz/quiz_img_en.png", "https://images.ecency.com/DQmRoaeWX9CDcJ4oE4uq4avUtzt5ViPuvhJQFU4XiAhfQHg/quiz_img_es.png"], "thumbnails": ["https://images.ecency.com/DQmafzo7P3fPTUXCkcybJCvpD4yZvJrS1LugeNADHcimZuz/quiz_img_en.png", "https://images.ecency.com/DQmRoaeWX9CDcJ4oE4uq4avUtzt5ViPuvhJQFU4XiAhfQHg/quiz_img_es.png"], "tags": ["hive-169321", "programming", "coding", "software", "python", "technology", "neoxian", "stem", "creativecoin", "proofofbrain"], "description": "Welcome to the new installment of my series of Coding Quizzes, in which you will be able to test your knowledge and skills about programming and software development in a simple and fun way", "app": "ecency/3.0.32-vision", "format": "markdown+html"}"
created2023-06-19 09:01:09
last_update2023-06-19 09:01:09
depth0
children5
last_payout2023-06-26 09:01:09
cashout_time1969-12-31 23:59:59
total_payout_value5.089 HBD
curator_payout_value4.993 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,598
author_reputation253,497,817,786,909
root_title"My Coding Quiz #2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id124,582,062
net_rshares22,307,666,775,674
author_curate_reward""
vote details (572)
@bluerobo ·
properties (23)
authorbluerobo
permlinkre-eniolw-rwhtec
categoryhive-169321
json_metadata{"tags":["hive-169321"],"app":"peakd/2023.6.5"}
created2023-06-19 09:08:36
last_update2023-06-19 09:08:36
depth1
children1
last_payout2023-06-26 09:08:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1
author_reputation101,000,393,225,737
root_title"My Coding Quiz #2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id124,582,169
net_rshares0
author_curate_reward""
vote details (1)
@eniolw ·
Ok! I will reveal the answer in the next quiz post :)
properties (22)
authoreniolw
permlinkre-bluerobo-2023619t23646986z
categoryhive-169321
json_metadata{"tags":["hive-169321"],"app":"ecency/3.0.32-vision","format":"markdown+html"}
created2023-06-20 03:06:48
last_update2023-06-20 03:06:48
depth2
children0
last_payout2023-06-27 03:06:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length53
author_reputation253,497,817,786,909
root_title"My Coding Quiz #2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id124,608,539
net_rshares0
@edb ·
That's 2+0=2. 

Last time, I missed the automatic rounding of //, that's sneaky. 
properties (22)
authoredb
permlinkre-eniolw-2023620t175749182z
categoryhive-169321
json_metadata{"tags":["hive-169321","programming","coding","software","python","technology","neoxian","stem","creativecoin","proofofbrain"],"app":"ecency/3.0.41-mobile","format":"markdown+html"}
created2023-06-20 15:57:48
last_update2023-06-20 15:57:48
depth1
children1
last_payout2023-06-27 15:57:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length81
author_reputation35,341,760,894,491
root_title"My Coding Quiz #2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id124,623,001
net_rshares0
@eniolw ·
Yeah, programming languages have so many sneaky features even when you think you know them well. I'm going to post the answer to this quiz in a few hours :)
properties (22)
authoreniolw
permlinkre-edb-2023624t13218123z
categoryhive-169321
json_metadata{"tags":["hive-169321","programming","coding","software","python","technology","neoxian","stem","creativecoin","proofofbrain"],"app":"ecency/3.0.32-vision","format":"markdown+html"}
created2023-06-24 05:32:18
last_update2023-06-24 05:32:18
depth2
children0
last_payout2023-07-01 05:32:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length156
author_reputation253,497,817,786,909
root_title"My Coding Quiz #2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id124,728,270
net_rshares0
@stemsocial ·
re-eniolw-my-coding-quiz-2-20230620t022431425z
<div class='text-justify'> <div class='pull-left'>
 <img src='https://stem.openhive.network/images/stemsocialsupport7.png'> </div>

Thanks for your contribution to the <a href='/trending/hive-196387'>STEMsocial community</a>. Feel free to join us on <a href='https://discord.gg/9c7pKVD'>discord</a> to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support.&nbsp;<br />&nbsp;<br />
</div>
properties (22)
authorstemsocial
permlinkre-eniolw-my-coding-quiz-2-20230620t022431425z
categoryhive-169321
json_metadata{"app":"STEMsocial"}
created2023-06-20 02:24:30
last_update2023-06-20 02:24:30
depth1
children0
last_payout2023-06-27 02:24:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length565
author_reputation22,903,711,652,468
root_title"My Coding Quiz #2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id124,607,833
net_rshares0