.
  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 » Verifone Placement Papers » Verifone Previous Year Placement Paper

 

Verifone Placement Paper -: Programming Questions And Answers


Advertisements
Advertisements




Verifone Previous Years Solved Sample Placement Papers

  1. main()
    {
    int i;
    printf("%d", &i)+1;
    scanf("%d", i)-1;
    }

    a. Runtime error.

    b. Runtime error. Access violation.

    c. Compile error. Illegal syntax Ans: c. Compile error. Illegal syntax

    d. None of the above

  2. main()
    {
    int i, j, *p;
    i = 25;
    j = 100;
    p = &i; /* Address of i is assigned to pointer p */
    printf("%f", i/(*p)); /* i is divided by pointer p */
    }

    a. Runtime error.

    b. 1.00000

    c. Compile error Ans: c. Compile error

    d. 0.00000

  3. main()
    {
    int i, j;
    scanf("%d %d"+scanf("%d %d", &i, &j));
    printf("%d %d", i, j);
    }

    a. Runtime error.

    b. 0, 0

    c. Compile error

    d. the first two values entered by the user Ans: d. the first two values entered by the user

  4. main()
    {
    char *p = "hello world";
    p[0] = 'H';
    printf("%s", p);
    }

    a. Runtime error Ans: a. Runtime error

    b. “Hello world”

    c. Compile error

    d. “hello world”

  5. Which of the following problem causes an exception?

    A: Missing semicolon in statement in main().

    B: A problem in calling function

    C: A syntax error

    D: A run-time error

    Ans: D
  6. Which one of the following options is correct about the statement given below? The compiler checks the type of reference in the object and not the type of object.

    A: Inheritance

    B: Polymorphism

    C: Abstraction

    D: Encapsulation

    Ans: B
  7. const int perplexed = 2;
    #define perplexed 3
    main()
    {
    #ifdef perplexed
    #undef perplexed
    #define perplexed 4
    #endif
    printf(“%d”,perplexed);
    }

    a. 0

    b. 2

    c. 4 Ans: c. 4

    d. none of the above

  8. struct Foo
    {
    char *pName;
    };
    main()
    {
    struct Foo *obj = malloc(sizeof(struct Foo));
    strcpy(obj->pName,"Your Name");
    printf("%s", obj->pName);
    }

    a. “Your Name”

    b. compile error

    c. “Name”

    d. Runtime error Ans: d. Runtime error

  9. struct Foo
    {
    char *pName;
    char *pAddress;
    };
    main()
    {
    struct Foo *obj = malloc(sizeof(struct Foo));
    obj->pName = malloc(100);
    obj->pAddress = malloc(100);
    strcpy(obj->pName,"Your Name");
    strcpy(obj->pAddress, "Your Address");
    free(obj);
    printf("%s", obj->pName);
    printf("%s", obj->pAddress);
    }

    a. “Your Name”, “Your Address”

    b. “Your Address”, “Your Address”

    c. “Your Name” “Your Name”

    d. None of the above Ans: d. None of the above

  10. main()
    {
    char *a = "Hello ";
    char *b = "World";
    printf("%s", stract(a,b));
    }

    a. “Hello”

    b. “Hello World”

    c. “HelloWorld”

    d. None of the above Ans: d. None of the above

  11. main()
    {
    char *a = "Hello ";
    char *b = "World";
    printf("%s", strcpy(a,b));
    }

    a. “Hello”

    b. “Hello World”

    c. “HelloWorld”

    d. None of the above Ans: d. None of the above

  12. void func1(int (*a)[10])
    {
    printf("Ok it works");
    }
    void func2(int a[][10])
    {
    printf("Will this work?");
    }
    main()
    {
    int a[10][10];
    func1(a);
    func2(a);
    }

    a. “Ok it works”

    b. “Will this work?”

    c. “Ok it works Will this work?” Ans: c. “Ok it works Will this work?”

    d. None of the above




 


.

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-2025 Vyom Technosoft Pvt. Ltd., All Rights Reserved. Read our Privacy Policy