SóProvas


ID
1449898
Banca
SRH
Órgão
UERJ
Ano
2015
Provas
Disciplina
Inglês

                        Here’s the first line of code ever written by a US president

Barack Obama just became the first US president to write a line of computer code (assuming George W. Bush never secretly indulged in PHP). At the White House yesterday, Obama sat down with students who were learning the fundamentals of JavaScript, the popular programming language used to create most web pages.

The line he wrote was:

                  moveForward(100);

“So I make the F in higher case?” Obama asked, correctly observing that JavaScript is case sensitive. “Semicolon?” (That semicolon is optional, but Obama apparently has a knack for recognizing JavaScript best practices.)
Obama was playing with a Code.org tutorial based on the popular Disney movie Frozen. In his line of code, the President called a function-moveForward-pre-defined by Code.org for the exercise.
Calling a function in JavaScript is simple: write its name exactly as it has been defined, followed by parentheses that contain its “arguments.” In this case, a single argument tells the program how many pixels to move a Frozen character forward. Because it’s measured in pixels, the argument has to be a number. If Obama had written moveForward(“three steps”), the program would have failed, offering only a cryptic error message and exposing the president to the near-perpetual state of frustration most software developers live in.

“This is Elsa?” Obama asked, referring to the movie’s main character.

Obama was promoting Computer Science Education Week and Code.org’s Hour of Code campaign, which encourages kids to try programming for at least one hour. “It turns out the concepts are not that complicated,” Obama told the students at the White House, though his attempt to explain it suggested otherwise:

                  “The basic concept behind coding is that you take zeros and ones, you take two numbers, yes or no, and those can be translated into electrical messages that then run through the computer…. So all it’s doing is it’s saying yes or no over and over again, and the computer’s powerful enough that it can read a really long set of instructions really quickly.”

Something like that.

                                                            Disponível em: http://qz.com/308904/heres-the-first-line-of-code-ever-written-by-a-us-president/
                                                                                                            Quartz (9 de Dezembro de 2014) - Texto de Zachary M. Seward

A explicação do Presidente Obama sobre os conceitos de programação e a percepção do autor do texto sobre essa explicação são, respectivamente:

Alternativas
Comentários
  • A - Aos conceitos de programação não são tão complicados / a explicação dada pelo Presidente sugeriu o contrário


    Como bem nos assegura Obma quando o mesmo afirma: It turns out the concepts are not that complicated” (Tradução livre: Acontece que os conceitos não são tão complicados), pode-se dizer que os conceitos de programação não são tão difíceis de se compreender .

    Contudo, é constatado que por meio da explicação do Presidente contradição quando ele diz: "Something like that." (Tradução livre: Alguma coisa assim). Não é exagero afirmar que Obama demonstra contrariedade em relação aos conceitos de programação serem fáceis.