0% found this document useful (0 votes)
10 views1 page

C Language User Interaction Concepts

The document is a class paper for a Computer Science unit focusing on User Interaction, containing multiple-choice questions, short questions, and a long question related to C programming. It covers topics such as escape sequences, operators, and differences between integer and floating-point division. The paper is structured to assess understanding of fundamental concepts in C language.

Uploaded by

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

C Language User Interaction Concepts

The document is a class paper for a Computer Science unit focusing on User Interaction, containing multiple-choice questions, short questions, and a long question related to C programming. It covers topics such as escape sequences, operators, and differences between integer and floating-point division. The paper is structured to assess understanding of fundamental concepts in C language.

Uploaded by

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

Computer Science – Class Paper

Unit 2: User Interaction

Question 1: Multiple Choice Questions (4 Marks)


Choose the correct option.

1. Which character is always used at the beginning of an escape sequence?


a) /
b) \
c) |
d) *

2. The escape sequence \n is used to:


a) Move cursor back one space
b) Display double quotes
c) Move cursor to the next line
d) Add a tab space

3. Which operator is used to assign a value to a variable in C?


a) ==
b) :=
c) =
d) →

4. The modulus operator % is used for:


a) Division
b) Multiplication
c) Getting the remainder
d) Subtraction

Question 2: Short Questions (4 Marks)


1. Define escape sequence in C language.

2. Write the output of the statement:


printf("My name is \"Ali\"");

3. What does the \t escape sequence do?

4. Write one difference between integer division and floating-point division in C.

Question 3: Long Question (8 Marks)


Define operators in C language and explain arithmetic operators with examples.

You might also like