Strings, Streams & Numerics in C++ Quiz 1

0%
1

Strings, Streams & Numerics in C++ Quiz 1

1 / 50

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

2 / 50

How does the strings are stored in the memory?

3 / 50

What is the use of the function "showbase"?

4 / 50

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

5 / 50

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

6 / 50

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

7 / 50

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

8 / 50

Where does a cin stops it extraction of data?

9 / 50

How many parameters are there in getline function?

10 / 50

Which is an instantiation of the basic_string class template?

11 / 50

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

12 / 50

What is meant by ofstream in c++?

13 / 50

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

14 / 50

Which is used for formatting purpose in c++?

15 / 50

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

16 / 50

What will the monetary facet will do?

17 / 50

When will the cin can start processing of input?

18 / 50

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

19 / 50

Where are standard C libraries defined in C++?

20 / 50

Which header file is used to manipulate the string?

21 / 50

What will happen if a string is empty?

22 / 50

What can be improved by formatting the source code?

23 / 50

How many streams are automatically created when executing a program?

24 / 50

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

25 / 50

Which character is used to terminate the string?

26 / 50

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

27 / 50

Which operator is used to insert the data into file?

28 / 50

How many categories are available in facets?

29 / 50

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

30 / 50

Which objects information is loaded in locale object?

31 / 50

Which constant member functions does not modify the string?

32 / 50

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

33 / 50

Where are the strings stored?

34 / 50

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

35 / 50

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

36 / 50

How many parameters are available in the function setbuf?

37 / 50

How many tests are available in read and write operations?

38 / 50

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

39 / 50

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

40 / 50

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

41 / 50

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

42 / 50

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

43 / 50

Which operator is used for input stream?

44 / 50

Which is used to get the input during runtime?

45 / 50

Choose the correct formatted code.

46 / 50

How many parameters can a resize method take?

47 / 50

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

48 / 50

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

49 / 50

By using which function does the buffer are automatically flushed?

50 / 50

Which one is always faster in writing on 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