| Snaprecruit.com

| Snaprecruit.com

Interview question based on skill :

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. Which is used to check the error in the block?

Correct Answer is : y => 202

2. How to handle the exception in constructor?

Correct Answer is : segmentation fault

3. What should present when throwing a object?

Correct Answer is : 110

4. Which function is used to check whether a character is an alphabet?

Correct Answer is : 13

5. Which function is used to check whether a character is an alphabet or number?

Correct Answer is : It will not return value to its caller

6. Which function is used to check whether a character is a number?

Correct Answer is : 45337

7. Which function is used to check whether a character is a tab or space?

Correct Answer is : std namespace

8. Which function is used to check whether a character is tab or space or whitespace control code(\n,\r,etc.)?

Correct Answer is : To check if a variable is array type or not

9. Which function is used to check whether a character is tab or a control code?

Correct Answer is : 10

10. Which function is used to check whether a character is printable on console?

Correct Answer is : To check whether two variables have the same characteristics

11. Which function is used to check whether a character is hexadecimal?

Correct Answer is : 10

12. Which function is used to check whether a character is punctuation mark?

Correct Answer is : Returns the dimension of an array

13. What is the output of the following C++ code? #include #include using namespace std; int main(int argc, char const *argv[]) { char arr[12] = "Hello World"; for(int i=0;i<12;i++) { cout<<(bool)isalpha(arr[i]); } }

Correct Answer is : 123

14. What is the output of the following C++ code? #include #include using namespace std; int main(int argc, char const *argv[]) { char arr[12] = "H3ll0 W0r1d"; for(int i=0;i<12;i++) { cout<<(bool)isalpha(arr[i]); } cout<
Correct Answer is : Returns the size of a given dimension

15. What is the output of the following C++ code? #include #include using namespace std; int main(int argc, char const *argv[]) { char arr[12] = "H3ll0\tW0r1d"; for(int i=0;i<12;i++) { cout<<(bool)isprint(arr[i]); } }

Correct Answer is : 102030

16. What is the output of the following C++ code? #include #include using namespace std; int main(int argc, char const *argv[]) { char arr[12] = "H3ll0\tW0r1d"; for(int i=0;i<12;i++) { cout<<(bool)iscntrl(arr[i]); } }

Correct Answer is : Removes the first dimension from the left of the array

17. What is the output of the following C++ code? #include #include using namespace std; int main(int argc, char const *argv[]) { char arr[20] = "\'H3ll0\'"; for(int i=0;i<8;i++) { cout<<(bool)ispunct(arr[i]); } }

Correct Answer is : 12

18. What is the output of the following C++ code? #include #include using namespace std; int main(int argc, char const *argv[]) { char arr[27] = "abcdefghijklmnopqrstuvwxyz"; for(int i=0;i<27;i++) { cout<<(bool)isxdigit(arr[i]); } }

Correct Answer is : Removes the all dimension from an array

19. How many characters are specified in the ASCII scheme?

Correct Answer is : 0

20. Select the right option. Given the variables p, q are of char type and r, s, t are of int type 1. t = (r * s) / (r + s); 2. t = (p * q) / (r + s);

Correct Answer is : 2020