SAP Labs Scholar Mock Test-1

Hey Shouters!! Today we have come up with the SAP labs scholar mock test for you.

514
Created on By useruser

Sap Labs Scholar Mock Test 2020

1 / 15

In a time-sharing operating system, when the time slot given to a process is completed, the process goes from the running state to the __________

2 / 15

Which is the correct format of writing JSON name/value pair?

3 / 15

import java.util.*;

public class hashSet
{
public static void main(String[] args)
{
HashSet<String> hashSet = new HashSet<>();
hashSet.add("Shout");
hashSet.add("Now");
hashSet.add("Coders");
hashSet.add("Shout Coders");

System.out.println(hashSet);

}
}

4 / 15

public class Test implements Runnable
{
public void run()
{
System.out.printf("Shout");
}
public static void main(String[] args) throws InterruptedException
{
Thread thread1 = new Thread(new Test());
thread1.start();
thread1.start();
System.out.println(thread1.getState());
}
}

5 / 15

import java.util.*;
class Bitset
{
public static void main(String args[])
{
BitSet obj = new BitSet(5);
for (int i = 0; i < 5; ++i)
obj.set(i);
obj.clear(2);
System.out.print(obj);
}
}

6 / 15

A single read statement can be used with one or more variables.

7 / 15

What is the time complexity to insert a node based on position in a priority queue?

8 / 15

import java.util.*;
class Bitset
{
public static void main(String args[])
{
BitSet obj = new BitSet(5);
for (int i = 0; i < 5; ++i)
obj.set(i);
obj.clear(2);
System.out.print(obj);
}
}

9 / 15

What is the functionality of the following piece of code?

public Object delete_key()
{
if(count == 0)
{
System.out.println("Q is empty");
System.exit(0);
}
else
{
Node cur = head.getNext();
Node dup = cur.getNext();
Object e = cur.getEle();
head.setNext(dup);
count--;
return e;
}
}

10 / 15

To spawn a child of our own choice for running the script, we can use ___ command.

11 / 15

Choose the statement which is incorrect with respect to dynamic memory allocation?

12 / 15

#include <stdio.h>
int main()
{
int ary[2][3];
foo(ary);
}
void foo(int *ary[])
{
int i = 10, j = 2, k;
ary[0] = &i;
ary[1] = &j;
*ary[0] = 2;
for (k = 0;k < 2; k++)
printf("%d\n", *ary[k]);
}

13 / 15

SELECT *
FROM student JOIN takes USING (ID);
The above query is equivalent to

14 / 15

The query given below will not give an error. Which one of the following has to be replaced to get the desired output?

SELECT ID, name, dept name, salary * 1.1
WHERE instructor;

15 / 15

#include <stdio.h>
void main()
{
int a[3] = {1, 2, 3};
int *p = a;
int *r = &p;
printf("%d", (**r));
}

Your score is

The average score is 38%

0%

In this mock test, you will get a real-time experience of the online test that you will get in your SAP Labs Scholar Placement drive.

This mock test is just for practice person, not the exact type of paper that you will get in your online test.

sap labs Scholar Mock test

What is Scholar@SAP Program?

SAP Labs is one of the SAP’s main Research and Development entity and is responsible for developing and improving the SAP solutions. SAP Labs is also know as the Best Place to Work for in 2020.

Scholar@SAP is one of the Best Work Integrated Program in India. In this program, you will work simultaneously and will do higher studies.

You can check more about SAP Labs at SAP.com

What you will get in Scholar@SAP ?

If you have completed the B.Tech in Computer Science or Electronics and Communications or BCA then you are eligible for the Scholar@SAP.

In this offer, you will get

  1. M.Tech in Software Engineering from BITS, Pilani (Fully Paid)
  2. A stipend of 25,000/- monthly
  3. On weekdays, you will work in the real-life industry, and on weekends we will do our studies.

Important Topics for Scholar@SAP-

For Online Test, you have to work very smartly to clear the Online test as it is very time restricted. You must know the tricks to solve the problem fastly.

1. C and C++ Language Topics-

The important topics form the C and C++ language are:

  1. One Dimensional Array and Multi-Dimensional Array
  2. Pointers
  3. Structures and Unions
  4. Precedence and Order of Evaluation
  5. Conditional and Control Statements

Please share your valuable feedback on the feedback form or in the comment box below.

Recommended Posts –

  1. SAP Scholar Mock Test-2
  2. SAP Scholar Mock Test-3
  3. SAP Scholar Sample Test-4
  4. SAP Scholar Sample Test-5

Leave a Reply

Your email address will not be published. Required fields are marked *

Close Bitnami banner
Bitnami