Friday 16 December 2016

UGC Net Computer Science Paper II Dec 12 Page 1 (Solved)

UGC Net Computer Science Paper II Dec 12

1. Consider the circuit shown below. In a certain steady state, Y is at logical ‘l’.What are possible values of A, B, C ?
(A) A = 0, B = 0, C = 1
(B) A = 0, B = C = 1
(C) A = 1, B = C = 0
(D) A = B = 1, C = 1
Flip-flop UGC Net Computer Science Paper II Dec 12

Answer A
Explanation : Nand gate behave opposite of and gate so if any 0 in input then result will be 1. So output Y will be 1 if A = 0, B = 0, C = 1

Wednesday 14 December 2016

Prepare Statement Select Mysqli

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Girfa : My SQLi Tutorial</title>
</head>

<body><?php
$servername 
"localhost";
$username   
"root";
$password   
"";
$dbname     
"tmp";

Write a program to copy a file into another file.

Q. Write a program to copy a file into another file?

/*   ###########################
     Girfa : Student Help
     for more program visit : http://girfahelp.blogspot.in/p/c-language.html
     copy a file content to another file
     ############################
*/
#include<stdio.h>
#include<conio.h>
void main()
{
     FILE *sfile,*dfile;
     char ch;
     int flag=1;
     clrscr();
     sfile=fopen("source.txt","r"); /* Source file */
     if(sfile==NULL)

Write a program to find the power of number using function.

Q. Write a program to find the power of number using function.

/*   ###########################
     Girfa : Student Help
     for more program visit : http://girfahelp.blogspot.in/p/c-language.html
     Power of a number using function
     ############################
*/
#include<stdio.h>
#include<conio.h>
int power(int,int);
void main()
{
     int n,p;
     clrscr();
     printf("Enter number>> ");
     scanf("%d",&n);
     printf("Enter Power>> ");
     scanf("%d",&p);
     printf("\n\nPower of %d by %d is %d",n,p,power(n,p));
     getch();

}