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

 

Sasken Placement Paper -: Programming Questions With Answers


Advertisements
Advertisements




Sasken Previous Years Solved Sample Placement Papers

  1. Point out the error, if any, in the program. ```c #include int main() { int a = 10; switch(a) { } printf("This is C program."); return 0; } ```

    (a) Error: No case statement specified

    (b) Error: No default specified

    (c) No Error (Ans)

    (d) Error: Infinite loop occurs

  2. What will be the output of the program? ```c #include int addmult(int ii, int jj) { int kk, ll; kk = ii + jj; ll = ii * jj; return (kk, ll); } int main() { int i=3, j=4, k, l; k = addmult(i, j); l = addmult(i, j); printf("%d, %d\n", k, l); return 0; } ```

    (a) 12, 12 (Ans)

    (b) 7, 7

    (c) 7, 12

    (d) 12, 7

  3. In C, if you pass an array as an argument to a function, what actually gets passed?

    (a) Value of elements in array

    (b) First element of the array

    (c) Base address of the array (Ans)

    (d) Address of the last element of array

  4. Out of fgets() and gets(), which function is safe to use?

    (a) gets()

    (b) fgets() (Ans)

  5. In the following code, what is 'P'? ```c typedef char *charp; const charp P; ```

    (a) P is a constant (Ans)

    (b) P is a character constant

    (c) P is character type

    (d) None of the above

  6. What are the types of linkages?
    (A) Internal and External
    (B) External, Internal, and None
    (C) External and None
    (D) Internal
    Ans: B

  7. Which of the following is not a type of constructor?
    (A) Copy constructor
    (B) Friend constructor
    (C) Default constructor
    (D) Parameterized constructor
    Ans: B

  8. If C and G interchange their positions, which of the following will indicate A’s position?
    (A) To the immediate right of G
    (B) 4th to the right of C
    (C) 2nd to the left of G
    (D) To the immediate left of C
    (E) None of these
    Ans: D

  9. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1?
    (A) rem = 3.14 % 2.1;
    (B) rem = modf(3.14, 2.1);
    (C) rem = fmod(3.14, 2.1);
    (D) Remainder cannot be obtained in floating-point division.
    Ans: C




 


.

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