7. Which of the following declares a named constant having the Double data type? a) Const db1RATE As Double = 0.09 %3D b) Const db1RATE As Double c) Constant db1RATE = 0.09 d) Both a and b. 8. If Option Strict is set to On, which of the following statements assigns the sum of two Integer variables to the Text property of the lblTotal control? a) lblTotal.Text = (intN1 + intN2).ToString %3D b) lb1Total. Text = intN1. ToString + intN2.ToString c) lb1Total.Text = intN1 + intN2.ToString

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
7. Which of the following declares a named constant having the Double data
type?
a) Const db1RATE As Double = 0.09
b) Const db1RATE As Double
c) Constant dblRATE = 0.09
d) Both a and b.
8. If Option Strict is set to On, which of the following statements assigns the
sum of two Integer variables to the Text property of the IblTotal control?
a) lb1Total.Text =
(intN1 + intN2).TOString
b) lb1Tota1.Text =
intN1. ToString + intN2. ToString
c) lb1Total.Text
intN1 + intN2.ToString
%3D
d) lb1Total. Text
ToString(intN1 + intN2)
%3D
9. Which of the following statements prevents data loss due to implicit type
conversions?
a) Option Convert Off
b) Option Explicit On
c) Option Implicit Off
d) Option Strict On
10.If the decPay variable contains the number 1200.76, which of the
following statements displays the number as 1,200.76?
a) lb1Pay.Text =
decPay. ToString("N2")
b) lb1Pay. Text =
decPay. ToString("F2")
c) lblPay. Text =
decPay. ToString("D2")
d) lb1Pay. Text =
decPay. ToString("C2")
11.If Option Strict is set to On, which of the following statements will assign
the contents of the txtSales control to a Double variable named dblSales?
a) dblSales
txtSales.Text
%3D
b) dblSales = txtSales.Text.Convert.ToDouble
c) Double. TryParse(txtSales. Text, dblSales)
d) TryParse.Double(txtSales. Text, dblSales)
Transcribed Image Text:7. Which of the following declares a named constant having the Double data type? a) Const db1RATE As Double = 0.09 b) Const db1RATE As Double c) Constant dblRATE = 0.09 d) Both a and b. 8. If Option Strict is set to On, which of the following statements assigns the sum of two Integer variables to the Text property of the IblTotal control? a) lb1Total.Text = (intN1 + intN2).TOString b) lb1Tota1.Text = intN1. ToString + intN2. ToString c) lb1Total.Text intN1 + intN2.ToString %3D d) lb1Total. Text ToString(intN1 + intN2) %3D 9. Which of the following statements prevents data loss due to implicit type conversions? a) Option Convert Off b) Option Explicit On c) Option Implicit Off d) Option Strict On 10.If the decPay variable contains the number 1200.76, which of the following statements displays the number as 1,200.76? a) lb1Pay.Text = decPay. ToString("N2") b) lb1Pay. Text = decPay. ToString("F2") c) lblPay. Text = decPay. ToString("D2") d) lb1Pay. Text = decPay. ToString("C2") 11.If Option Strict is set to On, which of the following statements will assign the contents of the txtSales control to a Double variable named dblSales? a) dblSales txtSales.Text %3D b) dblSales = txtSales.Text.Convert.ToDouble c) Double. TryParse(txtSales. Text, dblSales) d) TryParse.Double(txtSales. Text, dblSales)
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY