SAP Labs Scholar Mock Test -5

28 Likes Comment

Hey Shouters!! If you are preparing for Scholar@SAP 2020 and want to practice on the previous year’s questions. Shout Coders have come up with Scholar@SAP mock test paper.

41
Created on By useruser

Sap Labs Scholar MCQ Test-5

1 / 15

What is the degree of multiprogramming?

2 / 15

Which of the following scheduling algorithms gives minimum average waiting time?

3 / 15

What will be the output of the following JavaScript code?

var grade='E';
var result;
switch(grade)
{
case 'A':
result+="10";
case 'B':
result+=" 9";
case 'C':
result+=" 8";
default:
result+=" 0";
}
document.write(result);

4 / 15

Here which of the following displays the unique values of the column?

SELECT ________ dept_name
FROM instructor;

5 / 15

read command is shell’s internal tool.

6 / 15

What is the output of this C code?

#include <stdio.h>
main()
{
if (sizeof(int) > -1)
printf("True");
else
printf("False");
}

7 / 15

Which part of the program address space is p stored in the following C code?

#include <stdio.h>
int *p = NULL;
int main()
{
int i = 0;
p = &i;
return 0;
}

8 / 15

What will be the final value of d in the following C code?

#include <stdio.h>
int main()
{
int a = 10, b = 5, c = 5;
int d;
d = b + c == a;
printf("%d", d);
}

9 / 15

What will be the output of the following C code?

#include <stdio.h>
void main()
{
int k = 5;
int *p = &k;
int **m = &p;
printf("%d%d%d\n", k, *p, **m);
}

10 / 15

An array consists of n elements. We want to create a heap using the elements. The time complexity of building a heap will be in order of

11 / 15

Find the postorder traversal of the binary tree shown below.
postorder-traversal-questions-answers-q11

12 / 15

Which of the following is not a disadvantage to the usage of array?

13 / 15

What will be the output of the following Java code?

class A
{
public int i;
protected int j;
}
class B extends A
{
int j;
void display()
{
super.j = 3;
System.out.println(i + " " + j);
}
}
class Output
{
public static void main(String args[])
{
B obj = new B();
obj.i=1;
obj.j=2;
obj.display();
}
}

14 / 15

Which of the following will ensure the thread will be in running the state?

15 / 15

What will be the output of the following Java program?

class Output
{
public static void main(String args[])
{
int arr[] = {1, 2, 3, 4, 5};
for ( int i = 0; i < arr.length - 2; ++i)
System.out.println(arr[i] + " ");
}
}

Your score is

The average score is 59%

0%

Recommended Posts-

  1. SAP Labs Scholar Important Interview Questions
  2. SAP Labs Scholar Mock Test-1
  3. SAP Labs Scholar Mock Test-2
  4. SAP Labs Scholar Mock Test-3
  5. SAP Labs Scholar Mock Test-4

You might like

Avatar

About the Author: Akshay sharma

Hey Shouters!!. I am the CEO of Shoutcoders.com. I have completed the Electronics and Communication Engineering from Guru Nanak Dev University, Amritsar, Punjab. I Cleared TCS Codevita with a rank of 5,035. Got a Job Offer from TCS, India through it. Also, Got Job offer from SAP Labs, India as a Scholar. I will be joining soon. The aim of our website is to provide programming knowledge in simplest way.

Leave a Reply

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

Close Bitnami banner
Bitnami