BCA KNOCKOUTS

BCA KNOCKOUTS

University

20 Qs

quiz-placeholder

Similar activities

Security Compliance

Security Compliance

University

15 Qs

Python Library Routines Quiz

Python Library Routines Quiz

10th Grade - University

18 Qs

Quiz tentang App Inventor

Quiz tentang App Inventor

11th Grade - University

21 Qs

PPL 223 - (QUIZ 3) Data Types and Structures

PPL 223 - (QUIZ 3) Data Types and Structures

University

15 Qs

PTS INFORMATIKA SEMESTER GENAP

PTS INFORMATIKA SEMESTER GENAP

8th Grade - University

20 Qs

Use Cases and  Domain Classes

Use Cases and Domain Classes

University

15 Qs

CSS Image Manipulation Quiz

CSS Image Manipulation Quiz

9th Grade - University

15 Qs

Recoleccion y Fuentes de Datos

Recoleccion y Fuentes de Datos

University

15 Qs

BCA KNOCKOUTS

BCA KNOCKOUTS

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

KP Singh

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

What is the correct syntax to include a header file in C?

header_file.h

import header_file.h

#include

#include {header_file.h}

2.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Which of the following is a valid variable declaration in C?

float y;

int x;

char z = 'a';

double 1a;

3.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

What does the 'printf' function do in C?

The 'printf' function compiles the code in C.

The 'printf' function stores data in a file.

The 'printf' function outputs formatted text to the console.

The 'printf' function reads input from the user.

4.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Which operator is used to access a member of a structure in C?

::

->

[]

.

5.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

What is the output of the following code: printf('%d', 5 + 2 * 3);?

9

10

8

11

6.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Which of the following is a feature of C++?

Procedural programming only

Object-oriented programming support

Limited to low-level programming

No support for classes

7.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

What is the purpose of the 'new' keyword in C++?

The 'new' keyword is used to define a function.

The 'new' keyword is for declaring global variables.

The 'new' keyword is used for dynamic memory allocation.

The 'new' keyword is used to create a copy of an object.

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?