Strings, Streams & Numerics in C++ Quiz 2

0%
0

Strings, Streams & Numerics in C++ Quiz 2

1 / 42

Which of the following is used to create a stream that performs both input and output operations?

2 / 42

What is the benefit of c++ input and output over c input and output?

3 / 42

Which function is used to optimize the space in vector?

4 / 42

What is the use of ios::trunc mode?

5 / 42

1. Which of the following is the default mode of the opening using the ifstream class?

6 / 42

Which function is used in C++ to get the current position of file pointer in a file?

7 / 42

Which of the following is not used to seek file pointer?

8 / 42

What is the use of vector arithmetic in c++?

9 / 42

How many parameters are available in partial_sum function in c++?

10 / 42

Which header file is required to use file I/O operations?

11 / 42

By default, all the files in C++ are opened in _________ mode.

12 / 42

To which type does the numeric limits are suitable?

13 / 42

Which is a constant defined in header file?

14 / 42

Which of the following is the default mode of the opening using the fstream class?

15 / 42

Which operator is used to produce a certain number in a specific range?

16 / 42

Pick out the incorrect static function member in numeric limits.

17 / 42

Which of the following mathematical function is overloaded in and ?

18 / 42

What is the default operation of adjacent_difference function in numeric library?

19 / 42

Which header file is used for the numeric limits in C++?

20 / 42

Which of the following library is used to do vector arithmetic?

21 / 42

Which of the following is used to create an output stream?

22 / 42

How many indicators are available in c++?

23 / 42

Which can be used to create a random number without duplication?

24 / 42

Which header file is used to operate on numeric sequences?

25 / 42

With which does the trigonometric functions work with angles in c++?

26 / 42

Which header file is used to manipulate the vector algebra in c++?

27 / 42

Which of the following is used to move the file pointer to start of a file?

28 / 42

Where does the member should be defined if it is used in the program?

29 / 42

Which function is used to reposition the file pointer?

30 / 42

How many parameters are used in frexp function?

31 / 42

What is the use of accumulate function in a numeric library?

32 / 42

How many macros are used by mathematical functions in the header file ?

33 / 42

What type of reference should be used in vector arithmetic?

34 / 42

What will the max function in the numeric limit will return for type float?

35 / 42

Which of the following is the default mode of the opening using the ofstream class?

36 / 42

Which mathematics library is used for vector manipulation in c++?

37 / 42

How many parameters are available in srand function?

38 / 42

Which header file is required for manipulation of math functions in c++?

39 / 42

Which of the following is not used as a file opening mode?

40 / 42

What will be the type of output of vector cross product?

41 / 42

Which header file is used to create the pseudo random generator?

42 / 42

What is the return type open() method?

Provide Your Information

Your score is

The average score is 0%

0%

Qunoot e Nazilah
Dua e Hajat
4 Qul
6 Kalma
Dua-e-Akasha
Darood Akbar
Surah Fatiha
Dua-e-Ganj Ul Arsh
Dua-e-Jamilah
Ayat-ul-Kursi