Search Header Logo

Hitha - C - Easy Paper

Authored by Lebara 2023

Information Technology (IT)

University

Used 1+ times

Hitha - C - Easy Paper
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

99 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the file extension for C source code files?

.cpp
.java
.c
.py

Answer explanation

C source code files typically end with the `.c` extension.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which function is the entry point of every C program?

start()
begin()
main()
run()

Answer explanation

The `main()` function is where the execution of a C program begins.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which symbol is used to mark the end of a statement in C?

:
;
,
.

Answer explanation

A semicolon (`;`) is used to terminate most statements in C.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you write a single-line comment in C?

`/* comment */`
`// comment`
``
`# comment`

Answer explanation

`//` is used for single-line comments in C (and C++).

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you write a multi-line comment in C?

`/* comment */`
`// comment`
`# comment #`
`-- comment --`

Answer explanation

`/*` starts a multi-line comment and `*/` ends it.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which data type is used to store whole numbers (integers)?

float
char
int
double

Answer explanation

The `int` data type is used to store integer values.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which data type is used to store single characters?

int
char
float
bool

Answer explanation

The `char` data type is used to store a single character.

Access all questions and much more by creating a free account

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

Already have an account?