Pular para o conteúdo

Operators, strings and subroutines

Introduzido
Material de apoio
Videoaula para este tópico Abrir a página do vídeo
13:08

Programação

Aqui está um programa curto. Ele lê cinco notas de teste e imprime o total. As cinco notas são oito, nove, sete, seis e dez, então o total deve ser quarenta. Observe…

Narração em inglês · legendas em inglês e 中文 que você pode alternar

Nesta aula

Videoaula
Vocabulário
English Significado
program/ˈprəʊɡræm/A set of instructions specifying operations for a computer to carry out.
values/ˈvæljuːz/
operators/ˈɒpəreɪtəz/operadores
strings/strɪŋz/LENGTH, SUBSTRING , UCASE, LCASE.
code/kəʊd/
comments/ˈkɒments/Explanatory text in source code or markup that does not execute as a program instruction.
Arithmetic/əˈrɪθmətɪk/
power/ˈpaʊə/
library routines/ˈlaɪbrəri ruːˈtiːnz/Reusable functions or procedures supplied in a collection for programs to call.
remainder/rɪˈmeɪndə/For integer division here, the amount left after taking whole groups of the divisor.
Relational/rɪˈleɪʃənl/
Boolean/ˈbuːlɪən/A logical value that is either true or false.
Logical/ˈlɒdʒɪkl/
characters/ˈkærɪktəz/A text unit such as a letter, digit, punctuation mark or other symbol.
LENGTH/leŋθ/
SUBSTRING/ˈsʌbstrɪŋ/
UCASE
LCASE
procedure/prəˈsiːdʒə/procedimento
function/ˈfʌŋkʃn/função
RETURN/rɪˈtɜːn/
parameter/pəˈræmɪtə/parâmetro
local variable/ˈləʊkl ˈveərɪəbl/variável local
subroutine/ˈsʌbruːtiːn/
global/ˈɡləʊbl/
CALL/kɔːl/
Próximo →

Material de apoio

IGCSE, A-Level & AP