Hitha - C - Easy Paper

Hitha - C - Easy Paper

University

99 Qs

quiz-placeholder

Similar activities

Game Development MCQs

Game Development MCQs

University

102 Qs

Relational Databases and Multimedia Quiz

Relational Databases and Multimedia Quiz

University

100 Qs

UTSPPL

UTSPPL

University

100 Qs

Projeto de Sistemas - Definindo Influências Organizacionais

Projeto de Sistemas - Definindo Influências Organizacionais

University

100 Qs

ICT database (101-200)

ICT database (101-200)

University

104 Qs

ISPFL7 - BSIS4A - Midterm Exam

ISPFL7 - BSIS4A - Midterm Exam

University

100 Qs

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

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

University

100 Qs

Cek Poin

Cek Poin

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

AI

Enhance your content in a minute

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

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

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?