C PROGRAMMING

C PROGRAMMING

Assessment

Quiz

Computers

University

Medium

Used 90+ times

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How will you print \n on the screen?
printf("\n");
echo "\\n";
printf('\n');
printf("\\n");

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

We want to round off x, a float, to an int value, The correct way to do is
y = (int)(x + 0.5)
y = int(x + 0.5)
y = (int)x + 0.5
y = (int)((int)x + 0.5)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What punctuation is used to indicate the beginning and end of code blocks?
{ }
-> <-
BEGIN and END
( and )

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct operator to compare two variables?
:=
=
equal
==

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol terminates a C statement?
.
;
,
}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Program is a list of_______________, written in a _______________________ to determines the behaviour of a machine.

word, english

instructions , programming language

instructions, word

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A flowchart is a graphical representation that helps programmer to develop algorithms in programming.

True

False

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?