Hitha - C - Easy Paper

Hitha - C - Easy Paper

University

99 Qs

quiz-placeholder

Similar activities

Robotics and Arduino Quiz

Robotics and Arduino Quiz

University

100 Qs

Профессиональная иностранная терминология

Профессиональная иностранная терминология

University

100 Qs

Html, CSS and JavaScript

Html, CSS and JavaScript

University

100 Qs

Тест по Excel

Тест по Excel

11th Grade - University

100 Qs

Economy - 1

Economy - 1

University

100 Qs

ISPFL7 - BSIS4A - Midterm Exam

ISPFL7 - BSIS4A - Midterm Exam

University

100 Qs

ICT database (101-200)

ICT database (101-200)

University

104 Qs

Программирование

Программирование

University

100 Qs

Hitha - C - Easy Paper

Hitha - C - Easy Paper

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

Lebara 2023

Used 1+ times

FREE Resource

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.

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?