Posts

Gujarat University Trial exam link

GUJARAT UNIVERSITY TRIAL EXAM DETAILS AND LINK  Anyone who wants to give trial exam but not get any link in sms or email can give trial exam from this link. its provide by Gujarat University Demo userid and password already there. In case doesn't then, Userid = 55555 Password = test

Gujarat University BCA SEM - 3 Old Papers

    SEM-3 PAPERS No Subject Year Download 1 C++ 2017 2 C++ 2018 Click here 3 FOS 2017 Click here 4 FOS 2018 Click here 5 Statstic 2017 Click here 6 Statstic 2018 Click here 7 DS 2017 Click here 8 DS 2018 Click here 9 CO 2017 Click here 10 CO 2018 Click here

13/07 C++ Programs 1 to 9

Image
Questions Answer PRG -1 Ans #include<iostream.h> #include<conio.h> class smaller { public : int d1,d2; void min(); }; void smaller::min() { cout<<"Enter D1 = "; cin>>smaller::d1; cout<<"Enter D2 = "; cin>>smaller::d2; if(d1>d2) cout<<"D2 is smaller than D1"; else cout<<"D1 is smaller than D2"; } void main() { smaller min1; clrscr(); min1.min(); getch(); } PRG - 2 Answer //Prg -2 odd or even #include<iostream.h> #include<conio.h> class number { public: int d1; void check(); }; void number::check() { cout<<"Enter d1 = "; cin>>d1; if(d1==0) cout<<"D1 is Zero"; else if(d1%2==0) cout<<"D1 = "<<d1<<" is Even number." ; else cout<<"D1 = "<<d1<<" is Odd number."; } void main() { number num1; clrscr(); num1.check(); ge...

DHTML Unit 3 programs

Unit 3 Programs 1.Test if jQuery is loaded. ANS) <!DOCTYPE html> <html> <head> <title>Unit 3 - prg 1</title> <script src = "jquery.js" > </script> </head> <body> <script> $(document).ready( function() { $("p").click(function() { alert("This alert box show using Jquery......!"); }); }); </script> <p>Click for alert box</p> </body> </html> 2.Scroll to the top of the page with jQuery. ANS) <html> <head> <title>Unit 3 - prg 2</title> <script src="jquery.js"></script> <script > $(document).ready(function() { $("#top").bind("click",function() { $("html,body").animate({scrollTop:0},"slow"); }); $("#bottom").bind("click",function() { $("html,body").animate({scrollTop:1000},"slow"); }...

Semester 2 Syllabus

Click here to download sem 2 syllabus..........! download link

DHTML Unit 2 programs

UNIT - 2 Programs NOTE: ALL THE PROGRAMS DONE BY SHAKSHI SHAH.........! 1. Write a javascript to print your name and surname on screen. ANS) <html> <head> <title>UNIT 2 - prg 1</title> <script> function check() { var first,last; first = document.getElementById("v1").value; last = document.getElementById("v2").value; document.getElementById("ans").innerHTML= first + " "  +last; } </script> </head> <body> Name : <br> <input type="text"  id="v1"> <br><br> Surname : <br> <input type="text"  id="v2"> <br><br> <input type="button" onclick="check()" value="click to print name"> <br><br> <span id="ans"></span> <span id="ans1"></span> </body> </html> 2. Write a java...

DHTML Unit 1 programs

!..........DHTML Unit-1(CSS) program............! NOTE: ALL THE PROGRAMS DONE BY SHAKSHI SHAH.........! 1) Write HTML program which contains cascaded style sheet for p, h2, h3, body and font attribute. ANS) <!DOCTYPE html> <html> <head> <title>UNIT 1 - prg 1</title> <style> p { background-color:yellow; } h2 { color:red; //this will change font color to red... } h3 { font-size:45%;   //to change font size } </style> </head> <body> <p>This is p tag</p> <h2>This is h2 tag</h2> <h3>This is h3 tag</h3> </body> </html> 2)Write HTML program which contains external style sheet with user-defined Classes. ANS) HTML CODING : <!doctype html> <html> <head> <title>Unit 1 - prg 2</title> <link rel="stylesheet" href="css1.css" type="text/css"> </head> <body> <p c...

ACP Unit-4 Programs

ACP----Unit 4 Programs Note: 7 programs done..............! 1. Write a program to display contents of file on the screen. The program should ask for file name. Display the contents in capital case. ANS #include<stdio.h> #include<conio.h> void main() { FILE *fp; char letter,file_name[100]; clrscr(); printf("Enter file name(with extention) = "); gets(file_name); fp=fopen(file_name,"r"); if(fp == NULL) { printf("\nFile doesn't exits...!"); getch(); exit(0); } printf("\n"); while(!feof(fp)) { letter=getc(fp); if(letter>='a' && letter<='z') { printf("%c",letter-32); } else { printf("%c",letter); } } fclose(fp); getch(); } 2. Write a program to find size of the file. ANS #include<stdio.h> #include<conio.h> void main() { FILE *fp; ...

ACP Unit-2 Programs

ACP Unit 2 programs 1. Write a user defined function which will swap the values of two variables declared locally in the main program. ANS) #include<stdio.h> #include<conio.h> void swap(int *a,int *b); void main() { int n1,n2; clrscr(); printf("Enter value 1 = "); scanf("%d",&n1); printf("Enter value 2 = "); scanf("%d",&n2); printf("\nValues After swapping.........\n"); swap(&n1,&n2); printf("N1 = %d \nN2 = %d ",n1,n2); getch(); } void swap(int *a,int *b) { int tmp; //clrscr(); tmp=*b; *b=*a; *a=tmp; } 2. Write a user defined function calc(), which will returns the sum, subtraction, multiplication, and division values of two variable locally declared in the main function. ANS) #include<stdio.h> #include<conio.h> void calc(); void main() { int n1,n2,add,sub,mul,div; clrscr(); printf(...

ACP UNIT-1 programs + files

UNIT---1 1) Write a program to define structure with tag state with fields state name, number of districts and total population. Read and display the data.  ANS) #include<stdio.h> #include<conio.h> void main() { struct state { char nam[20]; long int  dis,pop; }state; clrscr(); printf("Enter Your state name = "); gets(state.nam); printf("Enter no of districts = "); scanf("%d",&state.dis); printf("Enter total population = "); scanf("%ld",&state.pop); printf("\n\nState name = %s",state.nam); printf("\n\nTotal District = %d",state.dis); printf("\n\nPopulation = %ld",state.pop); getch(); } 2) Write a program to create a list of books details. The details of a book include title, author, publisher, publishing year, number of pages, and price. ASN) #include<stdio.h> #include<conio.h>...