TechZoom24-BugBash_Prelims

TechZoom24-BugBash_Prelims

University

25 Qs

quiz-placeholder

Similar activities

QUIZ 1(SSAD)

QUIZ 1(SSAD)

University

20 Qs

Lesson 1 and 2 Quiz

Lesson 1 and 2 Quiz

University

20 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

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

CORLANG Week6-7

CORLANG Week6-7

10th Grade - University

20 Qs

Chapter 8. Securing Network Media and Devices

Chapter 8. Securing Network Media and Devices

University

20 Qs

Quiz No. 3 (Finals)

Quiz No. 3 (Finals)

University

20 Qs

TechZoom24-BugBash_Prelims

TechZoom24-BugBash_Prelims

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

PANCHAMI (RA2332241010031)

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not a valid C variable name?

float rate;

int variable_count;

int $main;

int number;

Answer explanation

The variable name int $main; is not valid in C because it contains a special character ($). Variable names in C cannot start with special characters.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following statements best explains why C is not considered a platform-independent programming language?

C does not have a standard specification.

C programs cannot be compiled on different operating systems.

C code is not capable of running on embedded systems.

C code may rely on platform-specific features and behaviors.

Answer explanation

C code may rely on platform-specific features and behaviors, making it not considered a platform-independent programming language.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is #include ?

Preprocessor directive

Inclusion directive

File inclusion directive

None of the mentioned

Answer explanation

The correct choice is 'Preprocessor directive' because #include is used in C/C++ to include the contents of another file during compilation.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is meant by 'a' in the following C operation? fp = fopen("Random.txt", "a");

Attach

Append

Apprehend

Add

Answer explanation

The 'a' in the fopen() function stands for 'Append', which means the file will be opened for writing at the end of the file, preserving the existing content.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following C code?

Compile time error

Hello World! 34

Hello World! 1000

Hello World! followed by a junk value

Answer explanation

The correct answer is 'Compile time error' because the code is missing the 'main' function which is required in C programs.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What are mandatory parts in the function declaration in c?

return type, function name

return type, function name, parameters

parameters, function name

parameters, variables

Answer explanation

The mandatory parts in a function declaration in C are the return type and the function name.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which is more effective while calling the functions?

call by value

call by reference

call by pointer

call by object

Answer explanation

Call by reference is more effective while calling functions as it allows the function to directly access and modify the original data without making a copy.

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?