of the following: 2. How do you create a variable with the floating number 2.8? dow do you insert COMMENTS in C++ code? a) I/ This is a comment. b) # This is a comment c) * This is a comment a) byte x 2.8; b) int x 2.8%; c) double x 2.8%3B d) x 2.8; B. Array indexes start with: a) 0 b) 1 -. Which statement is used to stop a loop? a) Break b) Exit c) Stop d) return If we stored five elements or data items in an array, what will be the index address or the i number of the array's last data item? a) 3 b) 5 c) 4 d) 88 the

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
I want the solution very quickly within 15 minutes
Lne correct answer of the following:
dow do you insert COMMENTS in C++ code?
a) // This is a comment.
b) # This is a comment
c) * This is a comment
2. How do you create a variable with the floating number 2.87
a) byte x 2.8;
b) int x = 2.8;
c) double x =2.8;
d) x 2.8%3B
3. Array indexes start with:
a) 0
b) 1
4. Which statement is used to stop a loop?
a) Break
b) Exit
c) Stop
d) return
5. If we stored five elements or data items in an array what will be the index address or the index
number of the array's last data item?
a) 3
b) 5
c) 4
d) 88
6. How many types of elements can an array store?
a) Same types of elements
b) Char and int type
c) Only char types
d) All of the above
7. Which keyword is used to return a value inside a method?
a) void
b) get
c) return
d) break
8. Suppose found = true and num 6. The value of the expression...
( !found ) || ( num> 6)
... is false,
a) True
b) False
9. Which of the following loops is guaranteed to execute at least once?
a) While loop
b) Do..While loop
c) For loop
10. Which one is not a correct variable type in C++?
a) float
b) real
c) int
d) double
rt the
Transcribed Image Text:Lne correct answer of the following: dow do you insert COMMENTS in C++ code? a) // This is a comment. b) # This is a comment c) * This is a comment 2. How do you create a variable with the floating number 2.87 a) byte x 2.8; b) int x = 2.8; c) double x =2.8; d) x 2.8%3B 3. Array indexes start with: a) 0 b) 1 4. Which statement is used to stop a loop? a) Break b) Exit c) Stop d) return 5. If we stored five elements or data items in an array what will be the index address or the index number of the array's last data item? a) 3 b) 5 c) 4 d) 88 6. How many types of elements can an array store? a) Same types of elements b) Char and int type c) Only char types d) All of the above 7. Which keyword is used to return a value inside a method? a) void b) get c) return d) break 8. Suppose found = true and num 6. The value of the expression... ( !found ) || ( num> 6) ... is false, a) True b) False 9. Which of the following loops is guaranteed to execute at least once? a) While loop b) Do..While loop c) For loop 10. Which one is not a correct variable type in C++? a) float b) real c) int d) double rt the
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 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