Hello, SMALL BASIC programmer, welcome.
In this page we will learned programming question session 1 (amid corona virus outbreak).
So, what is the answers of the questions below:
1. Look at program below, what is the value of i, each time i is printed to the textwindow window?
Up:
TextWindow.WriteLine(i)
For i = 0 To 10
Goto up
Program.Delay(1000)
EndFor
2. Still using above program, but with slight modification. How many time the program will runs or a.k.a the program printed "Hello World!" to the textwindow window?
Up:
TextWindow.WriteLine("Hello World!")
For i = 0 To 10
Goto up
Program.Delay(1000)
EndFor
3. Still using program number 1, but with slight modification. Is it i incremented each time i is printed out to the textwindow window?
Up:
i = i + 1
TextWindow.WriteLine(i)
For i = 0 To 10
Goto up
Program.Delay(1000)
EndFor
4. Still using program number 1, but with slight modification. Is it "Hello World" string printed out to the screen?
Up:
i = i + 1
TextWindow.WriteLine(i)
For i = 0 To 10
Goto up
TextWindow.WriteLine("Hello World")
EndFor
Ok, thats it. I hope you enjoy the questions.
In this page we will learned programming question session 1 (amid corona virus outbreak).
So, what is the answers of the questions below:
1. Look at program below, what is the value of i, each time i is printed to the textwindow window?
Up:
TextWindow.WriteLine(i)
For i = 0 To 10
Goto up
Program.Delay(1000)
EndFor
2. Still using above program, but with slight modification. How many time the program will runs or a.k.a the program printed "Hello World!" to the textwindow window?
Up:
TextWindow.WriteLine("Hello World!")
For i = 0 To 10
Goto up
Program.Delay(1000)
EndFor
3. Still using program number 1, but with slight modification. Is it i incremented each time i is printed out to the textwindow window?
Up:
i = i + 1
TextWindow.WriteLine(i)
For i = 0 To 10
Goto up
Program.Delay(1000)
EndFor
4. Still using program number 1, but with slight modification. Is it "Hello World" string printed out to the screen?
Up:
i = i + 1
TextWindow.WriteLine(i)
For i = 0 To 10
Goto up
TextWindow.WriteLine("Hello World")
EndFor
Ok, thats it. I hope you enjoy the questions.
Tidak ada komentar:
Posting Komentar