Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position


Join the forum, it's quick and easy

Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position
Virtual Position Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

CS410 – VISUAL PROGRAMMING Assignment No.1 Solution

View previous topic View next topic Go down

GMT + 3 Hours CS410 – VISUAL PROGRAMMING Assignment No.1 Solution

Post by saleha Tue Nov 12, 2013 4:31 pm

Assignment No. 1
Semester: FALL 2013
CS410 – VISUAL PROGRAMMING


Total Marks: 20 (Non-Graded)


Due Date:
20th November, 2013


Application:



XYZ Technologies


XYZ Technologies is a leading international provider of automated and IT enabled solutions catering to businesses across various verticals around the globe. Since its inception in 1995, XYZ has regimented itself being committed to deliver the best software solutions. XYZ has ever since used highly experienced resources in analysis, development, quality assurance, and implementation to provide a wide range of high-quality consulting services and cost-effective development of customized application software. XYZ’s worldwide domain and subject matter expertise, proven track record and the capability to act as solution integrators can give you a truly cost-effective solution that not only meets, but surpasses your needs.

Scenario:


XYZ –Competition For Win32 Programmers


XYZ wants to start a new project for which they require employees who have good C/C++ background. The HR department has arranged a competition in which employees with C/C++ background will participate. The objective of this competition is to select best employees among all of them.

C/C++ - Competition:

The following set of questions is made for the employees who will participate in this competition. Now you as an employee need to solve the given questions:

A. Consider the following cases

long float i, *ptr;
ptr = &i;

ptr = ptr + 2;


double num, *nptr;
nptr = #

nptr = nptr + 3;

Sponsored Links


char nam, * naptr;
naptr = &nam;

naptr = naptr + 5;

long double numb, *nbptr;
char *ncptr;

nbptr = &numb;

ncptr = (char *)naptr + 4;


How many numbers of bytes will be skipped in each case?

B. Write the following RAM addresses in Hexadecimal form:


S.No. RAM Addresses Hexadecimal

1 4564

2 2531

3 986

4 389


5 54698







C. Define a structure which should consist of one char variable, one double variable and one float variable. Then define a pointer variable of that structure and use this pointer to skip 100 bytes.


D. Read the following statements? (Reference: Concern Lecture No. 3 video lecture and slides for complete understanding of concept).
a. char *(*strg)(char);

b. int **numb[];

c. double *fun(float);

d. long double (*cube)(double);

e. char *( *myname[40])( char, char);

Lecture Covered: This Assignment covers Lecture No.1 – Lecture No. 5
Deadline: Your assignment must be uploaded on or before 20th November, 2013.

Note: This assignment is Non-Graded and its marks will not be included in course final weightage but upcoming assignments will be based on this assignment
.
saleha
saleha
Monstars
Monstars

Pisces Dragon
Posts : 469
Join date : 2012-01-28
Age : 36
Location : ...
Blah

Back to top Go down

View previous topic View next topic Back to top


Permissions in this forum:
You cannot reply to topics in this forum