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

 

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


Advertisements
Advertisements




Samsung Previous Years Solved Sample Placement Papers

  1. What is the output of the program?

    
    char *c = 'a';
    printf("%d %d %d", sizeof(c), sizeof('a'), sizeof(*c));
        

    A. 4, 1, 1 Answer: Option A

  2. class abc { static int i; int a; }; abc ob; cout << sizeof(ob);

    ANS: 8

  3. class abc { }; abc ob; cout << sizeof(ob);

    Ans: 1 (size of object of empty class is 1)

  4. int i = 512; char *c = (char *)&i; c[0] = 1; printf("%d", i);

    Ans: 513

  5. int *b = {1, 2, 3, 4, 5, 6, 9, 8}; printf("%d", (b + 1)[5]);

    Ans: Error

  6. static int i; main() { if (i == 5) printf("Samsung"); i++; return (i = main()); }

    Ans: Stack Overflow

  7. main() { printf("%s", printf("Samsung") + fun()); } fun() { return "electronic"; }

    Ans: Samsung

  8. char *a = "hello\0world\0!!"; printf("%d", strlen(a)); a = a + 6; printf("%d", strlen(a)); a = a + 7; printf("%d", strlen(a));

    Ans: 5, 5, 1

  9. struct abc { }; struct abc arr[10]; struct abc *p = arr; Which will be increment the pointer to point the next array element?

    Ans: p = p + sizeof(abc);

  10. int main() { char a = '\0'; printf("%d", a); return 0; }

    Ans: 0

  11. When does the CPU service interrupt?

    A. after executing the current instruction Answer: Option A

  12. On switch on the computer, which loader comes in action first?

    Ans: Boot Strap Loader

  13. Which of the following are not related to the file system?

    Ans: files are in main memory

  14. How many nodes will make a complete binary tree?

    Ans: 15

  15. Property of Heap?

    Ans: Every Node is Greater Than its Child

  16. In the case of recursion, what is overhead?

    Ans: Stack

  17. Which languages necessarily need heap allocation in the runtime environment?

    A. Those that support recursion

    B. Those that use dynamic scoping

    C. Those that allow dynamic data structures Answer: Option C

    D. Those that use global variables

  18. main() { int i = -1; -i; printf("%d", i); return 0; }

    Ans: -1

  19. main() { char *p; printf("%d %d", sizeof(*p), sizeof(p)); }

    Answer: 1, 4

  20. How many times will printf be executed?

    
    main() {
      for (int i = -1; i <= 10; i++) {
        if (i == 5) continue;
        else break;
        printf("samsung");
      }
    }
        

    Ans: 0 times




 


.

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