Displays text or message for the use of other controls. It can only show an output and cannot accept users input.
LABEL
What is the prefix of checkbox?
chk
cmd stands for?
BUTTON
Displays text or message but does not allow input from the users.
TEXTBOX
It shows choices through a drop-down menu.
COMBOBOX
It contains controls that users can use to interact with forms.
GUI
It holds all the controls available in C#. It is found on the left side of the window.
TOOLBOX
It specifies three things on a single line.
FOR LOOP
It draws different shapes such as rectangles, square, circle, and the like.
SHAPE
It is a repetitive statement in which the process is iterated again and again as long as the Boolean expression remains true.
WHILE LOOP
It is a repetitive conditional statements that will keep on executing and iterating as long as the condition remains true.
LOOP
Solve if X=1 and Z=3
(Z+2) * 4 (X+7) / 2
80
Write the syntax of FOR LOOP.
for (initialization; condition; iterator)
{
loop body;
}
What are the 4 Steps in Creating Windows Forms Application?
1. Create the Interface
2. Set the Properties
3. Write the Code
4. Test the Code
It is an important part in developing any Windows-based application because it is where you design the layout of the application.
WINDOWS FORM
What is the code of AC in making a calculator?
{
textBox1.Text = "";
}
Write the code of plus (+) sign.
{
value1 = Convert.ToInt32(textBox1.Text);
sign = "+";
textBox1.Text = "";
}
Write the initialization part in making a calculator?
int value1;
int value2;
double result = 0;
string sign;
What is the output?
int a = 5;
while (a >=10) {
Console.WriteLine(a);
a++; }
NO ANSWER / ERROR
It is any expression that returns Boolean result. It determines how long the body will repeat.
CONDITION
Write a code using WHILE LOOP based on the given output: 4 8 16 32 64
int a = 4;
while (a <= 64) {
Console.WriteLine(a);
a = a * 2; }
Write a code using DO-WHILE LOOP based on the given output: VINCE VINCE VINCE
int a = 1;
do {
Console.WriteLine("VINCE");
a++; }
while (a <= 3);
Write a code using WHILE LOOP based on the given output: 5 4 3 2
int a = 5;
while (a >=2) {
Console.WriteLine(a);
a--; }
Write a code using FOR LOOP based on the given output: 3 6 9 12 15
for (int a = 3; a <=15; a = a + 3)
{
Console.WriteLine(a);
}
Write a code using FOR LOOP based on the given output: 9 7 5 3 1
for (int a = 9; a >=1; a = a - 2)
{
Console.WriteLine(a);
}