My Coding Quiz #1

in StemSocial11 months ago

My Coding Quiz #1 👨‍💻🛠️🧩


Welcome to my new 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. You will see how much you know about programming languages and how much code you can read, debug, mentally simulate, etc.

I have designed these quizzes in my capacity as a computer science professor and programmer. I will try to cover many types of programming languages, but I will give special attention to Python and Javascript as they are the most popular and my favorites. I will also post the solution to this quiz in the next installment of the series to avoid spoilers :) Feel free to share your answer in the comments section!


Quiz


What's your choice?

If you want to blog about computer science and programming content, I invite you to join Hive and participate in its communities, such as STEM-social, Develop Spanish y otras.


Mi Quiz de Programación #1 👨‍💻🛠️🧩


Bienvenido a mi nueva serie de Quizzes de Programación, 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. Con ella verás qué tanto conoces los lenguajes de programación y cuánto código puedes leer, depurar, simular mentalmente, etc.

He diseñado estos quizzes en mi calidad de profesor de ciencias de la computación y programador. Trataré de cubrir muchos tipos de lenguajes de programación, pero daré especial atención a Python y Javascript por ser los más populares y mis favoritos. También publicaré la solución a este quiz en la próxima entrega de la serie, para así evitar los spoilers :) ¡Sientete con la libertad de compartir tu respuesta en la sección de comentarios!


Quiz


¿Cuál es tu elección?

Si quieres bloguear sobre contenido informático y de programación, te invito a unirte a Hive y participar en sus comunidades, tales como STEM-social, Develop Spanish y otras.

Sort:  

Well, whether the answer is 4 or 0 depends on what the default behavior of round() is. Apparently, since the answer is 4, it rounds down, so we get the exponent 5^1 rather than 6^0.

 11 months ago  

Well, I'm going to post the explanation in the next installment very soon!

4 :) the last is 5^ 1 = 5 -1 = 4

 11 months ago  

That's right!


Has sido curado por @visualblock / You've been curated by @visualblock
Bienvenidas delegaciones / Delegations welcome
Encuentra nuestra comunidad aquí / Find our community here
Trail de Curación / Curation Trail

 11 months ago  

Gracias

Es un gusto para nosotros. 🤗

Tu publicacion ha sido votada por el Trail de CAPYBARAEXCHANGE por contenido excepcional y formar parte de nuestra comunidad de usuarios activos.

Unete a nuestro canal de discord en dónde podrás conocer mas acerca de nuestras operaciones y servicios. registrate ingresando en capybaraexchange para disfrutar del servicio

Si quieres formar parte de nuestro trail de curación, ingresa a HIVEVOTE, haciendo clic en la imagen del capybara aristocratico. Capybaraexchange tu casa de cambio, rapida, confiable y segura



 11 months ago  

Gracias

Thanks for your contribution to the STEMsocial community. Feel free to join us on discord 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.