CS201-Short Notes
IF U JOIN OUR WHATSAPP GROUP THEN CLICK HERE
☺☺
IF U JOIN OUR FACEBOOK GROUP THEN CLICK HERE
Comment Below your subject codes to get more material of Short notes
1. Define History of C++?
2. What is Dev. C++?
Gore Dev-C++ is a full-included Integrated Development
Environment (IDE) for the C/C++ programming language. It utilizes Mingw port of
GCC (GNU Compiler Collection) as it's compiler. Dev-C++ can likewise be
utilized in mix with Cygwin or some other GCC based compiler.
3. Why Use Dev. C++ rather than C++ DOS IDE?
Dev-C++ is a free IDE for Windows that utilizes either MinGW
or TDM-GCC as hidden compiler. Initially discharged by Bloodshed Software,
however relinquished in 2006, it has as of late been forked by Orwell,
including a decision of later compilers.
4. What is #Include order or Copy books or Header File?
Many programming dialects and other PC records have a
mandate, frequently called incorporate (just as duplicate and import), that
makes the substance of a subsequent document be embedded into the first record.
These included records are called copybooks or header documents.
5. Why we utilize wavy supports in c?
Wavy supports are utilized to aggregate a lot of
proclamations. Regularly we use them alongside circles and restrictive
articulations so as to stay away from disarray and to characterize a reasonable
extension.
6. What is Main () work?
In C, the "primary" work is dealt with equivalent
to each capacity, it has an arrival type (and now and again acknowledges inputs
through boundaries). The main contrast is that the principle work is
"called" by the working framework when the client runs the program.
7. What number of information types are in C?
Void, Int, Float, Character, String
8. What number of types are for whole numbers?
Int or marked int unsigned int, short int or marked short
int, long int or marked long int, unsigned long int
9. What number of types are for Float information type?
Float,
double, long double
10. What is mean by utilizing namespace sexually transmitted
disease; in C?
The implicit C++ library schedules are kept in the standard
namespace. That incorporates stuff like cout, cin, string, vector, map, and so
forth. Since these devices are utilized so normally, it's well known to include
"utilizing namespace sexually transmitted disease" at the highest
point of your source code with the goal that you won't need to type the
sexually transmitted disease:: prefix continually.
11. Characterize the memory size of int variable sorts?
Type Size in Bytes Range
int or marked int 2 - 32,768 to 32767
unsigned int 2 0 to 65535
short int or marked short int 1 - 128 to 127
long int or marked long int 4 - 2,147,483,648 to
2,147,483,647
unsigned long int 4 0 to 4,294,967,295
12. Characterize the memory size of Float Variable sorts?
Type Size(bytes) Range
FLOAT 4 3.4E-38 to 3.4E+38
double FLOAT 8 1.7E-308 to 1.7E+308
long double FLOAT 10 3.4E-4932 to 1.1E+4932
13. How assert a variable?
The Syntax of Declare variable is data_type variable_name;
where the data_type is the kind of information which can hold a variable
variable_name may be anything aside from the C orders and save words.
14. What is namespace?
Think about a circumstance, when we have two people with a
similar name, Zara, in a similar class. At whatever point we have to separate
them unquestionably we would need to utilize some extra data alongside their
name, as either the zone in the event that they live in various region or their
mom or father name, and so forth. Same circumstance can emerge in your C++ applications.
For instance, you may be keeping in touch with some code that has a capacity
called xyz() and there is another library accessible which is additionally
having same capacity xyz(). Presently the compiler has no chance to get of
knowing which form of xyz() work you are alluding to inside your code.A namespace
is intended to defeat this trouble and is utilized as extra data to separate
comparable capacities, classes, factors and so forth with a similar name
accessible in various libraries. Utilizing namespace, you can characterize the
setting where names are characterized. Generally, a namespace characterizes an
extension.
15. How characterize a namespace?
A namespace definition starts with the watchword namespace
followed by the namespace name as follows
namespacenamespace_name {
/code affirmations
}
To call the namespace-empowered adaptation of either
capacity or variable, prepend the namespace name as follows:
name::code;/code could be variable or capacity.
16. What are hold words in C?
Hold or Keywords are the words that C language use for his
own utilization a client can't utilize save words as factor, capacity or class
name. Model: IF, Else, Switch, For, While, Float and so forth.
17. What rules are for proclaiming a variable?
1. Each factor name should begin with letters in order or
underscore (_).
2. No spaces are permitted in factor assertion.
3. But underscore (_) no other exceptional image are
permitted in the variable announcement.
4. Most extreme length of variable is 8 characters rely upon
compiler and activity framework.
5. Each factor name consistently should exist in the left
hand side of task administrator.
6. No catchphrase should get to variable name.
18. What is contrast among affirmation and introduction of a
Variable?
For a variable, a definition is a statement which allots
capacity for that variable.
Introduction is the determination of the underlying
incentive to be put away in an item, which isn't really equivalent to the first
occasion when you unequivocally allocate an incentive to it.
19. What is cin and cout?
cout is utilized for yield, cin for input. Cout and cin are
not catchphrases in the C++ language. They are factors, occurrences of classes
that have been proclaimed in <iostream>.
20. Characterize neighborhood and worldwide variable?
Factors that are announced inside a capacity or square are
neighborhood factors. They can be utilized distinctly by articulations that are
inside that capacity or square of code. Nearby factors are not known to
capacities outside their own.Global factors are characterized outside of the
considerable number of capacities, typically on the program. The worldwide
factors will hold their incentive for the duration of the life-time of your
program. A worldwide variable can be gotten to by any capacity. That is, a
worldwide variable is accessible for use all through your whole program after
its presentation.
21. Characterize Syntax Error?
Asyntax mistake is a blunder in the sentence structure of an
arrangement of characters or tokens that is expected to be written in a
specific programming language. For incorporated dialects, linguistic structure
mistakes are identified at order time. A program won't incorporate until all
grammar blunders are amended.
22. What is Run-Time Error?
A blunder that happens during the execution of a program.
Interestingly, order time mistakes happen while a program is being accumulated.
Runtime mistakes demonstrate bugs in the program or issues that the creators
had foreseen yet could fail to address. For instance, coming up short on memory
will regularly cause a runtime mistake.
23. What is Logical Error?
A rationale blunder is a bug in a program that makes it work
mistakenly, however not to end unusually (or crash). A rationale mistake
produces unintended or undesired yield or other conduct, in spite of the fact
that it may not promptly be perceived thusly.
24. What are number-crunching administrators?
C language has 5 math administrators (+, - , *,/, %). Number
juggling administrators are utilized to perform number-crunching activities in
c programming.
25. Characterize Logical Operators?
C Language have 3 sorts of Logical administrator or
restrictive administrators.
Administrator Description Example
&& Called Logical AND administrator. In the event
that both the operands are non-zero, at that point the condition turns out to
be valid. (A && B) is bogus.
|| Called Logical OR Operator. In the event that any of the
two operands is non-zero, at that point the condition turns out to be valid. (A
|| B) is valid.
! Called Logical NOT Operator. It is utilized to turn around
the legitimate condition of its operand. On the off chance that a condition is
valid, at that point Logical NOT administrator will make it bogus. ! (A
&& B) is valid.
26. What is Conditional administrator?
A ternary administrator or Conditional Operator is an
administrator that takes three contentions. The contentions and result can be
of various kinds. Many programming dialects that utilization C-like sentence
structure highlight a ternary administrator, ?:, which characterizes a
restrictive articulation. Since this administrator is frequently the main
existing ternary administrator in the language, it is now and then basically
alluded to as "the ternary administrator". In a few
dialects, this administrator is alluded to as "the
contingent administrator". Another model for a ternary administrator is
between, as utilized in SQL and Python.
27. Distinction among administrators and operands?
Operands are the articles that are controlled and administrators
are the images that speak to explicit activities. For instance, in the
articulation. 5 + x. what's more, 5 are operands and + is an administrator. All
articulations have at any rate one operand.
28. Depict about document streams?
Information Type Description
ofstream This information type speaks to the yield record
stream and is utilized to make documents and to compose data to records.
ifstream This information type speaks to the info document
stream and is utilized to peruse data from records.
fstream This information type speaks to the record stream
for the most part, and has the capacities of both ofstream and ifstream which
implies it can make documents, compose data to documents, and read data from
records.
29. What are contingent proclamations?
In software engineering, restrictive explanations,
contingent articulations and restrictive develops are highlights of a
programming language, which perform various calculations or activities relying
upon whether
a software engineer determined Boolean condition assesses to
valid or bogus. Model: IF. At that point, Switch.
30. What are repletion articulations?
In C programming Language it is frequently important to
rehash a similar square of code a given number of times, or until a specific
condition is met. Executes a succession of proclamations on numerous occasions
and shortens the code tha
No comments:
Post a Comment
Please do not share any spam link in the comment box.