1 Watch the video and put the
words into the gaps in the text.
Alright, guys. Welcome back to another video 1____ and in this video
  before actually start 2____ much crap on screen we need to understand exactly
  how a computer program works. So, let me explain that right now. Every
  computer program is made up of these things called 3____. Now, the job the
  function is just to tell your computer to do something. So again, a computer 4____
  is pretty much bill of several of these functions. Usually this one only has
  one. Well,  let me go ahead and give
  you guys an 5____. Say that we want to make a program that will watched a
  YouTube video for us. So the first function would be take your mouse can move
  it to this Google Chrome 6____. Second function – click, third function -
  click on 7____. Forth function - play a video or something. So again, as you
  can see a computer program is made up of these 8____ called functions.  
Now, right here, this one right here is actually a
  very basic function, that’s necessary for all C programs and I’ll tell you
  guys about the different pieces of this right now. Just so, we actually have
  an idea of what we’re 9____ at. So, pretty much whenever you 10____ a program
  the computer will automatically look for a function called ‘main’. So you
  need to have this function no matter what. Now, you function starts and stops
  at these curly 11____, that’s how it knows what code goes in your function.
  So every line in between here is part of this main function. So, let’s take a
  look at these lines right now. So, every single line is just a piece of 12____
  that tells your function what to do. And also you probably want to take no or
  every line ends with a 13____. That’s how announced to end this piece of
  instruction in go to the next line. So, the first thing our program does
  whenever it starts is run ‘main’ and then it says: “OK. Well, what’s in ‘14____’,
  what you want me to do?” Well, the first thing is “print text out on screen”
  and I’ll tell you guys more about it later on.  but this is pretty much the line that
  prints text out  on the 15____ and
  that’s why whenever we run a program we see is says “hello, world”. So that’s
  what that line does right here.  Now it
  has one other line, it say “return 0”. In for now, it explains how your
  program and functions work. That kind of like the background of what’s going
  on, of how your program and functions work, they need to return something,
  and it just says OK. If you return 0, it means this function ran correctly.
  Sometimes if you have a return one or something it means an 16____.  
Basically if you return 0 to ‘main’ it means a
  program is running OK. So that’s where that line does.  Talk about more on that later. Now the only
  other pieces we don’t understand yet are these lines right here. These
  include lines are basically saying this. See whenever you have a C program,  the C 17____ comes with a bunch of 18____
  functions by default. So this function right here allows you to print crap
  out on the screen like this. However, we need to tell our program to include
  those files. So we can get those basic 19____ functions. So right here
  basically saying ‘include a bunch of bill that we can use in a program’. This
  is our main function, the very first piece that 20____ and the only important
  piece of instruction right now is printing text out on the screen. So that’s
  basically what’s going on behind the scenes.  
And another thing I want to mention is this: 21____
  lines and indents, and white space, it doesn’t matter to your computer
  program. It is just for making your code more 22____. So if you want to enter
  a bunch of times, it you think that’s more readable. If you wan to put ENTER
  a bunch of times, if you think it’s more readable, if you want to press Tab
  and put this way over there, it doesn’t 23_____. It’s just for just for the
  person, the developer, whatever’s the easiest to see. So again, white space,
  blank lines, 24____ don’t really matter. Again, every single computer program
  is made up of functions which pretty much do something and every single
  function is made up of lines of instruction to tell their function exactly
  what to do.   
 | 
  
functions 
 | 
 
typing 
 | 
 |
example 
 | 
 |
videos 
 | 
 |
program 
 | 
 |
tutorial 
 | 
 |
icon 
 | 
 |
pieces 
 | 
 |
instruction 
 | 
 |
screen 
 | 
 |
run 
 | 
 |
semicolon 
 | 
 |
error 
 | 
 |
looking 
 | 
 |
main 
 | 
 |
brackets 
 | 
 |
built-in 
 | 
 |
runs 
 | 
 |
default 
 | 
 |
language 
 | 
 |
matter 
 | 
 |
indents 
 | 
 |
blank 
 | 
 |
readable 
 | 
 |
2 Vocabulary focus. Study the words and  word combinations, practise
their translation, spelling. Check your knowledge
in the test. Play vocabulary game and set your own vocabulary game record.
3 Mark the following statements as True or False.
1.    
Computer program is a set of instructions.
2.    
The first function in the example is to click on the
icon.
3.    
Whenever computer runs a program it looks for the
function called ‘main’.
4.    
C language has a series of functions built in by
default.
5.    
Instructions to the program are located outside the
curly brackets.
6.    
Every line of instruction should end with a colon.
7.    
Programmers should pay no attention to indents, they
do not influence the program.
4 Answer the Questions.
1.    
What does every computer program include?
2.    
What are the differences between the first and the
forth functions?
3.    
What is the task of every single line?
4.    
What do users see when they run the program? 
5.    
What is ‘main’ function?
No comments:
Post a Comment