Hitha C Quiz 1

Hitha C Quiz 1

Professional Development

96 Qs

quiz-placeholder

Similar activities

Titanic

Titanic

KG - Professional Development

100 Qs

Logical Reasoning Assessment - MEGATHIL

Logical Reasoning Assessment - MEGATHIL

Professional Development

101 Qs

PMP Question 100

PMP Question 100

Professional Development

100 Qs

Programming Basics Quiz

Programming Basics Quiz

Professional Development

100 Qs

Python and SQL Quiz

Python and SQL Quiz

Professional Development

100 Qs

Basic Theory Test 3 & 4

Basic Theory Test 3 & 4

Professional Development

100 Qs

Basic Theory Test 1 & 2

Basic Theory Test 1 & 2

Professional Development

99 Qs

Candidate New Driver (Rigid Truck)

Candidate New Driver (Rigid Truck)

Professional Development

95 Qs

Hitha C Quiz 1

Hitha C Quiz 1

Assessment

Quiz

Other

Professional Development

Hard

Created by

Lebara 2023

Used 1+ times

FREE Resource

96 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

C Programming – Features & The First C Program -- Which of the following is NOT a characteristic of C programming?
Machine-independent
High-level language
Primarily object-oriented
Structured programming language

Answer explanation

C is a procedural language and not primarily object-oriented, unlike C++ or Java.

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

C Programming – Features & The First C Program -- What is the main function of the preprocessor directive `#include <stdio.h>`?
Links the standard input/output library
Defines a new function
Declares a global variable
Includes user-defined headers

Answer explanation

It includes the standard input/output header file, providing access to functions like `printf` and `scanf`.

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

C Programming – Features & The First C Program -- What is the purpose of the `main()` function in a C program?
It's an optional function
It's the entry point of execution
It declares global variables
It handles error logging

Answer explanation

Program execution in C always begins from the `main()` function.

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

C Programming – Features & The First C Program -- Which of the following is the correct way to end a C statement?
A colon (:)
A semicolon (;)
A period (.)
A comma (,)

Answer explanation

Every statement in C must end with a semicolon.

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

C Programming – Features & The First C Program -- Which of the following is a key feature of C that allows direct memory manipulation?
Garbage collection
Pointers
Virtual memory
Polymorphism

Answer explanation

C's powerful pointer concept allows for direct memory access and manipulation.

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Introduction to Variables -- What is a variable in C?
A fixed value that cannot be changed
A named storage location in memory
A function that performs a specific task
A predefined keyword in the language

Answer explanation

A variable is a symbolic name for a memory location used to store data.

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Introduction to Variables -- Which of the following is a valid declaration of an integer variable in C?
`int 1num;`
`_int num;`
`int num;`
`integer num;`

Answer explanation

`int` is the correct keyword for an integer, and `num` is a valid identifier.

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?