Questões de Concurso
Comentadas para srh
Foram encontradas 141 questões
Resolva questões gratuitamente!
Junte-se a mais de 4 milhões de concurseiros!
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
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
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
Este estado é:
No arquivo de configuração que controla o daemon do postfix, o parâmetro que deve ser alterado para que o mecanismo de autenticação seja habilitado é:
PowerEdge-2850:~$ ps l
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
0 1000 3870 3860 20 0 8568 3236 wait Ss pts/1 0:00 bash
0 1000 4024 3870 20 0 2272 556 wait S pts/1 0:00 sh
0 1000 4025 4024 20 0 8568 3232 wait S pts/1 0:00 bash
0 1000 4043 4025 20 0 6500 768 - R+ pts/1 0:00 ps l
PowerEdge-2850:~$
Considere as afirmativas sobre a saída do comando e assinale a opção que contém as corretas.
1) todos os processos estão sendo rodados por um mesmo usuário
2) um dos processos ocupa há mais tempo a CPU
3) os processos “bash” possuem processos pai diferentes
4) todos têm a mesma prioridade
5) todos os processos estão esperando execução de outros processo
O código do script que realiza esse procedimento é:
• O dono do arquivo tenha permissão de leitura escrita e execução;
• O grupo ao qual pertence ao usuário tenha permissão de leitura e execução;
• Os demais usuários tenham apenas permissão de leitura.
O comando a ser usado é:
wheel:*:10:root,evi,garth,trent
csstaff:*:100:lloyd,evi
student:*:200:dotty
De acordo com a estrutura do arquivo /etc/group, o conteúdo das colunas deve ser, respectivamente:
/bin – arquivos de configuração e inicialização críticos
/boot – Kernel e arquivos necessários para carregar o kernel
/dev – entradas de dispositivos para terminais, discos, modems, etc.
/etc – comandos necessários para mínima operação do sistemas
Assinale a opção que contém aqueles que estão com o conteúdo trocado.
Dentre as opções relacionadas abaixo, a que representa uma linha de script de bash que executará “comando02” somente se “comando01” apresentar erro é:
# ls -l arquivo.txt
-rw-rw-r-- 1 root root 23 Jan 3 18:04 arquivo.txt
Após a execução do comando chmod, as permissões do arquivo foram alteradas, conforme a seguir:
# ls -l arquivo.txt
-rwxrw-r-- 1 root root 23 Jan 3 18:04 arquivo.txt
Para que o arquivo.txt recebesse a letra “x” para o dono, permitindo a execução do arquivo, o comando executado foi: