Beginning C Programming

Beginning C Programming

University

23 Qs

quiz-placeholder

Similar activities

C++ Lambda Expression

C++ Lambda Expression

University - Professional Development

20 Qs

Programming in C(1)

Programming in C(1)

University

20 Qs

Basics of OOP with JAVA

Basics of OOP with JAVA

University

25 Qs

2nd Class Test FEB 2021

2nd Class Test FEB 2021

University

25 Qs

Java Quiz 1

Java Quiz 1

University

20 Qs

PSP Module-4

PSP Module-4

University

20 Qs

Java Certification

Java Certification

University

25 Qs

PSC Quiz1

PSC Quiz1

University - Professional Development

20 Qs

Beginning C Programming

Beginning C Programming

Assessment

Quiz

Computers

University

Medium

Created by

Ngai Lee

Used 349+ times

FREE Resource

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

2.

MULTIPLE CHOICE QUESTION

30 sec • 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 not a correct variable type?
float
real
int
double

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol terminates a C statement?
.
;
,
}

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to comment in C language?
//Comment
A & B
* Comment *
<---Comment---->

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?