Thursday 31 August 2017
Preprocessor Directive
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Computer Fundamental MCQ CCC
CCC Fundamental MCQ/True-False Question with Answer
Multiple Choice
1. How many types of memory used in computer?A) 1
B) 2
C) 3
D) 4
2. Which Type of memory got outdated?
A) PROM
B)EEPROM
C)CD
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Wednesday 23 August 2017
Command Line Argument
C language is known as a language of building block of
function. It means all the things achieved by the language using function.
A function is a set of some valid statements of language. Which
achieved some specific task? You need to know some information about function
before using it.
- Function name
- Return type
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Tuesday 22 August 2017
Print Some Character from a File
Q : Write a ‘C’ program to print only first 12 characters including blank space from file test.txt.
Solution :
Solution :
#include<stdio.h>
#include<conio.h>
void main()
{
FILE *pt;
int i;
char ch;
pt=fopen("test.txt","r");
if(pt==NULL)
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Structure size without sizeof operator
Q : Write a ‘C’ program to find size of structure without using sizeof operator.
Solution :
#include<stdio.h>
typedef struct stu
{
int roll;
char
name[20];
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Monday 21 August 2017
Write A Line to File
Q: Write a ‘C’ program to write a line of string at a text file.
Solution :
#include<stdio.h>
void main()
{
FILE *pt;
char
ar[100];
int i;
printf("Enter
the Text>> ");
gets(ar);
pt=fopen("test.txt","w");
if(pt==NULL)
puts("Unable
to open file");
else
{
for(i=0;ar[i]!='\0';i++)
putc(ar[i],pt);
}
printf("\nData
created successfully");
fclose(pt);
}
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Saturday 19 August 2017
Sorting C Language Keyword Program
Q : Write a ‘C’ program to list of keywords which must be sorted in increasing order in the table.
Solution :
#include<stdio.h>
int power(int,int);
void main()
{
char
keyword[][15]={"char","do","extern","if","return","static","union","while","case","default","enum","goto","register","
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Friday 18 August 2017
Disable Enable Datagrid column Editing
You can disable to edit some column and make other read only from DataGridview in Windows Programming, For some special circumstances like on a shop sales bill editing . A user need to change product, quantity and
rate but not Total . Total will be calculated by product of rate and quantity. If
Total pr
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
CCC Syllabus
COURSE ON COMPUTER CONCEPTS (CCC)
OBJECTIVE:
The course is designed to equip a person to use computers for professional as well as day to day use. It provides theoretical background as well as in depth knowledge of Software/ packages. After completing the course the incumbent will be digitally literate and will be able to:
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Thursday 17 August 2017
Power of number using function
Q: Write a ‘C’ program to find the power of number using function.?
Solution :
#include<stdio.h>
int power(int,int);
void main()
{
int n,p;
printf("Enter number>>
");
scanf("%d",&n);
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Wednesday 16 August 2017
Word Count
Q : Write a ‘C’ program to count number of words in a string.
Solution :
#include<stdio.h>
void main()
{
char
str[50];
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Sunday 13 August 2017
Jquery HTML Tag Select
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Jquery Name Selector
You can select html control by
its name. Selecting a single control or group of controls is become important
in some special web operation requirement. I am going to demonstrate you to
select more than one checkbox for payment which may be useful to design some payment
related website.
Roll | Name | Subject | |
---|---|---|---|
101 | Sona | Hindi | |
102 | Mona | Art | |
103 | Sita | Maths | |
104 | Anita | English | |
105 | Babita | Hindi |
Code :
<html>
<head>
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Saturday 12 August 2017
C Language O Level January-2014 Solved Paper
1. Multiple Choice
1.1 : D
Explanation :
Integer and float both are in arithmetic statement So integer will be promoted as float . final result will be consider as float that is why sizeof operator print 4 instead of 2.
Variable is not initialized after decoration So variable
will have garbage data which most of time be a negative number. So 6-1=5
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Friday 11 August 2017
Array of structure
Q: Define a structure of student with the following fields: rollNo, name and marks. Write a program to read and store the data of at most 30 students in an array. Also display the average marks of
the students.
Solution :
#include<stdio.h>
#define MAX 3
typedef struct
Stu
{
int roll;
char
name[20];
int mark;
}student;
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
IDENT_CURRENT SQL Server
IDENT_CURRENT returns newly inserted record‘s auto
increment value. So you can use this data while inserting a record it can be
useful in many times. For example you want to return newly inserted record is
for other task etc.
USE [girfa]
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
--
=============================================
--
Author: Raj Kumar
--
Create date: 08-Aug-2017
--
Description: Girfa Student Help
--
=============================================
alter PROCEDURE [dbo].[adddata]
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Vowel Count Switch statement
Q : using a switch statement, write a function to count the number of vowels and number of blanks
in a character array passed to it as an argument.
Solution
#include<stdio.h>
#define MAX 20
void count(char*);
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Prime number in given range
Q : Write a program to display all the prime numbers between two positive integers m and n. The values of m and n are to be taken from the user.
Solution :
#include<stdio.h>
void main()
{
int n,m,p;
printf("Enter range starting
number>> ");
scanf("%d",&m);
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Thursday 10 August 2017
Jquery ID Selector
Enter Comment:
<html>
<head>
<title>Jquery Selector Girfa Student Help</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#container").text($("#data").val());
});
});
</script>
</head>
<body>
Enter Comment: <br /><textarea id="data" rows="7" cols="50"></textarea><br /><br /> <button>Add</button>
<p id="container">
</p>
</body>
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Wednesday 9 August 2017
Jquery class selector
You can select a HTML tag with its class name which is used
by tag. When you know class name then you can add custom HTML from a function
of java script using jquery class selector.
<html>
<head>
<title>Girfa
Student Help</title>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.2.1.min.js"></script>
<style>
.para
{
text-align:center;
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Subscribe to:
Posts (Atom)