Strings, Streams & Numerics in C++ Quiz 1

0%
1

Strings, Streams & Numerics in C++ Quiz 1

1 / 50

What will happen if a string is empty?

2 / 50

How many parameters can a resize method take?

3 / 50

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

4 / 50

How many categories are available in facets?

5 / 50

Which is used for formatting purpose in c++?

6 / 50

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

7 / 50

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

8 / 50

Choose the correct formatted code.

9 / 50

Which objects information is loaded in locale object?

10 / 50

Where are standard C libraries defined in C++?

11 / 50

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

12 / 50

How does the strings are stored in the memory?

13 / 50

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

14 / 50

Where does a cin stops it extraction of data?

15 / 50

What is meant by ofstream in c++?

16 / 50

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

17 / 50

Which is used to get the input during runtime?

18 / 50

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

19 / 50

What can be improved by formatting the source code?

20 / 50

What will the monetary facet will do?

21 / 50

How many tests are available in read and write operations?

22 / 50

How many parameters are available in the function setbuf?

23 / 50

Which header file is used to manipulate the string?

24 / 50

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

25 / 50

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

26 / 50

How many streams are automatically created when executing a program?

27 / 50

What is the use of the function "showbase"?

28 / 50

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

29 / 50

When will the cin can start processing of input?

30 / 50

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

31 / 50

Which operator is used to insert the data into file?

32 / 50

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

33 / 50

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

34 / 50

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

35 / 50

Which is an instantiation of the basic_string class template?

36 / 50

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

37 / 50

Which operator is used for input stream?

38 / 50

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

39 / 50

By using which function does the buffer are automatically flushed?

40 / 50

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

41 / 50

Where are the strings stored?

42 / 50

How many parameters are there in getline function?

43 / 50

Which constant member functions does not modify the string?

44 / 50

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

45 / 50

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

46 / 50

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

47 / 50

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

48 / 50

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

49 / 50

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

50 / 50

Which character is used to terminate the string?

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