Strings, Streams & Numerics in C++ Quiz 1

0%
1

Strings, Streams & Numerics in C++ Quiz 1

1 / 50

Pick out the correct objects about the instantiation of output stream.

2 / 50

Which is used to get the input during runtime?

3 / 50

How many tests are available in read and write operations?

4 / 50

What will act as a intermediate between i/o operations and physical file?

5 / 50

Which objects information is loaded in locale object?

6 / 50

By using which function does the buffer are automatically flushed?

7 / 50

What will happen if a string is empty?

8 / 50

Which is an instantiation of the basic_string class template?

9 / 50

What must be specified when we construct an object of class ostream?

10 / 50

How many objects are used for input and output to a string?

11 / 50

Which operator is used to insert the data into file?

12 / 50

Which member function is used to determine whether the stream object is currently associated with a file?

13 / 50

What will the monetary facet will do?

14 / 50

Which operator is used for input stream?

15 / 50

How many number of spaces should be set in default tab?

16 / 50

Which header file is used with input and output operations of C in C++?

17 / 50

Pick out the correct syntax of the header file that can be used with C++.

18 / 50

Which of the following have their changes in their declaration related to constness of parameter?

19 / 50

What is the use of the function "showbase"?

20 / 50

When will the cin can start processing of input?

21 / 50

Which function is used to position back from the end of file object?

22 / 50

Which header file is used to manipulate the string?

23 / 50

Which function allows you to set minimum width for the next input?

24 / 50

Choose the correct formatted code.

25 / 50

Which will be used with physical devices to interact from C++ program?

26 / 50

Which character is used to terminate the string?

27 / 50

Which header file is used for reading and writing to a file?

28 / 50

How many streams are automatically created when executing a program?

29 / 50

Which constant member functions does not modify the string?

30 / 50

How does the limits.h header file can be represented in C++?

31 / 50

What is the difference between unsigned int length() and unsigned int size()?

32 / 50

How many parameters are available in the function setbuf?

33 / 50

What kind of locale does every program is having in C++?

34 / 50

How many maximum number of parameters does a string constructor can take?

35 / 50

How many groups of output of operation are there in c++?

36 / 50

How many types of output stream classes are there in c++?

37 / 50

What is meant by ofstream in c++?

38 / 50

How does the strings are stored in the memory?

39 / 50

Where does a cin stops it extraction of data?

40 / 50

Where are standard C libraries defined in C++?

41 / 50

What is the main feature of locale in C++?

42 / 50

How many elements does a floating point number is composed of?

43 / 50

How many parameters can a resize method take?

44 / 50

What can be improved by formatting the source code?

45 / 50

Which one is always faster in writing on C++?

46 / 50

Where are the strings stored?

47 / 50

What can be used to input a string with blank space?

48 / 50

How many categories are available in facets?

49 / 50

How many parameters are there in getline function?

50 / 50

Which is used for formatting purpose in c++?

Provide Your Information

Your score is

The average score is 2%

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