Euronet Objective/Coding Test
Euronet test --> Follow Java point MCQs (https://www.javatpoint.com/cpp-mcq-part-2#)
Same questions found in https://mcqsets.com/downloads/download-c-mcq-questions-pdf/
Same questions found in https://mcqsets.com/downloads/download-c-mcq-questions-pdf/
Coding question 1
int main()
{
vector<string> str;
str.push_back("Camel");
str.push_back("Horse");
str.push_back("Goat");
for(auto i= str.rbegin(); i != str.rend(); i++)
{
cout << *i <<std::endl;
swap(str[0], *i);
}
cout << str[2] <<std::endl;
}
Coding question 2
number N is given as input , such that 1< = N <= 100, Find Number X such that X is divisible by N and sum of digits of X is equal to N
(hint: X != N)
Coding question 3
int main()
{
std::ios::sync_with_stdio(false);
std::ios::sync_with_stdio(false);
vector<int> v{2,3,4,2};
for(auto i: v)
{
i--;
}
for(const auto &i: v)
{
cout << i-1 <<std::endl;
}
}
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdlib.h>
#include <unistd.h>
int main()
{
{
if(fork())
{
{
printf("child process created!");
}
else
{
{
printf("error in fork()");
}
}
which of the following is true about the above code if it is compiled in gcc++ 5.4
1) we need to replace all c header with c++ header
2) need to include only <bits/stdc++.h>
3) above code fails to compile
1) we need to replace all c header with c++ header
2) need to include only <bits/stdc++.h>
3) above code fails to compile
What is true statement about the below
A. BTree t;
B. BTree *t = new BTree;
1) A allocates memory on stack and B allocates on heap
2) A releases memory at end of the scope and B memory remains accessible outside scope
What is problem with below code:-
for(int m=2,m<4,m++)
1) Semicolon should be places instead of comma
2) Semicolon is missing at the end of the loop
3) for should have curly braces
which is equivalent to p-> val 1) *p.val 2) (*p).val 3) p.val
Which of the following is part of polymorphism 1) Function Overloading 2) Inheritance 3) Function overriding 4) Abstraction
int main()
{
std::string str_bad = "Bad allocation exception!";
try
{
throw 50;
}
catch(char c)
{
std::cout << "Character exception" <<std::endl;
}
catch(...)
{
std::cout << str_bad <<std::endl;
}
}
SDLC , If everyday there is a client call to clear the requirements what type of model it is
1) Agile 2) Ad-hoc model 3) Build & Fix 4) Waterfall
Which is the following is true about functionality of git branch
1) Create
2) List
3) Delete
4) Merge
SQL questions
go through material (https://www.goglides.dev/roshan_thapa/hackerrank-sql-problem-solving-questions-with-solutions-2017)
go through material (https://www.goglides.dev/roshan_thapa/hackerrank-sql-problem-solving-questions-with-solutions-2017)
Deleting a row
There is a table with 2 entries with ids as 1001 and 1002
1) DELETE ROW FROM EMPLOYEE_TABLE WHERE ID IS 1002
2) DELETE FROM EMPLOYEE_TABLE WHERE ID IS 1002
3) DELETE FROM EMPLOYEE_TABLE ID IS 1002
Fetching multiple rows
SELECT * EMP WHERE ID >= 1002 AND ID =< 1004
Comments
Post a Comment