0% found this document useful (0 votes)
39 views

ssc2 Computer Science

This document contains a half-length practice paper for Computer Science with 11 multiple choice questions covering various topics in C programming such as data types, operators, control structures, functions, arrays and more. Students are instructed to attempt all questions by selecting one part of each multiple choice question. The paper also includes 6 programming questions to test students' coding abilities.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

ssc2 Computer Science

This document contains a half-length practice paper for Computer Science with 11 multiple choice questions covering various topics in C programming such as data types, operators, control structures, functions, arrays and more. Students are instructed to attempt all questions by selecting one part of each multiple choice question. The paper also includes 6 programming questions to test students' coding abilities.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Scholar ACADMEY

Computer Science (SSC II)


Half Length Paper 01
SECTION – B
2. Attempt all.

Question 01: 2x11=22


List down five reserved words in C programming language.
Or
What is the purpose of escape sequences?
Question 02:
What is meant by precedence of operators?
Or
Write a program that finds and displays the right most digit of an input number.
Question 03:
What is mean by compound operators?
Or
Write a program that takes a character as input and displays “DIGIT” if the character entered by user
is a digit between 0 to 9, otherwise displays “NOT DIGIT”.
Question 04:
Differentiate between compiler and interpreter?
Or
Differentiate between scanf and printf?
Question 05:
What are flowcharts? What are the advantages of flowchart?
Or
What is algorithm and what are the role of algorthim in problem solving?
Question 06:
Differentiate b/w if and if else statement?
Or
What is nester selection structure?
Question 07:
What is format specifiers? examples
Or
What is escape sequences? With example?
Question 08:
Write a code to print a pattern of stars in c language? (hint: nested loop)
*
* * *
* * * * *
* * * * * * *
Or
Write a code to print following pattern
12345
1234
123
12
1
Question 09 :
Draw a flow chart to question 08 attempted?
Question 10 :
Differentiate b/w constant and variables?
Or
Differentiate b/w basic operators and compound operators?
Question 11 :
Write four characteristics of hll?
Or
Write three rules of intailizing variable in c language?

SECTION – C
Q3.
5X4=20
Draw a flowchart to calculate the exponent of a given number.
OR
Rewrite the following code after removing the errors: (5)
# include < std.h>
# include < conio.h>
void main ( );
{ int p, s;
printf(“\n Enter a number:);
scanf(“%d”, p);
s=p%2;
if(s=0)
printf(“even number%d”, p)
else
printf(“odd number%d”, p); getch( );
}

Q 4.
Rewrite the following program using switch statement: (5)
void main()
{char Ch;
clrscr( );
printf(“Enter a single character”);
scanf(“%c”, ch);
if ( ch = = ‘a’ || ch = = ‘A’ ||ch = = ‘e’ || ch = = ‘E’ ||ch = = ‘i’ || ch = = ‘I’ || ch = = ‘o’ || ch = = ‘O’ ||ch = = ‘u’ ||
ch = = ‘U’)
printf(“It is a vowel”);
else
printf(“It is a consonant”);
}
OR
Explain FIVE modules of C programming environment.?
Q 5.
What will be the output of the following code?
void main( )
{ int u, i;
for (u = 1; u< = 5; u++)
{
for (i = 1; i < = u; i++)
{
printf(“%d \t”, i);
}
printf(“\n”);
}
}
OR
Convert the following code into for loop:
int sum = 0, num= 0;
do { sum = sum + num;
printf (“Enter an integer value”);
scanf(“%d”, &num);
} while (num > = 0 && num < = 15);

Q 6.
Flowchart to print the given sequence of numbers in descending order 27 24 21 18 15 12 9 6 3 0 -3 -
6?
OR
What is control structure? Explain conditional control structure with examples.

------------------------------------ BEST OF LUCK ---------------------------------

You might also like