Submit Test?

You have answered 0 out of 40 questions. Once submitted, you cannot change your answers.

Time's Up!

The test duration has ended. You must submit your test now to record your answers.

Logo

Test Submitted!

Questions Answered: 0/40
Institution: Keyvalue Software Systems
Next
1 Our team will review your answers and score
2 If qualified, you'll be contacted to the next round of hiring process.
Logo
Logo
Questions Answered
0/10
Timer
Time Remaining 60:00

KeyValue Assessment- Batch 2026 Screening Test

Software Engineering MCQ Test

Questions List

Total Questions

40 Questions

Timer

Duration

60 Minutes

Full Name is required
College/Institution is required
Info

Please note:

‣ The timer will start immediately when you click "Start Test"

‣ You can only submit the test once

‣ Make sure you have a stable internet connection

1
What is the output of the following code?
#include <iostream>
using namespace std;
int main() {
    int a = 10;
    int &b = a;
    b = 20;
    cout << a;
}
2
What is the output of the following code?
#include <iostream>
using namespace std;
void fun(int a, int b = 5, int c = 10) {
    cout << a << " " << b << " " << c;
}
int main() {
    fun(1, 2);
}
3
What is the output of the following code?
#include <iostream>
using namespace std;
void test(int x) {
    static int y = 0;
    y += x;
    cout << y << " ";
}
int main() {
    test(5);
    test(10);
    test(15);
}
4
What is the output of the following code?
#include <iostream>
using namespace std;
void fun(int n) {
    if (n == 0) return;
    fun(n - 1);
    cout << n;
}
int main() { fun(3); }
5
What is the output of the following code?
#include <iostream>
using namespace std;
int main() {
    int a = 10;
    cout << sizeof(++a);
    cout << " " << a;
}
6
What is the output of the following code?
#include <iostream>
using namespace std;
int main() {
    int arr[] = {10, 20, 30};
    int *p = arr;
    cout << *(p++) << " " << *p;
}
7
What is the output of the following code?
#include <iostream>
using namespace std;

class Base {
public:
    Base() { cout << "B"; }
    virtual ~Base() { cout << "~B"; }
};

class Derived : public Base {
public:
    Derived() { cout << "D"; }
    ~Derived() { cout << "~D"; }
};

int main() {
    Base* obj = new Derived();
    delete obj;
    return 0;
}
8
Find the output of this Python code snippet
s = {1, 2, 3}
s.add([4, 5])
print(s)
9
What is the output of the following code?
#include <stdio.h>
#define PRINT(x) printf(#x " = %d\n", x)
int main() {
    int a = 5, b = 10;
    PRINT(a + b);
    return 0;
}
10
What is the output of the following code?
public class Main {
    public static void main(String[] args) {
        int x = 2;
        switch(x) {
            case 1: case 2: case 3:
                System.out.print("A");
            case 4: case 5:
                System.out.print("B");
            default:
                System.out.print("C");
        }
    }
}