.
  Vyom World.com . Let's Touch the Sky Together!  
.

Home
VyomWorld.com Home
Interview Questions
VyomLinks.com Home
JobsAssist.com Home
Vyom Network
Contact Us
Jobs & Careers
Resume Submitter
Placement Papers
IT Companies Directory
Computer Jobs
Interview Questions
Online Exams
Vyom Career eMag.
Fun
Send FREE SMS!
SMS Jokes
Source Codes Library
Source Codes Home
ASP Source Codes
C Source Codes
C++ Source Codes
COBOL Source Codes
Java Source Codes
Pascal Source Codes
Submit Source Codes
GATE
GATE an Overview
GATE Preparation
Study Materal
GRE
GRE an Overview
GRE Questions
GRE Preparation
GRE Universities
TOEFL Preparation
TOEFL Resources
GMAT Preparation
GMAT Resources
MBA Preparation
MBA Resources
Networking Concepts
Networking Concepts
Testing Preparation
Testing Resources
Webmasters
Free Traffic Builder
Webmaster Articles
Web Hosting
Tutorials
Hardware Tutorial
1500 Free eBooks New!


Home » Placement Papers » SAPLAB Placement Papers » SAPLAB Previous Year Placement Paper

 

SAPLAB Placement Paper -: Data Structures and Algorithms Questions With Answers


Advertisements
Advertisements




SAPLAB Previous Years Solved Sample Placement Papers

  1. Consider the function:
    Find(int x, int y)
    {
    return ((x }
    The call find(a, b) can be used to find:

    A. Maximum of a, b

    B. Positive difference of a, b Answer: Option B

    C. Sum of a, b

    D. Minimum of a, b

  2. If abc is the input, the following program fragment:
    char x, y, z;
    printf("%d",scanf("%c%c%c", &x, &y, &z));
    Results in:

    A. A syntax error

    B. A fatal error

    C. Segmentation violation

    D. Printing of 3 Answer: Option D

  3. Consider the statements:
    putchar(getchar());
    putchar(getchar());
    If "ab" is the input, the output will be:

    A. An error message

    B. This can’t be input

    C. ab

    D. a b Answer: Option D

  4. The operators , || < = arranged in ascending order of precedence:

    A. , || < =

    B. = < || ,

    C. = || < ,

    D. < || = , Answer: Option D

  5. The following program fragment:
    unsigned i = -1;
    int j = -4;
    printf("%u", i + j);
    Prints:

    A. Garbage

    B. -3

    C. An integer that changes from machine to machine

    D. None of the above Answer: Option C

  6. The following program fragment:
    for(i = 3; i < 15; i += 3);
    printf("%d", i);
    Results in:

    A. A syntax error

    B. An execution error

    C. Printing of 12

    D. Printing of 15 Answer: Option D

  7. Pick the wrong statement from the following program:
    int main(void) {
    int i = 100;
    int *pi = &i;
    int **dpi = π;
    }

    A. dpi to store a pointer with the address for pi is a double pointer

    B. (*pi == i) is true

    C. (*pi == **dpi) is true

    D. (*dpi == 100) is true Answer: Option D

  8. Below, please find the results for the program:
    int counter = 0, i;
    for(i = 0;; i++) {
    if(i < 100) continue;
    counter++;
    if(counter == 100) break;
    }
    printf("%d%d", i, counter);

    A. 199 100

    B. 200 100 Answer: Option B

    C. 199 99

    D. 200 0




 


.

Recently Updated: New Placement Papers added.
Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Programming & Source Codes | GRE Preparation | Jobs, Discussions | Software Listing | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | International Business Information | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | FAQs | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Excellent Mobiles | Software Testing | Interview Questions | Freshers Jobs | Server Insiders | File Extension Directory

Copyright ©2003-2024 Vyom Technosoft Pvt. Ltd., All Rights Reserved. Read our Privacy Policy