You are on page 1of 3

COMPUTER SCIENCE

Q1 WAP TO PRINT SPACE?

Q2 CREATE A LIST OF THE FOLLOWING NO AND PRINT THEM WITH THEIR


INDEX?

Q3 CREATE A LIST OF FRIENDS AND PRINT THEM?

OUT PUT:-

Q4 PYTHON CODE TO DETERMINE THE TYPE OF THE DATA?

Q5 WAP TO ADDING AND PRINTING INTEGER VALUE.WAP TO ADDING AND


PRINTING STRING VALUE.WAP TO ADDING AND PRINTING BOLEAN VALUE?

Q6 WHAT ARE THE TWO CATEGORIES OF SYSTEM SOFTWARE?


COMPUTER SCIENCE
SYSTEM SOFTWARE IS DIVIDED IN TWO CATEGORIES OPERATING SYSTEM AND LANGUAGE
PROCESSOR:-
OPERATING SYSTEM:- Operating systems contain and manage all the programs and
applications that a computer or mobile device is able to run, which means managing the
device's software and hardware functions.
LANGUAGE PROCESSOR:- A language processor is a software program designed or
used to perform tasks such as processing program code to machine code.

Q7 WHAT IS COMPILER AND INTERPREER?


COMPILER- A compiler is computer software that readily translates programming
language into machine code or assembly language or low-level language. It
translates every program to binary(1’s and 0’s) that a computer feasibly understands
and does the task that corresponds to the code. One condition that a compiler has to
follow is the syntax of the programming language that is used. Thus, if the syntax of
the program does not match the analysis of the compiler, an error arises that has to
be corrected manually in the program written .

INTERPRETER- An interpreter is a computer program that converts program


statements into machine code. Program statements include source code, pre-
compiled code, and scripts
Q8 WHAT WILL BE THE OUTPUT OF THE FOLLOWING CODE?

Q9 WHAT WILL BE THE OUTPUT OF THE FOLLOWING CODES?

 
COMPUTER SCIENCE
Q10 WAP TO CALCULATE THE FACTORIAL OF THE NUMBER?

Output:

Q11 WAP TO CHECK THE YEAR ENTER BY THE USER IS LEAP YEAR OR NOT?

Output:

You might also like