Revision 2 C

Revision 2 C

University

17 Qs

quiz-placeholder

Similar activities

Array of Structure

Array of Structure

University

13 Qs

2D Array and Strings in C

2D Array and Strings in C

University

16 Qs

Java Programming

Java Programming

University

20 Qs

Pointers

Pointers

University

20 Qs

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

Java Quiz 3

Java Quiz 3

University

15 Qs

Unit-2: Assignment 2

Unit-2: Assignment 2

University

15 Qs

UAS Logika dan Algoritma Pemrograman

UAS Logika dan Algoritma Pemrograman

1st Grade - University

15 Qs

Revision 2 C

Revision 2 C

Assessment

Quiz

Computers

University

Easy

Created by

Abhishek Pandey

Used 2+ times

FREE Resource

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to call a function named add that takes two integers as arguments?

add(2, 3);

add(2, 3); return;

call add(2, 3);

call add();

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a two-dimensional matrix declaration, the first subscript specifies the number of______________.

row

column

diagonal

line

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following functions will return the first occurrence of a character in a string?

strfind()

strchr()

strloc()

strrchr()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which header file is needed to use the printf() function in C?

stdio.h

conio.h

ctype.h

string.h

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to concatenate two strings in C?

strcat()

append()

concatenate()

strmerge()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to accept input from the user in C?

input()

scanf()

getch()

output()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function in C is used to find the length of a string?

strlen()

strlength()

size()

findlen()

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?