We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Paper 1:
Total 26 Questions.

Identify each of these functions as character conversion functions or manipulation functions.
1. int isprint( int c )
int tolower( int c )

How can we declare a character array, is it different from integer array declaration? Give one example of character array declaration.
Write the output of following program.
#include<iostream.h>

int main()
{
int a[5] = {5, 1, 15, 20, 25};
int i, j, k, l, m;

i = ++a[1];
j = a[1]++;
k = a[i++];
l = a[i--]*i;
m = a[++i] - 1;

couti" "j" "k " "l" "m;

}

Write the code for a structure called Inventory having the following elements:
• A character array named partName
• An integer named partNumber
• An integer named stock.


Write the code of a main() function which takes command-line arguments and returns an integer type value.

Write a program which defines two strings "Hello" and "Pakistan", merges both the strings using string manipulation function and displays on the screen.


Write the output of following program.
#include<iostream.h>

int main()
{
int a[5] = {5, 1, 15, 20, 25};
int i, j, k, l, m;

i = ++a[1];
j = a[1]++;
k = a[i++];
l = a[i--]*i;
m = a[++i] - 1;

couti" "j" "k " "l" "m;

20 mcqs.mostly from past papers & 15-22 lectures
21) which bit of number is used as a sign bit?
22) open() & close() function advantage of memory utilization..
23) int array[7] is an int array type.what will b the statement for the fourth element of this array?
24 & 25 )write the output of the given code. 5 marks each

Subject Questions...
Q1. Write a program which will input ten integers into a array then sort it and find maximum and minimum integer in array.
Hint: Finding maximum and minimum is quite easier in sorted array. (10 Marks)
Q2. open() & close() function memory utilization advantages. (3 marks)
Q3. write down a syntax in which we can find the size of structure in bytes. (3 Marks)
Q4. Difference between and (& in pointers. (mark 5)
Q5. int num is an array then assign its address to point myPtr. (Mark 5)

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 316

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

so learn these questions

Q1.write the code to perform the following tasks

a. Declare a 2D array of integers having two rows and three columns.
b.declare a pointer and point it to the above declared array.
Q2.suppose there is structure named STUDENT and we wish to evaluate the size of this structure, Hoe it can be accomplished in C++?
Q3.write the program which declares and initialize an array of 10 integers and then displays the 4th and 8th element of the array by using a pointer?
Q.4. if any programming language structures and arrays are tools for collecting things having some common properties what is main difference between a structure and an array? Q5.we can use a pointer to character or an array of characters to store a string in C/C++which one the mentioned approaches is the most suitable approach for storing the string and why?

Q.6.Explain the logic of given program and write down its output
#include <iostream.h>
#include <string.h>
int main ()
{
char str [] =” This is a line.”
Char*p
p = strctr(str,’s’);
while (p!=Null) {
cout ”found at \n”p-str+1>>
P=strctr (p+1,’s’);
Return 0;
}

Nice dear

RSS

Latest Activity

+++ Haniya+++ liked +++ Haniya+++'s discussion shamm
10 minutes ago
+++ Haniya+++ liked +++ Haniya+++'s discussion ................
11 minutes ago
+++ Haniya+++ posted discussions
11 minutes ago
+++ Haniya+++ liked +++ Haniya+++'s discussion Poetry
14 minutes ago
Mushk replied to Mushk's discussion * * * Mohabbat Be-Niyazi Hai * * *
22 minutes ago
Mushk replied to Mushk's discussion * * * Mohabbat Be-Niyazi Hai * * *
23 minutes ago
+++ Haniya+++ liked +++ Haniya+++'s discussion Makes you Human
25 minutes ago
Mushk replied to Mushk's discussion * * * Mohabbat Be-Niyazi Hai * * *
30 minutes ago
+ ! ! ! ! ! ! CS619 replied to Mushk's discussion * * * Mohabbat Be-Niyazi Hai * * *
32 minutes ago
彡kaali 彡 ❤️ and +Furqan Jalib are now friends
37 minutes ago
stylo posted a discussion
54 minutes ago
+ IUUOƆƎUT + posted videos
2 hours ago

Today Top Members 

© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.