0% found this document useful (0 votes)
19 views8 pages

C++ Assignment L1

The document contains a series of programming questions related to C++, including how to output specific strings, perform arithmetic with positive numbers, determine the size of data types, analyze a given code snippet, calculate the circumference of a circle, and identify valid variable names. Each question is designed to test fundamental programming concepts in C++. The document concludes with a thank you note.

Uploaded by

patarisuvrajit01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views8 pages

C++ Assignment L1

The document contains a series of programming questions related to C++, including how to output specific strings, perform arithmetic with positive numbers, determine the size of data types, analyze a given code snippet, calculate the circumference of a circle, and identify valid variable names. Each question is designed to test fundamental programming concepts in C++. The document concludes with a thank you note.

Uploaded by

patarisuvrajit01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Assignment : L1

Output & Variables


Ques: How can you output “Physics”and
“Wallah” in two different lines in C++?
Ques: Print 10 using 2 positive numbers less than
6 in C++ as output.
Ques: How much space does following data types
take ?

1. int
2. bool
3. float
Ques: What is the output of this program?

void main(){
int a=4;
int b=5;
a<+;b<-;
cout<<<+a<<” “<<b–-;
}
Ques: WAP to find the circumference of a circle
with radius 10 in C++.
Ques: How many of these can be a variable name?

01PWskills

_FLOAT

int

FLOAT

You will succeed


THANK YOU

You might also like