Beginning C Programming

Beginning C Programming

University

23 Qs

quiz-placeholder

Similar activities

Memory-Mobo-Hard/Software

Memory-Mobo-Hard/Software

University

18 Qs

Closing entries

Closing entries

University

20 Qs

PARC Linux Basic Part 2

PARC Linux Basic Part 2

University

20 Qs

CSS Pseudo dan CSS Grid System

CSS Pseudo dan CSS Grid System

University

20 Qs

SQL Quiz

SQL Quiz

University

18 Qs

LAN, MAN, WAN Network

LAN, MAN, WAN Network

12th Grade - University

18 Qs

1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni

1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni

University - Professional Development

20 Qs

basisdata1

basisdata1

University

20 Qs

Beginning C Programming

Beginning C Programming

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Ngai Lee

Used 367+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?