Question
1. What does the label display when the user clicks the button? void btnSubmit_Click(object sender, EventArgs e) { double num1 = 3; double num2 =
1.
What does the label display when the user clicks the button? void btnSubmit_Click(object sender, EventArgs e) { double num1 = 3; double num2 = 4;
myFunc(num1, num2); }
void myFunc(double aPar, double bPar) { double numPar; numPar = Math.Sqrt(bPar) + aPar; lblResult.Text = Convert.ToString(numPar); }
Group of answer choices
8
7
6
5
2.
What does the label display when the user clicks the button? void btnSubmit_Click(object sender, EventArgs e) { int num1 = 4; int num2 = 5; int num3 = 6;
num3 = myProc(num1, num2, num3); lblResult.Text = Convert.ToString(num3); }
int myProc(int numPar1, int numPar2, int numPar3) { return numPar1 + (numPar2 * numPar3); }
Group of answer choices
34
32
30
28
3.
What will be displayed in the label when the user clicks the button? void btnSubmit_Click(object sender, EventArgs e) { int num1 = 3; int num2 = 2; int num3; num3 = myProc(num1, num2); lblResult.Text = Convert.ToString(num3); } int myProc(int num1Par, int num2Par) { return num1Par * num2Par; }
Group of answer choices
13
17
9
6
4.
What is the final value of the variable num given the following code fragment?
int counter = 0; int num = 1; while (counter <= 3) {
num = num + 1; counter = counter + 1; }
Group of answer choices
3
4
5
6
5.
The For loop is a _____ looping structure.
Group of answer choices
pre-test
post-test
pre and post test
none of the above
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started