eam.h> .h> wing libraries is used to m h> eam.h> nment in the C++ program

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
For each question, choose the correct answer from the multiple-choice list:
Part A
Which of the following libraries is used to make the programmer able to use the (cin) function in a C++
1)
program?
a) #include<iostream.h>
b) #include<conio.h>
c) #include<math.h>
Which of the following libraries is used to make the programmer able to use the (sin(x)) function in a
2)
d) #include<string.h>
C++ program?
a) #include<math.h>
c) #include<iostream.h>
b) #include<conio.h>
d) #include<string.h>
For inserting a comment in the C++ program, which one of the following statements can be used?
3)
a) // comment
b) /* comment
d) \t comment
c) # comment
The data type that used to hold ASCII code in the C++ language is
a) char
c) double
4)
b) float
d) int
What is the size of (long double) data type in C++?
5)
a) 10
b) 4
c) 8
Which of the following is the correct identifier?
a) $var_name
c) VAR_123
d) 2
6)
b) 123_VAR
d) varname@
The data type that used to hold the integer number with 2-byte size in the C++ language is
a) int
7)
b) double
c) short int
d) long int
Which of the following declarations is not correct?
8)
a) char h = 'a';
b) char h = '@';
d) char h = '2';
c) char h = 'ali';
Which of the following identifiers is the keyword?
9)
a) COUT
b) Cout
d) #cout
c) cout
Which operator has the lowest precedence?
10)
a) %
b)/
d) ++
c) +
Transcribed Image Text:For each question, choose the correct answer from the multiple-choice list: Part A Which of the following libraries is used to make the programmer able to use the (cin) function in a C++ 1) program? a) #include<iostream.h> b) #include<conio.h> c) #include<math.h> Which of the following libraries is used to make the programmer able to use the (sin(x)) function in a 2) d) #include<string.h> C++ program? a) #include<math.h> c) #include<iostream.h> b) #include<conio.h> d) #include<string.h> For inserting a comment in the C++ program, which one of the following statements can be used? 3) a) // comment b) /* comment d) \t comment c) # comment The data type that used to hold ASCII code in the C++ language is a) char c) double 4) b) float d) int What is the size of (long double) data type in C++? 5) a) 10 b) 4 c) 8 Which of the following is the correct identifier? a) $var_name c) VAR_123 d) 2 6) b) 123_VAR d) varname@ The data type that used to hold the integer number with 2-byte size in the C++ language is a) int 7) b) double c) short int d) long int Which of the following declarations is not correct? 8) a) char h = 'a'; b) char h = '@'; d) char h = '2'; c) char h = 'ali'; Which of the following identifiers is the keyword? 9) a) COUT b) Cout d) #cout c) cout Which operator has the lowest precedence? 10) a) % b)/ d) ++ c) +
Expert Solution
steps

Step by step

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